*hm_auto_elem_cleanup_new
Attempts to automatically improve the quality of failed elements using node movements and/or local remeshing, along with optional tria reduction.
Syntax
*hm_auto_elem_cleanup_new elem_mark_id node_mark_id feature_angle criteria_file string_array number_of_strings
Type
HyperMesh Tcl Modify
Description
Attempts to automatically improve the quality of failed elements using node movements and/or local remeshing, along with optional tria reduction.
Inputs
- elem_mark_id
- The ID of the mark containing the elements to correct. Valid values are 1 and 2.
- node_mark_id
- The ID of the mark containing any anchor nodes to preserve during cleanup. Valid values are 1 and 2.
- feature_angle
- The angle used to define features. Valid values are 0-360, and 30 is a common value.
- criteria_file
- The path to the criteria file. If the criteria are set using *setqualitycriteria, "dummy" can be used as the criteria file name.
- string_array
- The string array ID that contains the list of entity types. A value of ALL means all entity types. The string array is created using the *createstringarray command. This should always be set to 1. Valid strings include:
- number_of_strings
- Integer indicating the size (number of strings) in the string array created using *createstringarray.
Example
Auto correct all elements, using anchor node 50, defining the criteria via a file, no preserved features, considering 7 adjacent layers, using remeshing and tria reduction:
*readqualitycriteria c:/criteria/mycriteria.txt
*createmark elements 1 all
*createmark nodes 2 50
*createstringarray 9 "PreserveFeatures: 0" "ConsiderFailedElems: 1 1 7" "RemoveInverseElements: 1 150" "ReduceTriaElements: 1 1" "FixFailedElements: 1" "QISmooth: 1 0.2 0 0 0 0" "KeepNonShellConnected: 0" "SplitWarpedSkewedQuads: 1" "FixWarpageByNodeMove: 0 0"
*hm_auto_elem_cleanup_new 1 2 15 "dummy" 1 9
Errors
if { [ catch {command_name...} ] } {
# Handle error
}
Version History
2017.1