*cadwrapper
Wraps the geometry.
Syntax
*cadwrapper entity_type mark_id string_options
Type
HyperMesh Tcl Modify Command
Description
Wraps the input entities and provides additional functionalities to remove nodes, fix quality, or split tria elements.
Inputs
- entity_type
- The type of the input entities. Valid values are elements and FE surfaces.
- mark_id
- The ID of the mark containing the input entities. Valid values are 1 and 2.
- string_options
- The string defining which operation to perform and the corresponding parameters.To remove internal nodes from selected elements:
"tri: rmnodes"
To fix quality:"rmx2d: angle=<value> prx=<value> ar=<value> szmin=<value> clsfy2d"
To wrap input:"wrap2d: combo=<value> angle=<value> prx=<value> ar=<value> szmin=<value> clsfy2d leak=<value> sz2rm=<value> iter=<value>"
- angle
- Fix dihedral angle elements below defined angle.
- prx
- Fix proximity elements below defined value.
- ar
- Fix aspect ratio above defined value.
- szmin
- Fix elements below edge length below defined value.
- clsfy2d
- Include this string if patch elements in gap needs to be organized in neighboring components, otherwise those will be placed in new component.
- iter
- Number of iterations for fixes.
Examples
*createmark elems 1 all
*cadwrapper elems 1 "wrap2d: combo=1 ar=100 angle=2 sz2rm=20 sz2split=20 clsfy2d iters=99"
Errors
if { [ catch {command_name...} ] } {
# Handle error
}
Version History
2023