struct.pile.moi

Syntax

v := struct.pile.moi(p)
struct.pile.moi(p) := v

Get/set the moment of inertia of the pile.

This is defined as the second moment of inertia with respect to the \(x\)-, \(y\)-, and \(z\)-axes.

Returns a vector, unless an optional component argument i is supplied, in which case it returns the component value.

Returns:v - moment of inertia vector
Accepts:v - moment of inertia vector
Arguments:p - a pointer to a pile element

Component Access

f := struct.pile.moi (p)->x
struct.pile.moi (p)->x := f

f := struct.pile.moi.x(p)
struct.pile.moi.x(p) := f

Get/set the \(x\)-component of the moment of inertia of the pile.

Returns:f - \(x\)-component of moment of inertia vector
Accepts:f - \(x\)-component of
Arguments:p - a pointer to a pile element

Access other vector components (\(y\), \(z\)) 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 (struct.pile.moi(p,<int>)) 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 := struct.pile.moi.y(p)
f := struct.pile.moi.z(p)