*qismoothfixfailed
Selectively applies QI smoothing (the quality index-based node-position optimization) to elements violating the quality index thresholds. Allowed displacements of nodes on the feature edges are limited by user-specified thresholds. The command tries to fix the failed elements while making moving the feature nodes as little as possible.
Syntax
*qismoothfixfailed smoothmark anchormark criteria_file feature_angle ignore_features freenodesmovelimit breaknodesmovelimit smoothedgenodesmovelimit flgs max_iterations
Type
HyperMesh Tcl Modify Command
Description
This command is applied to a selection of elements given by the elements mark. It changes positions of nodes of elements violating the quality index threshold and possibly of adjacent elements. Maximum displacements of nodes on feature edges are limited by the user-specified values.
The command parameters have the following meaning:
Inputs
- smoothmark
- The elements selection mark (1 or 2).
- anchormark
- The mark of additional (to welds) nodes not allowed to move (1 or 2).
- criteria_file
- The path to the criteria file. If the criteria are set by a preceding command, "dummy" can be used as a criteria file name.
- feature_angle
- Elements feature angle for defining of features in degrees (30 degrees is a commonly used value).
- ignore_features
- The flag defining permissions of node movement across the feature edges:
- 0 - Nodes are not allowed to move across feature edges.
- 1 - Nodes are allowed to be moved across shared edges; free edges nodes, marked edges, edges of features (beads, washers, dimples, birdbeaks, fillets), all fixed nodes are forbidden for movement across.
- 2 - The same as "1", but nodes on some of the features surfaces (beads, vertices) are unfixed + end vertices of fillet edge are unfixed.
- 3 - The same as "2", but fillet edges are released and some curves sharp break vertices are unfixed.
- 4 - All shared edges nodes,including recognized features boundary edges, all non-user marked edges and fixed vertices are released for movement across;
- 5 - The same as "4" but free edges nodes are also released, those nodes are not allowed to move off the surfaces;
- 6 - The same as "5" but free edges nodes are allowed now to move off surfaces breaking associativity with geometry.
- freenodesmovelimit
- Maximum absolute movement for free edges nodes. If negative value - no constraints are applied.
- breaknodesmovelimit
- Maximum absolute movement for shared feature edges nodes. If negative value - no constraints are applied.
- smoothedgenodesmovelimit
- Maximum absolute movement for smooth (non feature) shared edges nodes. If negative value - no contsraints applied.
- flgs
- Flags controlling internal algorithms. The default is 0. flgs = 256 should be used to mark moved free edges by plot elements placed in the predefined component - to account for the moved edges on the future steps.
- max_iterations
- Maximum number attempts to fix the failed elements. Usually 3-5 can be used.
Example
To fix the displayed failed elements with no anchor nodes, using the quality criteria file C:/Altair/hw8.0/hm/batchmesh/10mm criteria, feature angle 30 degrees, with maximum allowed ignore_features option 6 (the free edges' nodes are allowed to be moved across with breaking of associativity with geometry), maximum allowed movement of free edges nodes is 0.5, maximum allowed movement of shared feature edges nodes is 1.0, no constraints applied to movement across of non-feature shared edges (-1), no marking of moved feature edges (flgs = 0), 5 iterations applied:
*createmark elements 1 "displayed"
*createmark nodes 1
*qismoothfixfailed 1 1 "C:/temp/10mm.criteria" 30 6 0.5 1.0 -1 0 5
*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
*createmark elements 1 "displayed"
*createmark nodes 1 2342 131
*qismoothfixfailed 1 1 "dummy" 30 4 0.5 1.0 -1 0 5
Errors
The command returns error codes for wrong quality criteria, no elements selected and internal optimization errors.
Version History
9.0