*defaultmeshsurf
Meshes a selection of surfaces using saved or default parameters and various options.
Syntax
*defaultmeshsurf mark_id elem_size elem_type elem_type_2 previous_settings comp_mode size_control skew_control mesh_type min_size max_size chordal_dev max_angle
Type
HyperMesh Tcl Modify Command
Description
Meshes a selection of surfaces using saved or default parameters and various options.
Inputs
- mark_id
- The ID of the mark containing the surfaces to 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
- 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.
- comp_mode
- Parameter specifying how entities are organized into components:
- 0 - Elements are created in the current component.
- 1 - Elements are created in the same components as their parent surfaces.
- 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.
- mesh_type
- Parameter specifying the meshing algorithm for edge/surface meshing. Valid values are:
- 1 - Standard edge meshing.
- 2 - Chordal deviation edge meshing.
- 3 - Proximity based surface meshing.
- 4 - Proximity and curvature based surface meshing.
- 5 - Curvature based surfaced meshing.
- 6 - Proximity and curvature based meshing with free edge deviation.
- 7 - Curvature based surface meshing with free edge deviation.
- 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
- The minimum edge size for chordal deviation meshing. Ignored otherwise.
- max_size
- The maximum edge size for chordal deviation meshing. Ignored otherwise.
- chordal_dev
- The chordal deviation value for chordal deviation meshing. Ignored otherwise.
- max_angle
- The maximum angle (in degrees) between edges for chordal deviation meshing. Ignored otherwise.
Examples
To create quads using a default edge size of 1.0 for the surface with ID
3:
*createmark surfaces 1 3
*defaultmeshsurf 1 1 1 1 1 0 0 0 1 0 0 0 0
To create mixed type elements for the size controlled mapping algorithm using tria
transitions, trias for free mesh and chordal deviation edge meshing for surfaces 3, 5 and
6:
*createmark surfaces 1 3 5 6
*defaultmeshsurf 1 1 2 0 1 0 1 0 2 0.5 30 0.1 15
Errors
Incorrect usage results in a Tcl error. To detect
errors, you can use the catch
command:
if { [ catch {command_name...} ] } {
# Handle error
}