hm_getmoi
Returns the tensorial moment-of-inertia values for the selected entities.
Syntax
hm_getmoi entity_type mark_id ?location_flag? ?node_id? ?axes_flag? ?system_id? ?reserved_1? ?reserved_2? ?reserved_3? ?reserved_4? ?lumpedmassflag?
Type
HyperMesh Tcl Query Command
Description
Returns the tensorial moment-of-inertia Ixx, Iyy, Izz, Ixy, Ixz, Iyz values for the selected entities.
Inputs
- entity_type
 - The type of entity to query. Currently supported for comps, elems, mats, props, parts, assems, plies, and laminates.
 - mark_id
 - The ID of the mark containing the entities. Valid values are 1 and 2.
 - location_flag
 - Specifies the location about which the MOI is calculated. Valid values are:
- 0 - Global (0,0,0). Default.
 - 1 - COG location.
 - 2 - Node specified by node_id argument.
 - 3 - System specified by system_id argument.
 
 - node_id
 - Specifies the node location about which the MOI is calculated if location_flag=2. Ignored otherwise.
 - axes_flag
 - Specifies the axes to report the MOI values relative to. Valid values are:
- 0 - Global axes. Default.
 - 1 - Principal axes
 - 2 - System specified by system_id argument.
 
 - system_id
 - Specifies the system ID to report the MOI values relative to if axes_flag=2. Ignored otherwise.
 - reserved_1
 - Reserved for future use. Must be set to 0.
 - reserved_2
 - Reserved for future use. Must be set to 0.
 - reserved_3
 - Reserved for future use. Must be set to 0.
 - reserved_4
 - Reserved for future use. Must be set to 0.
 - lumpedmassflag
 - Specifies whether to include lumped mass in the MOI calculations.
 
Example
To get the MOI for components
        1-5:
    *createmark comps 1 1-5
hm_getmoi comps 1Errors
Incorrect usage results in a Tcl error. To detect
        errors, you can use the catch
        command:
    if { [ catch {command_name...} ] } {
   # Handle error
}Version History
11.0.101
2021.2 - Added new supported entity types mats, props, parts, assems, plies, and laminates.
2022.3 - Added new location_flag value 3 and added lumpedmassflag.