*hm_trim_elements_with_predefined_box

Trims shell elements using a predefined box.

Syntax

*hm_trim_elements_with_predefined_box mark_id cut_type limit spc_collector_name box_collector_name remesh_params

Type

HyperMesh Tcl Modify

Description

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

Inputs

mark_id
The ID of the mark containing the elements to cut. Valid values are 1 and 2.
cut_type
A predefined cut name. Valid values are left, right, front, rear, frontleft, frontright, rearleft or rearright.
limit
The x value of the box for cut types front, rear, frontleft, frontright, rearleft or rearright.
spc_collector_name
The name of the collector in which the SPCs will be created for constraining cut elements.
box_collector_name
The name of the collector in which a hexa might be created to show the cutbox.
remesh_params
The parameters of re-meshing along the cut, defined as "keyword value" format.
For example: "angle 30.0 min_elem_size_rate 0.6 comp_remainder_area_rate 1.0"
Valid keywords and values are:
angle
Values used to define feature edges on mesh. Default if not specified is 30.0.
min_elem_size_rate
Defines the minimum element size locally. The valid range is between 0.0 and 1.0. The minimum element size is calculated locally on the mesh area being re-meshed. The element size is computed for the mesh area and the minimum element size is then the product of min_elem_size_rate and the element size of the area.
min_elem_size_value
Defines the minimum element size globally.
comp_remainder_elem_numb
Defines 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
Define the limit of shell element area of components. After box trimming, any component with element areas less than this percent of its original area is deleted. The valid range of the value is between 0.0 and 100.0.

Example

To trim displayed elements using a left box, with limit of 50:

*createmark elements 1 "displayed"
*hm_trim_elements_with_predefined_box 1 "left" 50.0 "abc" "efg" "min_elem_size_rate 0.6 comp_remainder_elem_rate 0.01 angle 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
}

Version History

12.0.110