*cleanup_unoffsetable_nodes

Smooths the area around any unoffsetable nodes to attempt to make them offsetable.

Syntax

*cleanup_unoffsetable_nodes entity_type mark_id angle_threshold layers iters

Type

HyperMesh Tcl Modify

Description

Smooths the area around any unoffsetable nodes to attempt to make them offsetable. Useful for CFD BL meshing.

Consider a node and all its surrounding elements. The visibility angle of an element is the signed angle between the node normal and the element normal after subtracting 90 degrees. The visibility angle of the node is the minimum of the element visibility angle for all surrounding elements. The best visibility angle of the node is the maximum of the node visibility angle for all choices on the node normal. A node having zero or negative best visibility angle is considered absolutely unoffsetable. A node having its best visibility angle less than angle_threshold is considered unoffsetable.

Inputs

entity_type
The type of entity used as input. Valid values are comps and elems.
mark_id
The ID of the mark containing the input entities. Valid values are 1 and 2.
angle_threshold
A value ≥ 0.0 and < 45.0 that defines the threshold visibility angle in degrees for determining a node is unoffsetable.
layers
Defines the number of adjacent layers to consider for the smoothing. Must be ≥ 1. A value between 1 and 3 is generally recommended.
iters
The number of smoothing iterations to perform. Must be ≥ 1. A value between 1 and 5 is generally recommended.

Examples

To fix unofsettable nodes for elements 10-13, using an angle of 2.5, using 2 layers and 3 smoothing iterations:
*createmark elements 1 10-13
*cleanup_unoffsetable_nodes elems 1 2.5 2 3

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