hm_detectmeshpatterns

Evaluates mesh patterns and connectivity on an input quad/mixed mesh, and output problem elements onto a mark.

Syntax

hm_detectmeshpatterns input_mark_id output_mark_id ?option1=value1? ?option2=value2? ... ?optionN=valueN?

Type

HyperMesh Tcl Query

Description

This command evaluates mesh patterns and connectivities on an input quad/mixed mesh, and output problem elements onto a mark. Problem areas include singularities, triangle clusters, triangles on edges, unsmooth local connections etc...

The evaluation can be controlled by the listed <name>=<value> options. If no options are explicitly specified, all of them will be turned on by default. If any options are explicitly turned on, only those specific options will be considered. If any options are explicitly turned off, the other options will still be on. The options may be given in any order.

Inputs

input_mark_id
The ID of the mark of input elements. Valid values are 1 and 2.
output_mark_id
The ID of the mark of output elements. Valid values are 1 and 2.
define_topology_by_1d=<mode>
1 – Use 1D elements as topology for defining faces (default)
0 – Treat input elements as a single face
detect_singularity=<mode>
1 – Detect singularities in terms of mesh flow, including surrounding elements (default)
0 – Do not detect singularities in terms of mesh flow
smoothness=<mode>
1 – Calculate smoothness between connected elements (default)
0 – Do not consider smoothness between elements
threshold_index=<value>
The threshold value of the quality index used to find problem elements. Must be between 0.0 and 1.0, default 0.5. This helps to capture local flow perturbation caused by bad smoothness.
tria_cluster=<mode>
1 – Consider tria clusters (those with multiple trias patched together)
0 – Do not consider tria clusters
tria_on_edge=<mode>
1 – Consider trias on boundary edges (default)
0 – Do not consider trias on boundary edges

Examples

Find all elements with bad connections (singularities, triangle clusters etc) except triangles on edges:

*createmark elems 1 all
hm_detectmeshpatterns 1 2 tria_on_edge=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

2019