hm_gettotalmoi
Returns the total tensorial moment-of-inertia values of the model about the center of gravity.
Syntax
hm_gettotalmoi
Type
HyperMesh Tcl Query Command
Description
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.
Examples
To get the model tensorial moment-of-inertia:
set totalmoi [hm_gettotalmoi]
set IXX_model [lindex $totalmoi 0]
set IYY_model [lindex $totalmoi 1]
set IZZ_model [lindex $totalmoi 2]
set IXY_model [lindex $totalmoi 3]
set IXZ_model [lindex $totalmoi 4]
set IYZ_model [lindex $totalmoi 5]
Errors
if { [ catch {command_name...} ] } {
# Handle error
}
Version History
2022.2