*interactiveremeshelems

The *createmark() command is required. The function *defaultmeshsurf() writes a comment to the command file indicating what surface it has started processing. If there is a problem, you can rerun the command file and stop it before it reaches that surface. Brings all the marked elements into the automeshing module and prepares it for processing, enabling the use of all the restricted module commands.

Syntax

*interactiveremeshelems markmask elementsize elem_type elem_type2 size_control skew_control break_connect angle

Type

HyperMesh Tcl Modify

Description

The *createmark() command is required. The function *defaultmeshsurf() writes a comment to the command file indicating what surface it has started processing. If there is a problem, you can rerun the command file and stop it before it reaches that surface. Brings all the marked elements into the automeshing module and prepares it for processing, enabling the use of all the restricted module commands.

Inputs

markmask
The elements to be meshed.
elementsize
The default element edge size to use for calculating element densities along the edges (where 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
size_control
Determines if uniform size elements in mapping algorithms should be created.
  • 1 = yes
  • 0 = no
skew_control
Determines if optimal shape elements in mapping algorithms should be created.
  • 1 = yes
  • 0 = no
break_connect
Determines if connectivity will be broken along shared edges between elements when a different element size is chosen.
  • 1 = yes
  • 0 = no
Element size along shared edges can not be changed.
angle
Determines angle between two edge segments when vertex is created.

Example

In this example, the automeshing module processes two separate groups with four and six elements each (each group forms a quad with four edges). To generate a mesh for each group, the automeshing module sets up values for the element densities and biasing with the *setedgemeshparams() command. Automeshing parameters for each group are specified with the *setfacemeshparams() command. Prior to meshing, parameters for the first group were changed. This required additional setedgeparams calls for four edges. Each group of elements is sent to the *automesh() command so it can determine the appropriate meshing algorithm and create an all-quads mesh. Two meshes are then saved to the HyperMesh database. The automeshing module clears from its memory any information regarding the current group so that a new group can be processed.

*surfacemode(1)
*createmark(elements,1) 11 12 19 20 79 80 82 84 86 90
*interactiveremeshelems(1,10,1,1,1,1,0,30)
*setedgemeshparams(0,2,0,0)
*setedgemeshparams(1,2,0,0)
*setedgemeshparams(2,2,0,0)
*setedgemeshparams(3,2,0,0)

*setedgemeshparams(4,2,0,0)
*setedgemeshparams(5,3,0,0)
*setedgemeshparams(6,2,0,0)
*setedgemeshparams(7,3,0,0)

*setedgemeshparams(0,2,0,0)
*setedgemeshparams(1,2,0,0)
*setedgemeshparams(2,2,0,0)
*setedgemeshparams(3,3,0,0)
*setfacemeshparams(0,0.5,0.5,0.5,1,0.5,1,1)
*automesh(0,5,0)

*setedgemeshparams(4,2,0,0)
*setedgemeshparams(5,3,0,0)
*setedgemeshparams(6,2,0,0)
*setedgemeshparams(7,3,0,0)
*setfacemeshparams(1,0.5,0.5,0.5,1,0.5,1,1)
*automesh(1,2,1)

*storeAMelemstodatabase(0,0)
*storeAMelemstodatabase(1,0)
*ameshclearsurface()

The *createmark() command is required.

Errors

None.