General Rigid Body
On this page
A general rigid body has a given mass and inertia tensor about its center of gravity, for shapes that the box, cylinder and cone cannot describe.

Parameters
Units are shown in SI (m, kg, s, N, rad). MOMDYN does not enforce units, so any consistent set works, but angles are always in radians.
| Name | Type | Default | Units | Description |
|---|---|---|---|---|
name | str | None | — | Key to be used when referencing this body. |
ref_point_key | str | 'origin' | — | Key of the point at which this body's CG is located. |
ref_frame_key | str | 'inertial' | — | Key of the frame to which this body orientation is defined. |
mass | numeric | 0 | kg | Mass of this body. |
ixx | numeric | 0 | kg·m² | Moment of inertia (MOI) of this body defined relative to its CG about the reference frame's X-axis. |
iyy | numeric | 0 | kg·m² | MOI of this body defined relative to its CG about the reference frame's Y-axis. |
izz | numeric | 0 | kg·m² | MOI of this body defined relative to its CG about the reference frame's Z-axis. |
ixy | numeric | 0 | kg·m² | Product of inertia (POI) of this body defined relative to its CG in the reference frame's X- and Y-axes. |
iyz | numeric | 0 | kg·m² | POI of this body defined relative to its CG in the reference frame's Y- and Z-axes. |
izx | numeric | 0 | kg·m² | POI of this body defined relative to its CG in the reference frame's Z- and X-axes. |
color | str | 'Green' | — | Color of the body in the diagram view (default Green). It does not affect the physics. |
Equations
The inertia tensor about the center of gravity, in the axes of the reference frame:
Sign conventions & notes
The center of gravity is at ref_point_key, and the inertia tensor is expressed in the axes of ref_frame_key.
TODO: state the sign convention of the products of inertia (ixy, iyz, izx): whether they are the tensor entries as shown above or the integrals of x·y, y·z and z·x over the mass.