rblock.moi.prin.real

Syntax

v = rblock.moi.prin.real(p)
rblock.moi.prin.real(p) = v

Get/set the rigid block real principal moment of inertia.

Note

When modified, no other rigid block attributes are changed. The specification of the moment of inertia in this way results in the principal moments of inertia being in a fixed state so that they will not be automatically updated when scaling a rigid block unless the user changes the fix state (see rblock.moi.fix).

Returns:

v - rigid block real principal moment of inertia vector

Accepts:

v - rigid block real principal moment of inertia vector

Arguments:

p - rigid block pointer

Component Access

f = rblock.moi.prin.real (p)->x
rblock.moi.prin.real (p)->x = f

f = rblock.moi.prin.real.x(p)
rblock.moi.prin.real.x(p) = f

Get/set the \(x\)-component of the rigid block real principal moment of inertia.

Note

When modified, no other rigid block attributes are changed (e.g., pebble sizes, rigid block volume). The specification of the moment of inertia in this way results in the principal moments of inertia being in a fixed state so that they will not be automatically updated when scaling a rigid block unless the user changes the fix state (see rblock.moi.fix).

Returns:

f - \(x\)-component of the rigid block real principal moment of inertia vector

Accepts:

f - \(x\)-component of the rigid block real principal moment of inertia vector

Arguments:

p - rigid block pointer

Access other vector components (\(y\), \(z\) (3D ONLY)) by substituting the component name where \(x\) appears above. See Member Access Operator for information about accessing members from data types using ->.

Deprecated Component Access

Component access by adding an optional integer in the function arguments (e.g., f = rblock.moi.prin.real(p, 3)) is deprecated. It remains available but will not be supported in future versions. See Component Access with Integers in FISH on the Deprecated Commands and FISH page for details.

This is hidden. Added to include remaining vector component access functions for inline help.

f = rblock.moi.prin.real.y(p)
f = rblock.moi.prin.real.z(p) (3D ONLY)