*automesh_mc

Meshes elements or surfaces using automesh mesh controls.

Syntax

*automesh_mc entity_type entity_mark_id mesh_control_mark_id mode

Type

HyperMesh Tcl Modify Command

Description

Meshes elements or surfaces using mesh controls. The following rules apply:
  • A model control is mandatory for meshing, and only one is needed. It will indicate whether meshing is performed on surfaces, or on elements.
  • The entities selected in each local, feature and refinement control must existing in the final selection, which is composed of entities selected by the model control, and those on the entity_mark_id.
  • Feature-based meshing is only available for surfaces. When feature controls are involved, depending on the mode, a feature global or body control may be mandatory. See the mode argument for details.
  • During meshing, entities in local and feature controls will be meshed by themselves. The rest will be taken care of by model control, or by the feature body control.

Inputs

entity_type
The type of entities selected for meshing. Valid values are surfs, elems, comps, and regions.
entity_mark_id
The ID of the mark containing the entities to be meshed. Valid values are 0 (indicating selection comes from the model control only), 1 and 2.
mesh_control_mark_id
The ID of the mark containing the mesh controls to use. Valid values are 1 and 2.
mode
The meshing mode for feature based meshing. Valid values are:
  • 0 - Normal mode. Both body and feature controls will be meshed. At least one feature global or body control is needed.
  • 1 - Feature only mode. Only feature controls will be meshed. Feature global or body controls are optional.

Examples

To mesh all surfaces using mesh controls 1-3:
*createmark surfs 1 all
*createmark meshcontrols 1 1 2 3
*automesh_mc surfs 1 1 0
To mesh elements defined in the model control and all other mesh controls:
*createmark meshcontrols 2 all
*automesh_mc elems 0 2 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