*trim_elements2

Trims 2D elements using 1D or 2D elements.

Syntax

*trim_elements2 base_element_mark trim_element_mark mode num_layers feature_angle base_component

Type

HyperMesh Tcl Modify

Description

Trims 2D elements using 1D or 2D elements.

Inputs

base_element_mark
The mark of 2D base elements. Valid values are 1 and 2.
trim_element_mark
The mark of 1D or 2D trimming elements. Valid values are 1 and 2.
mode
Flag to indicate how to connect elements when the trimming elements are 2D elements and the boundaries of the selection consist of multiple loops.
0 – Keep internal elements.
1 – Elements inside internal loops are removed. For example, no elements inside washer.
num_layers
Flag to indicate the number of surrounding element layers will be taken into account for remeshing.
0 – No remeshing
1 – All elements on base_element_mark will be remeshed
feature_angle
Parameter used to define feature edge in remeshing.
base_component
Flag to indicate if the imprinted elements should be organized to the same component as the base elements.
0 – Keep original organization for imprinted elements
1 – Organize all imprinted elements to the same component as the base elements

Example

To trim elements 1-100 with elements 500-550, removing elements from within internal loops, with remeshing, a feature angle of 30 and keeping the original organization:

*createmark elems 1 1-100
*createmark elems 2 500-550
*trim_elements2 1 2 1 1 30 0

Errors

Incorrect usage results in a Tcl error. To detect errors, you can use the catch command:
if { [ catch {command_name...} ] } {
   # Handle error
}