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.

A rigid body box: a rectangular block of uniform density

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.

NameTypeDefaultUnitsDescription
namestrNone—Key to be used when referencing this box.
ref_point_keystr'origin'—Key of the point to which this box is attached, either at its CG, aft, or forward ends.
ref_frame_keystr'inertial'—Key of the frame to which this box orientation is defined.
densitynumeric0kg/m³Uniform density of this box.
lengthnumeric0mDimension of this box in the X-axis of the body-fixed frame.
widthnumeric0mDimension of this box in the Y-axis of the body-fixed frame.
heightnumeric0mDimension of this box in the Z-axis of the body-fixed frame.
attach_tostr'CG'—CG, fore, or aft
colorstr'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 ρ:

m=ρ ℓ w hm = \rho\,\ell\,w\,h

Moments of inertia about the center of gravity:

Ixx=m12(w2+h2),Iyy=m12(ℓ2+h2),Izz=m12(ℓ2+w2)I_{xx} = \tfrac{m}{12}(w^2 + h^2), \quad I_{yy} = \tfrac{m}{12}(\ell^2 + h^2), \quad I_{zz} = \tfrac{m}{12}(\ell^2 + w^2)

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.

Search the docs