*morphshapesmooth

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

Syntax

*morphshapesmooth entity_type mark_id option report_file

Type

HyperMesh Tcl Modify

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_type
Must be set to shapes.
mark_id
The ID of the mark containing shapes. 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
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 0 "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 2 "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