Rigid Body Box
On this page
A rigid body box is a rectangular block of uniform density; its mass and inertia follow from its dimensions.

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 box. |
ref_point_key | str | 'origin' | — | Key of the point to which this box is attached, either at its CG, aft, or forward ends. |
ref_frame_key | str | 'inertial' | — | Key of the frame to which this box orientation is defined. |
density | numeric | 0 | kg/m³ | Uniform density of this box. |
length | numeric | 0 | m | Dimension of this box in the X-axis of the body-fixed frame. |
width | numeric | 0 | m | Dimension of this box in the Y-axis of the body-fixed frame. |
height | numeric | 0 | m | Dimension of this box in the Z-axis of the body-fixed frame. |
attach_to | str | 'CG' | — | CG, fore, or aft |
color | str | 'Green' | — | Color of the body in the diagram view (default Green). It does not affect the physics. |
Equations
Mass of a box with length ℓ (X), width w (Y), height h (Z) and density ρ:
Moments of inertia about the center of gravity:
Sign conventions & notes
attach_to is 'CG', 'fore' or 'aft' and selects which place on the body sits at the point ref_point_key: its center of gravity, or one end of its length.
The dimensions are measured along the X, Y and Z axes of the body-fixed frame, which is oriented in ref_frame_key.