SUBTRACT_MASS_PROPERTY

Utility/Data Access SubroutineReturns mass data for one set of bodies minus another set of bodies.

Use

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

Format

Fortran Calling Syntax
CALL SUBTRACT_MASS_PROPERTY(cm1, mass1, ip1, cm2, mass2, ip2)
C/C++ Calling Syntax
c_subtract_mass_property(cm1, mass1, ip1, cm2, mass2, ip2)
Python Calling Syntax
[cm, mass, ip] = py_subtract_mass_property(cm1, mass1, ip1, cm2, mass2, ip2)
MATLAB Calling Syntax
[cm, mass, ip] = m_subtract_mass_property(cm1, mass1, ip1, cm2, mass2, ip2)

Attributes

cm1
[double]
A double precision array of length three containing the x, y, and z coordinates of one body or a set of bodies.
mass1
[double]
A double precision number representing the mass of one body or a set of bodies.
ip1
[double]
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]
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]
A double precision number representing the mass of the second body or a set of bodies.
ip2
[double]
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

cm2
[double]
C/Fortran Only: A double precision array of length three containing the x, y, and z coordinates of the second set of bodies minus the first set of bodies.
mass2
[double]
C/Fortran Only: A double precision number representing the mass of the second set of bodies minus the first set of bodies.
ip2
[double]
C/Fortran Only:A double precision array of length six containing the six inertia tensors (Ixx, Iyy, Izz, Ixy, Ixz, Iyz) of the second set of bodies minus the first set of bodies, expressed in a reference marker located at the body center of mass and oriented parallel to the global frame.
cm
[double]
Python, MATLAB only: A double precision array of length three containing the x, y, and z coordinates of the second set of bodies minus the first set of bodies.
mass
[double]
Python, MATLAB only: A double precision number representing the mass of the second set of bodies minus the first set of bodies.
ip
[double]
Python, MATLAB only: A double precision array of length six containing the six inertia tensors (Ixx, Iyy, Izz, Ixy, Ixz, Iyz) of the second set of bodies minus the first set of bodies, expressed in a reference marker located at the body center of mass and oriented parallel to the global frame.