98 pebbles = DATA[
'pebbles']
99 density = DATA[
'density']
102 if OPT[
'verbose']:
print(
"Total mass of pebbles: ", mass)
106 if OPT[
'verbose']:
print(
"Tensor of inertia of pebbles: ", toi)
110 if OPT[
'verbose']:
print(
"Principal directions: ", v1, v2, v3)
113 if OPT[
'rotateToPD']:
115 if OPT[
'verbose']:
print(
"Rotated principal directions: ", v1, v2, v3)
116 if OPT[
'verbose']:
print(
"Rotated toi: ", toi)
119 DATA[
'pebbles'] = pebbles
121 DATA[
'pd'] = v1, v2, v3
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Packet print(const Packet &a)
Definition: GenericPacketMath.h:1166
def ComputeInertiaFromPebbles(OPT, DATA)
Definition: InertiaComputationsPebbles.py:96
def ComputePrincipalDirections(toi)
Definition: InertiaComputationsPebbles.py:49
def ComputeTOIPebbles(pebbles, density)
Definition: InertiaComputationsPebbles.py:33
def ShiftToCOMPebbles(pebbles, density)
Definition: InertiaComputationsPebbles.py:25
def RotateToPDPebblesTOI(pebbles, toi, v1, v2, v3)
Definition: InertiaComputationsPebbles.py:79