liblaf.apple.sim.element.triangle
¤
Classes:
-
ElementTriangle
–ElementTriangle()
ElementTriangle
¤
Bases: Element
ElementTriangle()
Methods:
-
function
–Return the shape functions at given coordinates.
-
gradient
–Return the gradient of shape functions at given coordinates.
-
hessian
–Return the Hessian of shape functions at given coordinates.
-
replace
– -
tree_at
–
Attributes:
-
__dataclass_fields__
(dict[str, Field[Any]]
) – -
cells
(Integer[Array, ' points']
) – -
dim
(int
) – -
n_points
(int
) – -
points
(Float[Array, 'points=3 dim=2']
) – -
quadrature
(Scheme
) –
function
¤
function(
coords: Float[ArrayLike, "dim=2"],
) -> Float[Array, "points=3"]
Return the shape functions at given coordinates.
Source code in src/liblaf/apple/sim/element/triangle.py
17 18 19 20 21 22 23 |
|
gradient
¤
gradient(
coords: Float[ArrayLike, "dim=2"],
) -> Float[Array, "points=3 dim=2"]
Return the gradient of shape functions at given coordinates.
Source code in src/liblaf/apple/sim/element/triangle.py
25 26 27 28 29 30 |
|
hessian
¤
hessian(
coords: Float[ArrayLike, "dim=2"],
) -> Float[Array, "points=3 dim=2 dim=2"]
Return the Hessian of shape functions at given coordinates.
Source code in src/liblaf/apple/sim/element/triangle.py
32 33 34 35 36 37 |
|
replace
¤
Source code in src/liblaf/apple/struct/tree/_pytree.py
19 20 |
|
tree_at
¤
tree_at(
where: Callable[[Self], Node | Sequence[Node]],
replace: Any | Sequence[Any] = MISSING,
replace_fn: Callable[[Node], Any] = MISSING,
is_leaf: Callable[[Any], bool] | None = None,
) -> Self
Source code in src/liblaf/apple/struct/tree/_pytree.py
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
|