*defaultremeshelems
Re-meshes a selection of elements using various options, and deletes the original elements.
Syntax
*defaultremeshelems mark_id elem_size elem_type elem_type_2 comp_mode size_control skew_control edge_mesh_type min_size max_size max_deviation max_angle previous_settings vertex_angle
Type
HyperMesh Tcl Modify Command
Description
Re-meshes a selection of elements using various options, and deletes the original elements.
Inputs
- mark_id
- The ID of the mark containing the elements to re-mesh. Valid values are 1 and 2.
- elem_size
- The default element size used to calculate element densities along edges (when necessary).
- elem_type
- Flag indicating the elements generated for mapped meshing algorithms. Valid values are:
- 0 - trias
- 1 - quads
- 2 - mixed
- 3 - right trias
- 4 - quads only
- elem_type_2
- Flag indicating the elements generated for free meshing algorithms. Valid values are:
- 0 - trias
- 1 - quads
- 2 - mixed
- 3 - right trias
- 4 - quads only
- comp_mode
- Parameter specifying how entities are organized into components:
- 0 - Elements are created in the current component. Boundaries between components are not maintained when remeshing.
- 1 - Elements are created in the same components as the source elements. Boundaries between components are maintained when remeshing
- size_control
- Flag indicating whether to create uniformly sized elements. Valid values are:
- 0 - Do not create uniformly sized elements.
- 1 - Create uniformly sized elements.
- skew_control
- Flag indicating whether to create optimally shaped elements when using mapping
algorithms. Valid values are:
- 0 - Do not create optimally shaped elements.
- 1 - Create optimally shaped elements.
- edge_mesh_type
- Determines the algorithm for edge meshing:
- 1 - Standard edge meshing.
- 2 - Chordal deviation edge meshing.
- 11 - Standard edge meshing with flow "align" control.
- 12 - Chordal deviation edge meshing with flow "align" control.
- 14 - Standard edge meshing with flow "align" and "size" control.
- min_size
- Minimum edge size for chordal deviation edge meshing. Ignored, if edge_mesh_type is not set to 2 or 12.
- max_size
- Maximum edge size for chordal deviation edge meshing. Ignored, if edge_mesh_type is not set to 2 or 12.
- max_deviation
- Maximum deviation for chordal deviation edge meshing. Ignored, if edge_mesh_type is not set to 2 or 12.
- max_angle
- Maximum angle value (in degrees) between edges for chordal deviation edge meshing. Ignored, if edge_mesh_type is not set to 2 or 12.
- previous_settings
- Flag indicating whether to break, keep or redo connectivity between neighboring
surfaces. Valid values are:
- 0 - Keep previous settings and do not break connectivity between neighboring surfaces.
- 1 - Break connectivity between neighboring surfaces.
- 2 - Keep connectivity between neighboring surfaces.
- 3 - Redo connectivity between neighboring surfaces by expanding surface selection by one layer of adjacent surfaces.
- vertex_angle
- When the vertex between two edges exceeds this value, a new node is created to form a vertex. Thus, using high values results in fewer nodes on curved edges, and therefore less-accurate edge approximation. A standard value is 30.
Examples
To remesh all elements with a first order mixed mesh of size 4.5, maintaining the original
components,with size and skew control, with flow and alignment control, keeping the existing
connectivity, a vertex angle of 25, and automatically detecting connected features with a
feature angle of
20:
*setoption element_order=1
*setoption feature_angle=20
*setusefeatures 3
*createmark elems 1 all
*defaultremeshelems 1 4.5 2 2 1 1 1 14 0 0 0 0 2 25
Errors
Incorrect usage results in a Tcl error. To detect
errors, you can use the catch
command:
if { [ catch {command_name...} ] } {
# Handle error
}