*set_meshfaceparams

Sets some of the face-specific parameters for the automeshing module.

Syntax

*set_meshfaceparams face_index shape_type elem_type alg_type elem_size smooth_method smooth_tol size_control skew_control

Type

HyperMesh Tcl Modify

Description

This command sets the face-specific parameters for the automeshing module.

Inputs

face_index
The index of the surface face under consideration.
shape_type
Determines the surface-based mesh generation algorithm to use when creating elements on the face. Valid values are:
  • 1 – autodecide
  • 2 – map as rectangle
  • 3 – map as triangle
  • 4 – map as pentagon
  • 5 – advancing front
elem_type
The type of elements to create. Valid values are:
  • 0 - trias
  • 1 - quads
  • 2 - mixed
  • 3 - right trias
  • 4 - quads only
alg_type
0 – Standard surface meshing
1 – Meshing with flow "align" control
3 – Meshing with flow "align" and "size" control
elem_size
Reserved for future use. Must be set to 0.
smooth_method
The smoothing method to use during the meshing process. Valid values are:
  • 0 – autodecide
  • 1 – size-corrected
  • 2 – shape-corrected
smooth_tol
The automesher applies the smoothing algorithm until the largest adjustment made to a nodal position is less than this value. Valid vales are > 0.0.
size_control
Determines if uniform size elements should be created in mapping algorithms. Valid values are:
  • 0 – Do not create uniformly-sized elements.
  • 1 – Create uniformly-sized elements.
skew_control
Determines if optimal shape elements are created in mapping algorithms. Valid values are:
  • 0 – Do not optimize element shapes.
  • 1 – Optimize element shapes.

Example

To specify meshing parameters on face 0 of a surface for a quad dominant mesh with no size or skew control:

*set_meshfaceparams 0 1 1 0 0 0 0.1 0 0

Errors

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