*hm_trim_elements_with_two_point_box

Trims shell elements using a box defined by two diagonal points.

Syntax

*hm_trim_elements_with_two_point_box mark_id x1 y1 z1 x2 y2 z2 spc_collector_name box_collector_name remesh_params

Type

HyperMesh Tcl Modify Command

Description

Trims shell elements using a box defined by two diagonal points. 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.
x1 y1 z1
The coordinates of the first corner point.
x2 y2 z2
The coordinates of the second corner point.
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 box with corner points (0,0,0) and (100,100,100):

*createmark elements 1 "displayed"
*hm_trim_elements_with_two_point_box 1 0.0 0.0 0.0 100.0 100.0 100.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