rblock.template.moi

Syntax

Tensor Access

t = rblock.template.moi(p<,i1<,i2>>)

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

Arguments:

p - rigid block 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 = 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
f = rblock.template.moi.xy(p) (3D ONLY)

Get the xy-value of the rigid block template moment of inertia.

Returns:f - xy-value of the rigid block template moment of inertia tensor
Arguments:p - rigid block template pointer
f = rblock.template.moi.xz(p) (3D ONLY)

Get the xz-value of the rigid block template moment of inertia.

Returns:f - xz-value of the rigid block template moment of inertia tensor
Arguments:p - rigid block template pointer
f = rblock.template.moi.yy(p) (3D ONLY)

Get the yy-value of the rigid block template moment of inertia.

Returns:f - yy-value of the rigid block template moment of inertia tensor
Arguments:p - rigid block template pointer
f = rblock.template.moi.yz(p) (3D ONLY)

Get the yz-value of the rigid block template moment of inertia.

Returns:f - yz-value of the rigid block template moment of inertia tensor
Arguments:p - rigid block template pointer
f = rblock.template.moi.zz(p) (3D ONLY)

Get the zz-value of the rigid block template moment of inertia.

Returns:f - zz-value of the rigid block template moment of inertia tensor
Arguments:p - rigid block template pointer