*adaptive_wrapper_mesh

Generates an adaptive wrap mesh.

Syntax

*adaptive_wrapper_mesh mesh_type string_array number_of_strings

Type

HyperMesh Tcl Modify Command

Description

This command generates an adaptive wrap mesh.

This command must be called after *adaptive_wrapper_build and must be followed by *adaptive_wrapper_end.

Inputs

mesh_type
0: Quad dominant
string_array
The string array ID that contains the mesh generation parameters. The string array is created using the *createstringarray command. This should always be set to 1.
Each string should be contained in quotes and contain one of the following parameters as keywords, followed by the parameters values. Keywords and the corresponding values can be separated by a semicolon.
AcousticMeshType: <type>
The type of acoustic cavity mesh.
1 - Hex-tet mesh
2 - All tet mesh
AcousticMeshQualityHexJacobian: <value>
The Jacobian target cut off value used for hex-text cavity meshing.
AcousticMeshQualityTetCollapse: <value>
The tet-collapse target cut off value used for all tet cavity meshing.
ConsiderCavityByComps: <mark_id>
During preview, some new components will be displayed to show the cavity. This is the optional mark ID containing those components to send for meshing.
DoRemesh: <option>
0 - Do not remesh the wrap mesh with adaptive tria mesh.
1 - Remesh the wrap mesh with adaptive tria mesh.
ExcludeVolumeSeedNodeMark: <mark_id> (optional)
Mark ID containing seed nodes used to specify the volumes to exclude from wrapping.
IncludeVolumeForLargestCavityIndex: <index> (optional)
Volume index to wrap.
IncludeVolumeSeedNodeMark: <mark_id> (optional)
Mark ID containing seed nodes used to specify the volumes to wrap.
MaxSmoothIterations: <max> (optional)
Maximum number of smoothing iterations to perform on the wrap mesh.
RemeshGrowthRate: <rate>
If DoRemesh is set to 1, this is the specified growth rate to reuse for remeshing.
SpanAngle: <value>
If DoRemesh is set to 1, this is the specified span angle to use during remeshing.
OrganizeWrapElemsByBaseComps: <option>
If set to 1, organize the wrap mesh according to the base mesh components, by creating new components with the same base comp name with the suffix _Wrap. If DoRemesh is set to 1, the suffix is _Wrap_Remesh instead. New assemblies are also created for these components, named Wrapped_Components and Wrapped_Remeshed_Components.
number_of_strings
Integer indicating the size (number of strings) in the string array created using *createstringarray.

Examples

#Initialization of wrapper mesh with base mesh
*createmark elements 1 "all"
*adaptive_wrapper_init elements 1 1 0

# Define features
*clearmark elements 1 
*adaptive_wrapper_set_features 1 1 30 1 1

#Set various meshing and refinement parameters
*createstringarray 7 "LeakCheckNodes: 20 24 19" "GapPatchTolerance: 3.0" "HolePatchTolerance: 10.0" "RefineByBoxCompIds: 4 5 6" "RefineByNodeCurvature: 1" "RefineByFeatureProximity: 0" "RefineByAllElemSize: 1"
*adaptive_wrapper_set_params 10 0.1 1 7

#Proximity options
eval *createstringarray 3 "WithinGroup: 0.5 1 3 10 12 13" "WithinGroup: 1.5 3 9 20" "AcrossGroup: 0.5 3 10 12 13 4 9 8 7 19"
*adaptive_wrapper_proximity_params 1 0.2 1 3

#Build skeletal octree structure
*adaptive_wrapper_build

#Generate mesh
*createstringarray 2  "DoRemesh: 1" "RemeshGrowthRate: 1.2"
*adaptive_wrapper_mesh 0 1 2

#End of wrapper mesh
*adaptive_wrapper_end

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

13.0