*interactiveremeshsurf
Brings a surface into the automeshing module and prepares it for processing, enabling the use of all the restricted module commands. All elements previously attached to the surface are deleted.
Syntax
*interactiveremeshsurf markmask elementsize elem_type elem_type2 forcing size_control skew_control
Type
HyperMesh Tcl Modify
Description
Brings a surface into the automeshing module and prepares it for processing, enabling the use of all the restricted module commands. All elements previously attached to the surface are deleted.
Inputs
- markmask
- The surfaces to be meshed.
- elementsize
- The default element edge size used to calculate 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:
- 1 - quads
- 2 - mixed
- 3 - right trias
- 4 - quads only
- forcing
- If nonzero, any saved surface parameters generated previously with the automesher are ignored
- 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.
Example
In this example, the automeshing module processes a surface with four faces and ten edges. To generate a mesh for each face, the automeshing module sets up values for the element densities and biasing with the *set_meshedgeparams command. Automeshing parameters for each face are specified with the *set_meshfaceparams command. Each face in sent to the *automesh command so it can determine the appropriate meshing algorithm and create an all-quads mesh. You then direct HyperMesh to smooth the meshes for ten iterations each. The mesh for face two is rejected and a new one is created with slightly different element densities. The four meshes are saved to the HyperMesh database. The automeshing module clears from its memory any information regarding the current surface so that a new surface can be processed.
*surfacemode 1
*createmark surfaces 1 1
*interactivemeshsurf 1 1 1 1 1 0 0
*set_meshedgeparams 2 5.0 0 0 0 0 0 0 0
*set_meshedgeparams 2 5.0 0 0 0 0 0 0 0
*set_meshedgeparams 0 2.0 0 0 0 0 0 0 0
*set_meshedgeparams 1 6.0 0 0 0 0 0 0 0
*set_meshedgeparams 5 3.0 0 0 0 0 0 0 0
*set_meshfaceparams 0 1 1 0 0 0 0.1 0 0
*automesh 0 1 1
*set_meshedgeparams 2 5.0 0 0 0 0 0 0 0
*set_meshedgeparams 11 3.0 0 0 0 0 0 0 0
*set_meshedgeparams 3 4.0 0 0 0 0 0 0 0
*set_meshedgeparams 4 4.0 0 0 0 0 0 0 0
*set_meshfaceparams 1 1 1 0 0 0 0.1 0 0
*automesh 1 1 1
*set_meshedgeparams 8 6.0 0 0 -2 0 0 0 0
*set_meshedgeparams 5 3.0 0 0 0 0 0 0 0
*set_meshedgeparams 6 5.0 0 0 2 0 0 0 0
*set_meshedgeparams 7 8.0 0 0 0 0 0 0 0
*set_meshfaceparams 2 1 1 0 0 0 0.1 0 0
*automesh 2 1 1
*set_meshedgeparams 8 6.0 0 0 -2 0 0 0 0
*set_meshedgeparams 9 2.0 0 0 0 0 0 0 0
*set_meshedgeparams 10 7.0 0 0 2 0 0 0 0
*set_meshedgeparams 11 3.0 0 0 0 0 0 0 0
*set_meshfaceparams 3 1 1 0 0 0 0.1 0 0
*automesh 3 1 1
*smoothelements 0 1 10
*smoothelements 1 1 10
*smoothelements 2 1 10
*smoothelements 3 1 10
*rejectmesh 2
*set_meshedgeparams 8 6.0 0 0 -2 0 0 0 0
*set_meshedgeparams 5 3.0 0 0 0 0 0 0 0
*set_meshedgeparams 6 5.0 0 0 0 0 0 0 0
*set_meshedgeparams 7 8.0 0 0 0 0 0 0 0
*set_meshfaceparams 2 1 1 0 0 0 0.1 0 0
*automesh 2 1 1
*storemeshtodatabase 0
*ameshclearsurface
Errors
None.