rblock.template.moi

Syntax

t = rblock.template.moi(p)

Get the rigid block template moment of inertia.

Note

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

Returns:

t - rigid block template moment of inertia tensor or value

Arguments:

p - rigid block template pointer

Component Access

f = rblock.template.moi (p)->xx

f = rblock.template.moi.xx(p) (3D ONLY)

Get the \(xx\)-value of the rigid block template moment of inertia.

Returns:

f - \(xx\)-value of the rigid block template moment of inertia tensor

Arguments:

p - rigid block template 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 = rblock.template.moi(p, 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 = rblock.template.moi.xy(p)
f = rblock.template.moi.xz(p) (3D only)
f = rblock.template.moi.yy(p)
f = rblock.template.moi.yz(p) (3D only)
f = rblock.template.moi.zz(p) (3D only)