*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:
  • growth_ratio: The growth ratio of the triangles. Default is 1.2.
  • span_angle: Defines the maximum angle an element can span on a curved section. Default is 25.0 degrees.
  • feature_angle: The minimum angle used to define features to keep in the resulting mesh. Default is 35.0 degrees.
  • ref_size: The default elem size.
  • dfmin: The minimum elem size.

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