*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.
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