clump.template.moi

Syntax

Tensor Access

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

Get the clump template 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 template moment of inertia tensor or value

Arguments:

c - clump template pointer

i1 - Optional tensor indice 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 indice 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.template.moi.xx(c) (3D ONLY)

Get the xx-value of the clump template moment of inertia.

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

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

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

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

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

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

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

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

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

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

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