hm_gettotalcog

Returns the center of gravity of the entire model.

Syntax

hm_gettotalcog

Type

HyperMesh Tcl Query Command

Description

Returns the center of gravity of the entire model including solvermasses, rigidwalls and so on.

Examples

To get the model center of gravity:

set totalcog [hm_gettotalcog]
set COGX_model [lindex $totalcog 0]
set COGY_model [lindex $totalcog 1]
set COGZ_model [lindex $totalcog 2]

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

2022.2