*trim_shell_elems_by_shell_elems
Trim 2D elements with 2D elements along their intersection lines, and remove small penetrating parts of elements between the intersection lines and free element edges.
Syntax
*trim_shell_elems_by_shell_elems entity_type mark_id trimmer_entity_type trimmer_mark_id param_string
Type
HyperMesh Tcl Modify
Description
Trim 2D elements with 2D elements along their intersection lines, and remove small penetrating parts of elements between the intersection lines and free element edges. If some elements get trimmed, the elements along the cutting lines are re-generated.
Inputs
- entity_type
- The type of entity taking part in the mesh trimming. Valid values are elems and comps.
- mark_id
- The ID of the mark containing the entities taking part in the mesh trimming. Valid values are 1 and 2.
- trimmer_entity_type
- The type of entity to use as the trimmer. Valid values are elems and comps.
- trimmer_mark_id.
- The ID of the mark containing the entities to use as the trimmer. Valid values are 1 and 2.
- param_string.
- This string contain keyword/value pairs, separated by whitespace. Valid keywords are:
- angle
- Defines the mesh feature angle to use. If not specified, a default of 30.0 is used.
- break_shell_along_component_boundaries
- Input elements are distributed into groups based on their connectivity. Only are
different groups taken as counterparts of the intersection calculation.
- 0 - Do not break element groups at component boundaries (default).
- 1 - Break element groups at component boundaries.
- min_elem_size_rate
- Defines the minimum element size locally. The valid value range is between 0.0 and 1.0.
- min_elem_size_value
- Defines the minimum element size globally.
- remove_internal_shell
-
- 0 - Do not remove internal elements when selected elements form two or more watertight shells.
- 1 - Remove internal elements when selected elements form two or more watertight shells (default).
- trim_removal_limit
- Defines the maximum distance between the intersection lines and free element edges in the isolated parts to be removed. A penetration part consists of a group of connected elements with only intersecting or free edges as boundaries.
Example
To trim all displayed components with each other, using a maximum trim value of 50.0, along with other basic options:
*createmark comps 1 displayed
*createmark comps 2 ""
*trim_shell_elems_by_shell_elems comps 1 comps 2 "remove_internal_shell 1 min_elem_size_rate 0.4 trim_removal_limit 50.0
break_shell_along_component_boundaries 0 angle 30.000000"
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
14.0