clump.moi

Syntax

Tensor Access

t = clump.moi(c<,i1<,i2>>)

Get the clump moment of inertia.

Note

In 2D, the polar moment of inertia is used so the optional integers are not available and a float is returned.

Returns:

t - clump moment of inertia tensor or value

Arguments:

c - clump pointer

i1 - Optional tensor index that, if given without i2, ranges from 1 to 7, accessing the xx, yy, zz, xy, xz, and yz tensor values.

i2 - Optional tensor notation that must be given with i1. In this case, i1 corresponds to the first index of the tensor position and i2 to the second in the row/column format. For instance, i1 = 1 and i2 = 3 returns the xz tensor value.

Value 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
f = clump.moi.xy(c) (3D ONLY)

Get the xy-value of the clump moment of inertia.

Returns:f - xy-value of the clump moment of inertia tensor
Arguments:c - clump pointer
f = clump.moi.xz(c) (3D ONLY)

Get the xz-value of the clump moment of inertia.

Returns:f - xz-value of the clump moment of inertia tensor
Arguments:c - clump pointer
f = clump.moi.yy(c) (3D ONLY)

Get the yy-value of the clump moment of inertia.

Returns:f - yy-value of the clump moment of inertia tensor
Arguments:c - clump pointer
f = clump.moi.yz(c) (3D ONLY)

Get the yz-value of the clump moment of inertia.

Returns:f - yz-value of the clump moment of inertia tensor
Arguments:c - clump pointer
f = clump.moi.zz(c) (3D ONLY)

Get the zz-value of the clump moment of inertia.

Returns:f - zz-value of the clump moment of inertia tensor
Arguments:c - clump pointer