Subroutine Type |
Utility/Data Access |
|
Definition |
Returns 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. |
|
Calling Syntax |
Fortran CALL BODY_MASS_PROPERTY(type, id, cm, mass, ip)
C c_body_mass_property(type, id, cm, mass, ip)
Python [cm, mass, ip] = py_body_mass_property(type, id)
MATLAB [cm, mass, ip] = m_body_mass_property(type, id) |
|
Input Arguments |
[string] type |
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. |
[integer] id |
Specifies the ID of the element of type specified above. |
|
Output Values |
[double precision] cm |
A double precision array of length three containing the x, y, and z coordinates of the requested element expressed in the global frame. |
[double precision] mass |
A double precision array containing the mass of the requested element expressed in the global frame. |
|
[double precision] ip |
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. |
See Also: