*external_skin_extraction

Detects leaks and extracts exposed exterior or interior faces and surfaces.

Syntax

*external_skin_extraction entity_type mark_id mode min_size max_size extraction_mode seed_point_coordinates target_point_coordinates baffle_detection min_surface_area

Type

HyperMesh Tcl Modify Command

Description

Detects leaks and extracts exposed exterior or interior faces and surfaces.

Inputs

entity_type

The type of entities to consider. Valid values are elements and surfaces.

mark_id

The ID of the mark containing the input entities. Valid values are 1 and 2.

mode
The detection mode.
1 - Leak detection only.
2 - Leak detection with skin extraction. If a leak is detected, the skin is not extracted.
3 - Skin extraction without leak detection.
4 - Leak detection with gap filling.
min_size
Leaks smaller than min_size will be ignored. Higher min_size values can lead to longer skin extraction time.
max_size
This value should be set to 0.0.
extraction_mode
The extraction mode.
1 - Exterior skin extraction.
2 - Interior (cavity) skin extraction.
seed_point_coordinates
String containing the x, y, z coordinates of the seed point defined within the target volume for leak detection. The point should be located inside the cavity, not close to the volume boundaries.
target_point_coordinates
String containing the x, y, z coordinates of the seed point defined outside the target volume for leak detection. The point should be located outside the cavity not close to the volume boundaries.
baffle_detection
The baffle detection mode.
0 – No baffles detected.
1 – Only external baffles are detected.
2 – Only internal baffles are detected.
3 – Both external and internal baffles are detected.
min_surface_area
Defines the percentage of the skin area. For surface input, if the exposed area of the detected surfaces is less than the user-defined percentage of the total area, the surfaces are not marked as skin.

Example

To detect a leak bigger than 20.0 and extract the exterior skin from displayed elements defining a volume around a point with coordinates (2690.0 0.0 830.0) with minimal surface area set to 10 %:
*createmark elements 1 "displayed"
*external_skin_extraction elements 1 2 20.0 0.0 1 10 "2690.0 0.0 830.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

2021.1

2021.2 - Added new arguments target_point_coordinates and baffle_detection.

2023 - Added new mode value 4.