hm_morph_getinfo

Returns certain options/values from HyperMorph.

Syntax

hm_morph_getinfo option ?value1? ?value2?

Type

HyperMesh Tcl Query

Description

Returns certain options/values from HyperMorph.

Inputs

option
There are different options available. Each requires its own format:
domaincount
domain_type
domain_type
The type of domain to count. Valid values are:
  • 0 – All domains
  • 1 - 1D domains
  • 2 - 2D domains
  • 3 - 3D domains
  • 4 - Global domains
  • 5 - Edge domains
  • 7 - General domains
excludedelements list
Returns a list of all excluded element IDs.
excludedelements mark
mark_id
The query will return nothing, but all excluded elements will be placed on the specified mark_id.
parameter
parameter_name
parameter_name
The parameter to query. See the documentation for *morphupdateparameter and *morphupdateparameterstring for a list of supported values.
testlimits
elem_type test_id
The query will return four arguments corresponding to the information stored for the element checks used by *morphshapesmooth. The first will be either "active" or "inactive" denoting the status of the element test. The next three will be real numbers denoting the limits for the warning, error, and invalid elements criteria.
elem_type
0 - trias
1 - quads
2 - tetras
3 - pyras
4 - pentas
5 - hexas
test_id
0 - aspect ratio
1 - skew
2 - minimum angle
3 - maximum angle
4 - warpage
5 - tetra collapse
6 - jacobian
undolist current
Returns the current position in the undo/redo list.
undolist maximum
Returns the length of the undo/redo list.

Examples

To obtain the status and limits for the quad element Jacobian test:

hm_morph_getinfo testlimits 1 6

To get the number of 2D domains:

hm_morph_getinfo domaincount 2

To get the facecolor setting:

hm_morph_getinfo parameter facecolor

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

14.0