*morphshapesmooth

Checks the element quality for all combinations of the selected shapes either as they are currently or after smoothing them.

Syntax

*morphshapesmooth entity_type1 shape_mark_id entity_type2 node_mark_id option autofix constraints feature_angle report_file

Type

HyperMesh Tcl Modify Command

Description

This command will apply the selected shapes on the mark in every combination possible at their most extreme values (either 0.0 and 1.0 or the lower and upper bounds on associated desvar entities), checking the element quality of the mesh and reporting the worst values in a specified file. Optionally this command can be used to smooth the shapes on the mark individually or to smooth all of the combinations of the shapes simultaneously, improving the element quality of the mesh for each combination. The quality will be checked and a report issued after any smoothing is performed. The report will also include the maximum upper and lower bounds at which the shapes on the mark can be applied in order to avoid errors during shape optimization.

Inputs

entity_type1
Must be set to shapes.
shape_mark_id
The ID of the mark containing shapes. Valid values are 1 and 2.
entity_type2
Must be set to nodes.
node_mark_id
The ID of the mark containing the fixed nodes. Valid values are 1 and 2.
option
0 - Check all combinations for conflicts
1 - Smooth each individual shape and check combinations for conflicts
2 - Smooth all shape combinations simultaneously and check combinations for conflicts
autofix
Defines which nodes will be fixed.
0 - No autofix
1 - Edges
2 - Edges and features
3 - Edges and faces
constraints
0 - Apply all morph constraints
1 - Fix all constrained nodes
feature_angle
Used to determine the features when autofix is set to 2.
report_file
Full path and file name of report file.

Examples

To check the element quality for four shapes when applied at all possible combinations:

*createmark shapes 1 "s1" "s2" "s3" "s4"
*morphshapesmooth shapes 1 nodes 1 0 0 0 30 "C:/Temp/Report.txt"

To smooth the shapes on the mark for all possible combinations:

*createmark shapes 1 "s1" "s2" "s3" "s4"
*morphshapesmooth shapes 1 nodes 1 0 2 0 30 "C:/Temp/Report.txt"

Errors

Incorrect usage results in a Tcl error. To detect errors, you can use the catch command:
if { [ catch {command_name...} ] } {
   # Handle error
}

Version History

12.0.110