*reset_qa_calculator
Sets mesh quality criteria using a string array.
Syntax
*reset_qa_calculator string_array number_of_strings
Type
HyperMesh Tcl Modify
Description
This command sets mesh quality criteria using a string array.
The criteria consists of data for the quality parameters and penalty values for thresholds. The same data structure is used for each of the quality parameters. The order of the array is predefined:
min_length max_length aspect_ratio warpage max_angle_quad min_angle_quad max_angle_tria min_angle_tria skew jacobian chordal_deviation ?taper? penalty_values
- State (1 = on, 0 = off)
- Weight factor
- Ideal threshold level
- Good threshold level
- Warning threshold level
- Failed threshold level
- Worst threshold level
The ratings for the parameters must be monotonic (increasing or decreasing depending on the nature of the parameter).
The dimensionless threshold penalty values for ideal, good, warning, failed and worst parameter must be five monotonically increasing values.
Inputs
- string_array
- The ID of the string array that contains the input parameters. 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. Currently this must be set to either 89 (for legacy usage without taper defined) or 96 (with taper defined).
Example
To update using the following mesh criteria without taper (legacy usage):
#Criterion On Wt Ideal Good Warn Fail Worst
0 penalty value 0.00 0.00 0.80 1.00 10.00
1 min length 1 1 15.00 13.50 6.00 3.00 1.50
2 max length 1 1 15.00 18.00 22.50 30.00 45.00
3 aspect ratio 1 1 1.00 2.00 4.40 5.00 10.00
4 warpage 1 1 0.00 5.00 8.00 10.00 90.00
5 max angle quad 1 1 90.00 110.00 125.00 135.00 180.00
6 min angle quad 1 1 90.00 70.00 55.00 45.00 0.00
7 max angle tria 1 1 60.00 80.00 100.00 120.00 180.00
8 min angle tria 1 1 60.00 50.00 30.00 20.00 0.00
9 skew 1 1 0.00 10.00 35.00 45.00 90.00
10 jacobian 1 1 1.00 0.90 0.75 0.70 0.00
11 chordal dev 0 1 0.00 0.30 0.80 1.00 2.00
12 taper 1 1 0.00 0.200 0.500 0.600 0.900
13 % of trias 1 1 2.00 6.00 8.00 10.00 15.00
*createdoublearray 89 \
1 1 15 13.5 6 3 1.5 \
1 1 15 18 22.5 30 45 \
1 1 1 2 4.4 5 10 \
1 1 0 5 8 10 90 \
1 1 90 110 125 135 180 \
1 1 90 70 55 45 0 \
1 1 60 80 100 120 180 \
1 1 60 50 30 20 0 \
1 1 0 10 35 45 90 \
1 1 1 0.9 0.75 0.7 0 \
1 0 0 0.3 0.8 1 2 \
1 1 2 6 8 10 15 \
0 0 0.8 1 10
*reset_qa_calculator 1 89
To update using the above mesh criteria with taper:
*createdoublearray 96 \
1 1 15 13.5 6 3 1.5 \
1 1 15 18 22.5 30 45 \
1 1 1 2 4.4 5 10 \
1 1 0 5 8 10 90 \
1 1 90 110 125 135 180 \
1 1 90 70 55 45 0 \
1 1 60 80 100 120 180 \
1 1 60 50 30 20 0 \
1 1 0 10 35 45 90 \
1 1 1 0.9 0.75 0.7 0 \
1 0 0 0.3 0.8 1 2 \
1 0 0.0 0.2 0.5 0.6 0.9 \
1 1 2 6 8 10 15 \
0 0 0.8 1 10
*reset_qa_calculator 1 96
Errors
if { [ catch {command_name...} ] } {
# Handle error
}