*qismoothconstrained

This command tries to improve the selected elements' quality index by QI optimizing elements nodes positions.

Syntax

*qismoothconstrained smoothmark anchormark criteria_file feature_angle goal_qi ignore_features constr_flags stifflimit toughlimit midlimit looselimit max_iteration ,time_limit

Type

HyperMesh Tcl Modify

Description

This command tries to improve the selected elements' quality index by QI optimizing elements nodes positions. It tries to achieve the best possible quality index value by allowing nodes to move up to the specified absolute limits dependent on the position of nodes respect to feature edges.

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.
constr_flags
The additive flags defining constraints to be applied:
  • 0 – No constraints are applied.
  • +1 – Constraints applied to nodes movement across feature edges.
  • +2 – Constraints applied to fixed nodes movement along feature edges.
  • +4 – Constraints applied to nodes across smooth (not feature) edges.
  • +8 – Constraints applied to vertex nodes along feature edges.
  • +16 – Constraints applied to all nodes along feature edges.
  • +32 – Constraints applied to surface (not edge) nodes.
stifflimit
Maximum absolute movement of free edges nodes.
toughlimit
Maximum absolute movement of nodes of shared feature edges or fixed nodes along feature edges.
midlimit
Maximum absolute movement for nodes movement of smooth (non feature) shared edges or non-corner nodes along feature edges.
looselimit
Maximum absolute movement for not-edge (surface) nodes. Each of the limits has effect if the corresponding flags are set, ignore_features has corresponding value and the limit has non-negative value.
max_iterations
Maximum number of algorithm iterations. Usually 3 to 5 can be used.
time_limit
The time limit in minutes. If 0 is passed – ignored.

Example

*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  
   *qismoothconstrained 1 1 "dummy" 30 0.2 6 3 0.5 1.0 1.5 2.0 5 0
In the above example:
  • Quality criteria is preset by *createdoublearray() and *reset_qa_calculator() commands; “dummy” is used as a quality criteria name
  • feature_angle = 30 degrees
  • goal_QI = 0.2
  • ignore_features = 6 (allow movement of nodes across free and shared feature edges)
  • constr_flags = 3 (that is, 1 and 2) – constraints are applied only to nodes movement across free and shared feature edges
  • stiff_limit = 0.5 – limit for movement free edges nodes
  • tough_limit = 1.0 – limit for movement shared feature edges nodes
  • midlimit = 1.5 - limit for movement of nodes of not-feature edges (is not applied here, according to constr_flags = 3)
  • looselimit = 2.0 - limit for movement of surface nodes (is not applied here , according to constr_flags = 3)
  • max_iterations = 5
  • time_limit = 0 - no time limit applied

Errors

The command returns error codes for wrong quality criteria, no elements selected and internal optimization errors.

Version History

9.0