*adaptive_wrapper_init
Initializes the adaptive wrap mesher input elements.
Syntax
*adaptive_wrapper_init entity_type mark_id clean_intersection wrap_type
Type
HyperMesh Tcl Modify
Description
This command specifies the base mesh which need to be wrapped, along with the type of wrap. Base mesh self intersections can be resolved.
This command must be called before *adaptive_wapper_build and must be followed by *adaptive_wrapper_end.
Inputs
- entity_type
- The type of entities used for adaptive wrap mesh. On this base mesh wrapping will be performed. Currently only supported for elems.
- mark_id
- The mark ID containing base mesh. Valid values are 1 and 2.
- clean_intersection
- 0 - Do not generate intersection lines and remesh base mesh using these intersection lines.
- wrap_type
- 0 - Exterior wrap
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
if { [ catch {command_name...} ] } {
# Handle error
}
Version History
13.0