*hm_trim_elements_with_box

Trims shell elements using solids.

Syntax

*hm_trim_elements_with_box trim_mark=<value>box_mark=<value> ?<option1>=<value1>? ?<option2>=<value2>??<optionN>=<valueN>?

Type

HyperMesh Tcl Modify Command

Description

Trims shell elements using solids. Shell elements inside the solids are kept and the elements along any cuts are re-meshed. Solid elements with all nodes inside the box are kept, while all others are deleted.

All <option>=<value> options can be provided in any order.

Inputs

trim_mark=<value>
The ID of the mark containing the elements to trim. Valid values are 1 and 2.
box_mark=<value>
The ID of the mark containing the solids to use for trimming. Valid values are 1 and 2.
spc_collector_name=<value>
The name of the collector in which the SPCs will be created for constraining cut elements. If this is option is specified, constraints will be created. Otherwise, no constraints are created.
DOF_array=<value>
The degrees of freedom that need to be constrained. Valid values are 0 and 1 and should be given in an array of 6 values each corresponding to one DOF. 0 means not constrained and 1 means constrained.
comp_remainder_elem_numb=<value>
The minimum number of elements in a component. After box trimming, any component with an element count less than this value is deleted.
comp_remainder_area_rate=<value>
The limit of shell element area of components. After box trimming, any component with the element area representing less than the specified percentage of its original area is deleted. The valid range of the value is between 0.0 and 100.0.
rebuild=<value>
0 - Do not rebuild the elements along the intersection edges.
1 - Rebuild the elements along the intersection edges. If this is given, then the global criteria and parameter file set for rebuild will be used for remeshing.

Example

To trim the elements of a model using solid ID 1 and constrain the cut edges along all DOFs:
*createmark solids 2 1
*createmark elements 1 all
*hm_trim_elements_with_box box_mark=2 trim_mark=1 
SPC_collector=BoxTrimConstraints DOF_array={1 1 1 1 1 1}

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

2021.1