*adaptive_wrapper_set_params

Assigns meshing parameters to the adaptive wrapper mesher.

Syntax

*adaptive_wrapper_set_params max_elem_size min_elem_size string_array number_of_strings

Type

HyperMesh Tcl Modify

Description

Assigns meshing parameters to the adaptive wrapper mesher. Controls include refinement box, refinement options, hole patch, gap patch, leak check, min and max element size, etc.

This command must be called after *adaptive_wrapper_init and before *adaptive_wrapper_build.

Inputs

max_elem_size
The maximum element size for adaptive wrap meshing.
min_elem_size
The minimum element size for adaptive wrap meshing.
string_array
The ID of the string array that contains the proximity control 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. Each keyword can be used multiple times to define different groups.
GapPatchTolerance: <tolerance> (optional)
The gap patch tolerance value.
HolePatchTolerance: <tolerance> (optional)
The hole patch tolerance value.
LeakCheckNodes: <node IDs>...
Seed node IDs to use for leak checking. These nodes should not be part of the base mesh.
RefineByAllElemSize: <option>
0: Do not refine the wrap mesh based on average element size.
1: Refine the wrap mesh based on average element size.
RefineByBoxCompIds: <comp IDs>...
Specify a refined wrap mesh with the specified size for the specified box. The box definition is given by a list of comp IDs. The component name should be ^elem_size_ctrl_<idx>_<elem_size>, where <idx> is part of the component name and <elem_size> is the size to be assigned to the box.
RefineByFeatureProximity: <option>
0 - Do not refine the wrap mesh based on proximity of features.
1 - Refine the wrap mesh based on proximity of features.
RefineByNodeCurvature: <option>
0 - Do not refine the wrap mesh based on node curvature.
1 - Refine the wrap mesh based on node curvature.
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