*setqualitycriteria
Defines the current element quality criteria via flexible string input.
Syntax
*setqualitycriteria string_array number_of_strings mode
Type
HyperMesh Tcl Modify Command
Description
Defines the current element quality criteria via flexible string input. This may be useful for autocleanup, interactive QI meshing, QI node optimization, element cleanup, etc...
Inputs
- string_array
- The ID of the string array that contains the element quality criteria information. The string array is created using the *createstringarray command. This should always be set to 1.
- number_of_strings
- Integer indicating the size (number of strings) in the string array created using *createstringarray.
- mode
- 0 - The criteria are reset completely for all the elements quality parameters. Any omitted parameters are disabled.
Examples
Completely reset the quality criteria using default methods:
*createstringarray 14 \
" 0 penalty value      0.00    0.00    0.80    1.00   10.00" \
" 1 min length        1 1.0   3.000   2.749   1.502   1.000   0.749  1" \
" 2 max length        1 1.0   3.000   3.600   4.500   6.000   9.000  0" \
" 3 aspect ratio      1 1.0   1.000   2.000   4.400   5.000  10.000  0" \
" 4 warpage           1 1.0   0.000   5.000  13.000  15.000  30.000  0" \
" 5 max angle quad    1 1.0  90.000 110.000 134.000 140.000 160.000  0" \
" 6 min angle quad    1 1.0  90.000  70.000  46.000  40.000  20.000  0" \
" 7 max angle tria    1 1.0  60.000  80.000 112.000 120.000 150.000  0" \
" 8 min angle tria    1 1.0  60.000  50.000  34.000  30.000  15.000  0" \
" 9 skew              1 1.0   0.000  10.000  34.000  40.000  70.000  0" \
"10 jacobian          1 1.0   1.000   0.900   0.700   0.600   0.300  0" \
"11 chordal dev       0 1.0   0.000   0.300   0.800   1.000   2.000  0" \
"12 taper             1 1.0   0.000   0.200   0.500   0.600   0.900  0" \
"13 % of trias        1 1.0   0.000   6.000  10.000  15.000  20.000  0"
*setqualitycriteria 1 14 0*createstringarray 2 "aspect ratio 1 1.0 1.000 1.500 3.000 4.000 10.000 9" "skew 1 1.0 0.000 8.000 30.00 35.00 60.000 9"
*setqualitycriteria 1 2 1Errors
if { [ catch {command_name...} ] } {
   # Handle error
}Version History
14.0