::GetAggregateCGAndInertia

This command will return the aggregate Mass, CG, Moment of Inertia, or Product of Inertia based on the inputs specified. On successful execution of the command, it will return the aggregate value or values. The moment of inertia and product of inertia values returned are with respect to a coordinate system parallel to Global Frame at the aggregate CG of the bodies provided in the list argList.

Syntax

::model::GetAggregateCGandInertia argList argType

Application

MotionView Tcl

Description

This command will return the aggregate Mass, CG, Moment of Inertia, or Product of Inertia based on the inputs specified. On successful execution of the command, it will return the aggregate value or values. The moment of inertia and product of inertia values returned are with respect to a coordinate system parallel to Global Frame at the aggregate CG of the bodies provided in the list argList.

Inputs

argList
A list of full varnames of systems or bodies, or a combination of both systems and bodies needs to be provided in order to get the aggregate CG/Inertia value.
argType
An input type (MASS/CG/MOI/POI) must be provided in order to get the aggregate value for the provided argList. The argType keyword is case insensitive.

Example

::model::GetAggregateCGAndInertia {MODEL.sys_0 MODEL.sys_1.b_1.l MODEl.b_0} MOI
::model::GetAggregateCGAndInertia {MODEL.sys_0 MODEL.sys_1.b_1.l MODEl.b_0} POI
::model::GetAggregateCGAndInertia {MODEL.sys_0 MODEL.sys_1.b_1.l MODEl.b_0} mass
::model::GetAggregateCGAndInertia {MODEL.sys_0 MODEL.sys_1.b_1.l MODEl.b_0} cg

Errors

Returns a zero value if any of the MotionView entity variable names specified are other than bodies or system/assembly for argList. No return value if any invalid keyword is specified for argType.