hm_getelementcheckmethod

Returns the method (solver) currently being used for calculating specific element quality checks.

Syntax

hm_getelementcheckmethod check_name ?method_mode?

Type

HyperMesh Tcl Query

Description

This command returns the ID of the method (solver) used to calculate the specified element quality check. For element quality check parameters, their meanings and allowable values, see the *elementchecksettings command.

Inputs

check_name
Specifies the element quality check parameter to query. Valid values are:
  • angle
  • aspect_2d
  • aspect_3d
  • cell_squish_2d
  • cell_squish_3d
  • chord_dev
  • equi_skew_2d
  • equi_skew_3d
  • jacobian_2d
  • jacobian_3d
  • min_len_2d
  • min_len_3d
  • skew_2d
  • skew_3d
  • solver
  • taper
  • tetra_collapse
  • time_step
  • warpage
get_method_mode
An optional parameter specifying the mode of retrieving of the returned method. Valid values are:
0 – Returns the method stored globally, regardless of global or individual solver mode.
1 – Return the method specified by the global solver (if an individual solver mode is not being used).
2 – Return the actual method used in calculations. This is the default value.

Example

To retrieve the method currently being used for calculation of the aspect ratio for 2D elements:

set aspect2dmethod [ hm_getelementcheckmethod  aspect_2d]

To retrieve the method currently being used for calculation of the Jacobian for 2D elements:

set jacobian_method [ hm_getelementcheckmethod  jacobian_2d]

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

10-SA1-110