Bodies data¶
This page displays only attributes added at a certain inheritance level. For seeing all attributes of each data type see this variant
Classes¶
class defining a body |
|
shape of a body |
|
mechanical state of a body |
|
|
cuboid |
mechanical + liquid film state |
|
A generic polyhedron |
|
|
|
|
mechanical + thermal state |
Class Inheritance Diagram¶

Detailed content¶
- class bodies.base_state[source]
Bases:
objectmechanical state of a body
- position: Vector3 = Vector3(0, 0, 0)
[mandatory] position [\(L\)]
- velocity: Vector3 = Vector3(0, 0, 0)
[mandatory] translational velocity [\(L T^{-1}\)]
- orientation: Quaternion = Quaternion(0, 0, 0, 1)
[mandatory] orientation [\(-\)]
- angular_velocity: Vector3 = Vector3(0, 0, 0)
[mandatory] angular velocity [\(T^{-1}\)]
- mass: float = None
[mandatory] body’s mass [\(M\)]
- inertia: Matrix3 = Matrix3([0.0, 0.0, 0.0], [0.0, 0.0, 0.0], [0.0, 0.0, 0.0])
[mandatory] tensor of inertia [\(M L^{2}\)]
- volume: float = None
[mandatory] volume [\(L^{3}\)]
- class bodies.thermal[source]
Bases:
base_statemechanical + thermal state
- temperature: float = None
[optional] temperature [\(\Theta\)]
- class bodies.liquid_film[source]
Bases:
base_statemechanical + liquid film state
- liquid_film_volume: float = None
[optional] liquid film volume [L^3]
- class bodies.base_shape[source]
Bases:
objectshape of a body
- color: Vector3 = Vector3(1, 1, 1)
[optional] RGB color values [\(-\)]
- class bodies.sphere[source]
Bases:
base_shape- radius: float = None
[mandatory] radius
- class bodies.box[source]
Bases:
base_shapecuboid
- dimensions: Vector3 = Vector3(0, 0, 0)
[mandatory] length in each direction of space
- class bodies.polyhedron[source]
Bases:
base_shapeA generic polyhedron
- vertices: list = []
[mandatory] list of positions of the vertices
- class bodies.base_body[source]
Bases:
objectclass defining a body
- material_id: int = -1
[mandatory] material id [\(-\)]
- clump_id: int = -1
[mandatory] clump id [\(-\)]
- body_id: int = None
[mandatory] body id [\(-\)]
- body_state: type = <bodies.base_state object>
[mandatory] body state [\(-\)]
- body_shape: type = <bodies.base_shape object>
[mandatory] body shape [\(-\)]