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?

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 and elems.
mark_id
The ID of the mark containing the entities. Valid values are 1 and 2.
location_flag (optional)
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.
node_id (optional)
Specifies the node location about which the MOI is calculated if location_flag=2. Ignored otherwise.
axes_flag (optional)
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 (optional)
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.

Example

To get the MOI for components 1-5:

*createmark comps 1 1-5
hm_getmoi comps 1

Errors

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