SYSTEM_MOMENTUM

The SYSTEM_MOMENTUM utility subroutine computes the total Momentum (Linear and Angular) of all Bodies with mass in a model. This includes PART (PLANAR and 3D), FE_PART (2D and 3D), FLEX_BODY, and POINT_MASS. The computed Momentum is returned in Global coordinates. The Angular Momentum is computed about a specified reference location.

Use

Called By

Any of a REQSUB, SENSUB, SEVSUB, CONSUB or CBKSUB.

Prerequisite

None

Calling Sequence

CALL SYSTEM_MOMENTUM (rm, p, l)

Input Arguments

 
rm
A marker ID which references location for computing Angular Momentum.

Output Arguments

 
p
A double-precision array (length=3) that specifies the (x,y,z) components of total Linear Momentum of all Bodies with mass. The value is expressed in GCS.
l
A double-precision array (length=3) that specifies the (x,y,z) components of total Angular Momentum of all Bodies with mass. The value is expressed in GCS. It is computed about the location specified by input parameter rm.
 
Caution:  
The SYSTEM_MOMENTUM utility subroutine provides access to state-dependent information to the user-written subroutines. However, since this information is expected to be used only for monitoring and control purposes and not to affect the dynamics, no functional dependencies are registered. Consequently, this utility subroutine can only be called from the user-written subroutines that cannot add functional dependencies - REQSUB, SENSUB, SEVSUB, CONSUB and CBKSUB.