liblaf.apple.sim.actor
¤
Modules:
-
actor
– -
components
– -
protocol
–
Classes:
-
Actor
–
Actor
¤
Bases: PyTreeNode
Parameters:
-
id
(str
, default:<dynamic>
) – -
collision_mesh
(Mesh
, default:None
) – -
components
(list[ComponentProtocol]
, default:<dynamic>
) –Built-in mutable sequence.
If no argument is given, the constructor creates a new empty list. The argument must be an iterable if specified.
-
dirichlet
(Dirichlet
, default:<dynamic>
) – -
dofs
(DOFs
, default:<dynamic>
) – -
region
(Region
, default:None
) –
Methods:
-
__pdoc__
–...
-
__repr__
– -
boundary
– -
evolve
– -
from_geometry
– -
from_pyvista
– -
from_region
– -
make_field
– -
pre_optim_iter
– -
pre_time_step
– -
set_dirichlet
– -
set_field_data
– -
set_point_data
– -
to_pyvista
– -
to_warp
– -
tree_at
– -
update
– -
update_field_data
– -
update_point_data
– -
with_collision_mesh
– -
with_dofs
–
Attributes:
-
cell_data
(GeometryAttributes
) – -
collision_mesh
(Mesh
) – -
components
(list[ComponentProtocol]
) – -
dim
(int
) – -
dirichlet
(Dirichlet
) – -
displacement
(Float[Array, 'points dim']
) – -
dofs
(DOFs
) – -
element
(Element
) – -
field_data
(GeometryAttributes
) – -
force
(Float[Array, 'points dim']
) – -
geometry
(Geometry
) – -
id
(str
) – -
mass
(Float[Array, points]
) – -
n_dirichlet
(int
) – -
n_dofs
(int
) – -
n_points
(int
) – -
point_data
(GeometryAttributes
) – -
points
(Float[Array, 'points dim']
) – -
positions
(Float[Array, 'points dim']
) – -
region
(Region
) – -
velocity
(Float[Array, 'points dim']
) –
components
class-attribute
instance-attribute
¤
components: list[ComponentProtocol] = data(factory=list)
id
class-attribute
instance-attribute
¤
__pdoc__
¤
__pdoc__(**kwargs) -> AbstractDoc
...
Source code in src/liblaf/apple/sim/actor/actor.py
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
|
__repr__
¤
__repr__() -> str
Source code in src/liblaf/apple/sim/actor/actor.py
43 44 |
|
boundary
¤
boundary() -> Actor
Source code in src/liblaf/apple/sim/actor/actor.py
167 168 |
|
evolve
¤
evolve(**changes) -> Self
Source code in src/liblaf/apple/sim/actor/actor.py
46 47 |
|
from_geometry
classmethod
¤
Source code in src/liblaf/apple/sim/actor/actor.py
36 37 38 39 40 41 |
|
from_pyvista
classmethod
¤
Source code in src/liblaf/apple/sim/actor/actor.py
29 30 31 32 33 34 |
|
from_region
classmethod
¤
Source code in src/liblaf/apple/sim/actor/actor.py
43 44 45 46 47 48 49 50 51 52 53 |
|
make_field
¤
make_field(x: Float[ArrayLike, 'points dim']) -> Field
Source code in src/liblaf/apple/sim/actor/actor.py
160 161 |
|
pre_optim_iter
¤
pre_optim_iter(
displacement: Float[ArrayLike, "points dim"]
| None = None,
) -> Self
Source code in src/liblaf/apple/sim/actor/actor.py
132 133 134 135 136 137 138 139 |
|
pre_time_step
¤
pre_time_step() -> Self
Source code in src/liblaf/apple/sim/actor/actor.py
129 130 |
|
set_dirichlet
¤
Source code in src/liblaf/apple/sim/actor/actor.py
174 175 176 177 178 |
|
set_field_data
¤
Source code in src/liblaf/apple/sim/actor/actor.py
184 185 186 |
|
set_point_data
¤
Source code in src/liblaf/apple/sim/actor/actor.py
180 181 182 |
|
to_pyvista
¤
to_pyvista(*, attributes: bool = True) -> DataSet
Source code in src/liblaf/apple/sim/actor/actor.py
219 220 221 222 223 224 225 226 227 228 229 230 231 232 |
|
to_warp
¤
to_warp(**kwargs) -> Mesh
Source code in src/liblaf/apple/sim/actor/actor.py
234 235 236 237 238 239 240 |
|
tree_at
¤
tree_at(
where: Callable[[Self], Node | Sequence[Node]],
replace: Any | Sequence[Any] = ...,
replace_fn: Callable[[Node], Any] = ...,
is_leaf: Callable[[Any], bool] | None = None,
) -> Self
Source code in src/liblaf/apple/sim/actor/actor.py
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
|
update
¤
update(
displacement: Float[ArrayLike, "points dim"]
| None = None,
velocity: Float[ArrayLike, "points dim"] | None = None,
force: Float[ArrayLike, "points dim"] | None = None,
) -> Self
Source code in src/liblaf/apple/sim/actor/actor.py
141 142 143 144 145 146 147 148 149 150 151 152 153 154 |
|
update_field_data
¤
update_field_data(
updates: Mapping[str, Shaped[ArrayLike, ...]],
/,
**kwargs: Shaped[ArrayLike, ...],
) -> Self
Source code in src/liblaf/apple/sim/actor/actor.py
197 198 199 200 201 202 203 204 |
|
update_point_data
¤
update_point_data(
updates: Mapping[str, Shaped[ArrayLike, "points ..."]],
/,
**kwargs: Shaped[ArrayLike, "points ..."],
) -> Self
Source code in src/liblaf/apple/sim/actor/actor.py
188 189 190 191 192 193 194 195 |
|