clump.moi

Syntax

t = clump.moi(c)

Get the clump moment of inertia.

Note

In 2D, the polar moment of inertia is used and a float is returned.

Returns:t - clump moment of inertia tensor or value
Arguments:c - clump pointer

Component Access

f = clump.moi.xx(c) (3D ONLY)

Get the \(xx\)-value of the clump moment of inertia.

Returns:f - \(xx\)-value of the clump moment of inertia tensor
Arguments:c - clump pointer

Access other tensor components (\(yy\), \(zz\), \(xy\), \(xz\), \(yz\)) by substituting the component name where \(xx\) appears above. \(xz\), \(yz\), and \(zz\) are 3D only. See Member Access Operator for information about accessing members from data types using ->.

Deprecated Component Access

Component access by adding optional integer(s) in the function arguments (e.g., f = clump.moi(c, 1, 1)) 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 = clump.moi.xy(c)
f = clump.moi.xz(c) (3D only)
f = clump.moi.yy(c)
f = clump.moi.yz(c) (3D only)
f = clump.moi.zz(c) (3D only)