*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

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:/Altair/hw8.0/hm/batchmesh/10mm.criteria" 30 6 0.5 1.0 -1 0 5
To do the same, except that node IDs 2342 and 131 are not allowed to move, free edges' nodes are not allowed to move across edges (ignore_features =4), and the quality criteria are preset directly by the preceding command
 *reset_qa_calculator
:
*createdoublearray 89  1 2 12 10 8 5 4.5 1 1.5 12 14 16 19 25 1 1 1 2 4 5 10  1 2 0 5 15 20 40 1 1 90 110 140 150 165 1 1 90 70 40 30 15 1 1 60 80 120 130 155 1 1 60 50 30 20 10 1 1.5 0 10 50 60 75 1 2 1 0.9 0.6 0.5 0.35 0 0 0 0.3 0.8 1 2 1 2 0 3.846 6.615 8 10.31 0 0 0.5 1 5
*reset_qa_calculator 1 89 
*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