5.6.2. Repairing Meshes

If the mesh check report indicates a mesh problem or if you receive warnings, you can investigate the extent of the problem by printing the poor element statistics in the console. This can be accomplished using the Report Poor Quality Elements button, located at the bottom of the Solution Methods task page (Figure 5.59: The Solution Methods Task Page). Note that this button is only available when the mesh has poor quality elements. For more information about the Report Poor Quality Elements feature, see Robustness on Meshes of Poor Quality.

Figure 5.59:  The Solution Methods Task Page

The Solution Methods Task Page

Alternatively, you can print the poor element statistics via the following text command:

mesh → repair-improve → report-poor-elements

You can also visualize the invalid and poor elements: first, mark them by using the Mesh... and Mark Poor Elements selections from the Iso-Values of drop-down lists of the Iso-Value Adaption dialog box (see Performing Isovalue Adaption for further details). Then, display them in the graphics window using the Manage Adaption Registers dialog box, as described in Manipulating Adaption Registers. Similarly, you can display them using the Contours dialog box, by selecting Mesh... and Mark Poor Elements from the Contours of drop-down lists. In either case, a value of 1 is assigned to the cells that are identified as invalid or poor, as well as the cells that are adjacent to the face of an invalid or poor cell, and a value of 0 is assigned to all other cells.

The mesh check report will indicate if the mesh has problems that must be repaired, such as left-handed faces and/or faces that have the wrong node order. If repairable failures are detected by the mesh check, the Repair button in the Setting Up Domain ribbon tab (Mesh group box) becomes available:

 Setting Up Domain → Mesh → Repair

Using the Repair button is the simplest way to attempt to correct your mesh problems. It will attempt to correct a number of problems identified by the mesh check, including cells that have:

Note that by default, the Repair button will only adjust the positions of interior nodes. If you want to also modify the nodes on the boundaries of the mesh, use the following text command before you repair the mesh:

mesh → repair-improve → allow-repair-at-boundaries

The Repair button may convert degenerate cells into polyhedra, based on skewness criteria (for more information on how cells are converted, see Converting Skewed Cells to Polyhedra). If you want to ensure that there are no polyhedra in the repaired mesh (for example, if you if plan on performing hanging node adaption), you must disable such conversions using the following text command before you repair the mesh:

mesh → repair-improve → include-local-polyhedra-conversion-in-repair

If you would like to only attempt to improve the poor quality cells, you can use the following text command:

mesh → repair-improve → improve-quality

You can use the improve-quality text command multiple times, until the mesh is improved to your satisfaction. For greater control over the degree to which the mesh is improved, you can perform quality-based smoothing (as described in Smoothing).

It should be noted that both the Repair button and the improve-quality text command can be CPU intensive, if there are a large number of poor quality cells in the mesh. If you are not as concerned about cell quality, you can attempt to fix only the left-handed faces and faces with the wrong node order. Begin by repairing the node order with the following text command:

mesh → repair-improve → repair-face-node-order

Because the left-handed faces may be a result of improper face node order, the previous text command may resolve both issues at the same time. Be sure to perform another mesh check after entering the repair-face-node-order command, to see if the mesh has been fully repaired.

If at any point the mesh check reveals that the mesh contains left-handed faces without any node order issues, you can attempt to repair the face handedness by modifying the cell centroids with the following text command:

mesh → repair-improve → repair-face-handedness

Once again, perform a mesh check to see if the text command was successful. The repair-face-handedness text command is most effective for cells with high aspect ratios.

If the mesh check report includes a warning message such as

 WARNING: node on face thread 2 has multiple shadows. 

it indicates the existence of duplicate shadow nodes. This error occurs only in meshes with periodic-type walls. You can repair such a mesh using the following text command:

mesh → repair-improve → repair-periodic

If the interface is rotational periodic, you will be prompted for the rotation angle.


Release 18.2 - © ANSYS, Inc. All rights reserved.