*adaptive_wrapper_set_features

Assigns/extracts features for the adaptive wrapper mesher.

Syntax

*adaptive_wrapper_set_features feature_type mark_id feature_angle clean_features cleanup_tol

Type

HyperMesh Tcl Modify Command

Description

This command assigns/extracts features for the adaptive wrapper mesher.

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

Inputs

feature_type
The feature extraction scheme. Valid values are:
1 - Simple feature extraction
2 - Connected feature extraction
3 - User defined features
4 - Do not use features
mark_id
The mark ID containing user-defined plotel feature elements. Valid values are 1 and 2.
Only used if feature_type is 3.
feature_angle
If feature_type is 1 or 2, this is the feature angle used for feature extraction.
clean_features
1 - Cleans features based on feature overlap. This is used to avoid excessive refinement.
cleanup_tol
If clean_feature is 1, this is the tolerance used to check for feature overlap.

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