*adaptive_triangle_mesh
Creates an adaptive tria mesh from an STL tria mesh input.
Syntax
*adaptive_triangle_mesh entity_type mark_id options
Type
HyperMesh Tcl Modify Command
Description
Creates an adaptive tria mesh from an STL tria mesh input. This is useful for remeshing dirty STL meshes.
Inputs
- entity_type
- The type of entity to remesh. Valid values are comps and elems.
- mark_id
- The ID of the mark containing the input entities. Valid values are 1 and 2.
- options
- The options to control the new mesh generation. They are all key=value pairs. Pairs
are separated by either a space or a comma. Valid parameters are:
- break_connectivity=<value>
- Option to manage the connectivity with the neighboring mesh:
- dfmin=<value>
- The minimum elem size.
- feature_angle=<value>
- The minimum angle used to define features to keep in the resulting mesh. Default is 35.0 degrees.
- growth_ratio=<value>
- The growth ratio of the triangles. Default is 1.2.
- inside=<value>
- The fixed number of layers of elements inside the element selection where the connectivity is redone. This is valid only when break_connectivity=3.
- outside=<value>
- The fixed number of layers of elements outside the element selection where the connectivity is redone. This is valid only when break_connectivity=3.
- ref_size=<value>
- The default elem size.
- span_angle=<value>
- Defines the maximum angle an element can span on a curved section. Default is 25.0 degrees.
Examples
To create a new adaptive mesh of comp "remesh" with new mesh size 10, minimum size 1.0, growth ratio 1.2, span angle 30 degrees and feature angle 30 degrees:
*createmark comps 1 "remesh"
*adaptive_triangle_mesh comps 1 "growth_ratio=1.2 span_angle=30.0 feature_angle=30.0 ref_size=10.0 dfmin=1.0"
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
14.0
2021 - Added new options optional values break_connectivity, inside and outside.