rblock.moi.real

Syntax

t = rblock.moi.real(p)
rblock.moi.real(p) = t

Get/set the rigid block real moment of inertia.

Note

  • In 2D, the polar moment of inertia is used and a float is returned (see below).
  • 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:t - rigid block real moment of inertia tensor or value
Accepts:t - rigid block real moment of inertia tensor or value
Arguments:p - rigid block pointer

Component Access

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

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

Get/set the \(xx\)-value of the rigid block real 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 - \(xx\)-value of the rigid block real moment of inertia tensor
Accepts:f - \(xx\)-value of the rigid block real moment of inertia tensor
Arguments:p - rigid block 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.moi.real(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.moi.real.xy(c)
f = rblock.moi.real.xz(c) (3D only)
f = rblock.moi.real.yy(c)
f = rblock.moi.real.yz(c) (3D only)
f = rblock.moi.real.zz(c) (3D only)