*optimized_elements_remesh2

Remeshes elements with the user specified algorithm and optimization of node positions.

Syntax

*optimized_elements_remesh2 mark_id criteria_file elem_size elem_type feature_angle vertex_angle comp_mode break algorithm

Type

HyperMesh Tcl Modify

Description

Remeshes elements with the selection of the best meshing algorithm and optimization of node positions.

Inputs

mark_id
The ID mark that contains the elements to remesh. Valid values are 1 and 2.
criteria_file
The path and file name of the criteria file. Use double quotes if no file is specified.
elem_size
The default element size used to calculate element densities along edges, when necessary. Element sizes along shared edges cannot be changed.
elem_type
The type of elements to create. Valid values are:
  • 0 - trias
  • 1 - quads
  • 2 - mixed
  • 3 - right trias
  • 4 - quads only
feature_angle
The angle, in degrees, specifying the feature lines. This is approximately the minimal internal angle between the elements adjacent to a feature line. Valid values are between 18-90 degrees.
vertex_angle
The angle between two edge segments when a vertex is created.
comp_mode
A flag that specifies how the elements are organized. Valid values are:
  • 0 - Elements are created in the current component.
  • 1 - Elements are created in the same component as their parent surface(s).
break
Determines if connectivity will be broken along shared edges between elements when a different element size is chosen.
  • 0 - Do not break connectivity.
  • 1 - Break connectivity.
algorithm
Determines the algorithm for meshing. Valid values are:
  • 0 – Standard meshing
  • 1 – Meshing with flow "align" control
  • 3 – Meshing with flow "align" and "size" control

Example

To remesh the displayed elements with element size 10, mixed elements type and optimize node positions using default criteria file, feature and vertex angle of 30 degrees, and mesh flow with align and size control

*createmark elements 1 "displayed"
*optimized_elements_remesh2 1 "dummy" 10 2 30 30 1 0 3

Errors

Incorrect usage results in a Tcl error. To detect errors, you can use the catch command:
if { [ catch {command_name...} ] } {
   # Handle error
}