ADD_MASS_PROPERTY

Utility/Data Access SubroutineReturns aggregate mass data for a set of bodies.

Use

The function can be called by any user-defined subroutine.

Format

Fortran Calling Syntax
CALL ADD_MASS_PROPERTY(cm1, mass1, ip1, cm2, mass2, ip2)
C/C++ Calling Syntax
c_add_mass_property(cm1, mass1, ip1, cm2, mass2, ip2)
Python Calling Syntax
[cm, mass, ip] = py_add_mass_property(cm1, mass1, ip1, cm2, mass2, ip2)
MATLAB Calling Syntax
[cm, mass, ip] = m_add_mass_property(cm1, mass1, ip1, cm2, mass2, ip2)

Arguments

cm1
[double precision]
A double precision array of length three containing the x, y, and z coordinates of one body or a set of bodies.
mass1
[double precision]
A double precision array containing the mass of one body or a set of bodies.
ip1
[double precision]
A double precision array of length six containing the six inertia tensors (Ixx, Iyy, Izz, Ixy, Ixz, Iyz) for one body or a set of bodies, expressed in a reference marker located at the body center of mass and oriented parallel to the global frame.
cm2
[double precision]
A double precision array of length three containing the x, y, and z coordinates of the second body or a set of bodies.
mass2
[double precision]
A double precision array containing the mass of the second body or a set of bodies.
ip2
[double precision]
A double precision array of length six containing the six inertia tensors (Ixx, Iyy, Izz, Ixy, Ixz, Iyz) for the second body or a set of bodies, expressed in a reference marker located at the body center of mass and oriented parallel to the global frame.

Output

cm
[double precision]
A double precision array of length three containing the x, y, and z coordinates of the combined set of bodies.
mass
[double precision]
A double precision array containing the mass of the combined set of bodies.
ip
[double precision]
A double precision array of length six containing the six inertia tensors (Ixx, Iyy, Izz, Ixy, Ixz, Iyz) for the combined set of bodies, expressed in a reference marker located at the body center of mass and oriented parallel to the global frame.