hm_gettotalmass

Returns a list of model mass values.

Syntax

hm_gettotalmass

Type

HyperMesh Tcl Query Command

Description

Returns the following values of model mass: total mass, total volume, total area, total structural mass, total non-structural mass, total rigid mass, total lumped mass, total transferred mass, total solver part mass, total model mass.

Examples

To get all the masses in model:

set totalvalues [hm_gettotalmass]
set totalmass [lindex $totalvalues 0]
set totalvolume [lindex $totalvalues 1]
set totalarea [lindex $totalvalues 2]
set totalstructuralmass [lindex $totalvalues 3]
set totalnonstructuralmass [lindex $totalvalues 4]
set totalrigidmass [lindex $totalvalues 5]
set totalLumpedMass [lindex $totalvalues 6]
set totalTransferredMass [lindex $totalvalues 7]
set solverpartmass [lindex $totalvalues 8]
set totalmodelmass [lindex $totalvalues 9]

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