BODY_MASS_PROPERTY

Utility/Data Access SubroutineReturns the mass, c.g., and inertia tensor for a body or the entire model.

Use

The function can be called by CONSUB, REQSUB, SENSUB or SEVSUB.

Format

Fortran Calling Syntax
CALL BODY_MASS_PROPERTY(type, id, cm, mass, ip)
C/C++ Calling Syntax
c_body_mass_property(type, id, cm, mass, ip)
Python Calling Syntax
[cm, mass, ip] = py_body_mass_property(type, id)
MATLAB Calling Syntax
[cm, mass, ip] = m_body_mass_property(type, id)

Attributes

type
[string]
Select from Part, Point_Mass, Flex_Body or Model. These keywords are case-insensitive.
Note: For type Model, MotionSolve calculates the cm, mass and ip of the entire MBD model.
id
[integer]
Specifies the ID of the element of type specified above.

Output

cm
[double precision]
A double precision array of length three containing the x, y, and z coordinates of the requested element expressed in the global frame.
mass
[double precision]
A double precision array containing the mass of the requested element expressed in the global frame.
ip
[double precision]
A double precision array of length six containing the six inertia tensors (Ixx, Iyy, Izz, Ixy, Ixz, Iyz) for the requested element expressed in global frame.