hm_getmass
Returns the mass, volume and area of the selected elements or components.
Syntax
hm_getmass entity_type mark_id ?mass_type?
Type
HyperMesh Tcl Query Command
Description
This command returns the mass, volume and area of the selected elements or components.
Inputs
- entity_type
- The type of entities to consider. Valid values are elems and comps.
- mark_id
- The ID of the mark. Valid values are 1 and 2.
- mass_type
- The type of mass to output.
Example
To get the mass for elements 1-100:
*createmark elems 1 1-100
set temp [hm_getmass elems 1]
set mass [lindex $temp 0]
set vol [lindex $temp 1]
set area [lindex $temp 2]
Errors
if { [ catch {command_name...} ] } {
# Handle error
}
Version History
10.0
2019 - Added new optional mass_type argument.