Model.hm_gettotalmoi#

Model.hm_gettotalmoi()#

Returns the total tensorial moment-of-inertia values of the model about the center of gravity in the following order: Ixx, Iyy, Izz, Ixy, Ixz, Iyz.

Returns:

  • hwReturnStatus - Status object

  • HmQueryResult - Result object containing the output values:

    • moiValues (numpy.ndarray)- The total tensorial moment-of-inertia values of the model about the COG

Example#

Get the model tensorial moment - of - inertia#
import hm
import hm.entities as ent

model = hm.Model()


_, result = model.hm_gettotalmoi()

IXX_model = result.moiValues[0]
IYY_model = result.moiValues[1]
IZZ_model = result.moiValues[2]
IXY_model = result.moiValues[3]
IXZ_model = result.moiValues[4]
IYZ_model = result.moiValues[5]