# Difference between revisions of "VTK/mesh quality"

(One intermediate revision by one other user not shown) | |||

Line 5: | Line 5: | ||

= Implementation = | = Implementation = | ||

− | [[VTK]] now includes the | + | [[VTK]] now includes the Verdict quality library. |

Routines from this library are used by the [http://www.vtk.org/doc/nightly/html/classvtkMeshQuality.html vtkMeshQuality] filter to compute per-cell quality. Quality measures for triangular, quadrilateral, tetrahedral, and hexahedral cells are available. The filter will compute the value of one quality metric per cell and allows you to choose this metric on a per-cell-type basis. For example, you might compute the radius ratio for triangular cells and the Frobenius aspect for tetrahedral cells. The results are stored in a new cell array named "Quality". The filter also computes summary information for the entire mesh including | Routines from this library are used by the [http://www.vtk.org/doc/nightly/html/classvtkMeshQuality.html vtkMeshQuality] filter to compute per-cell quality. Quality measures for triangular, quadrilateral, tetrahedral, and hexahedral cells are available. The filter will compute the value of one quality metric per cell and allows you to choose this metric on a per-cell-type basis. For example, you might compute the radius ratio for triangular cells and the Frobenius aspect for tetrahedral cells. The results are stored in a new cell array named "Quality". The filter also computes summary information for the entire mesh including | ||

* the average value of some quality metric per cell type (e.g., the average over all tetrahedral cells) | * the average value of some quality metric per cell type (e.g., the average over all tetrahedral cells) | ||

Line 16: | Line 16: | ||

In addition to the Doxygen documentation for the [http://www.vtk.org/doc/nightly/html/classvtkMeshQuality.html vtkMeshQuality] class, Verdict has a user's manual which you may download from this page: | In addition to the Doxygen documentation for the [http://www.vtk.org/doc/nightly/html/classvtkMeshQuality.html vtkMeshQuality] class, Verdict has a user's manual which you may download from this page: | ||

− | * [[Media:VerdictManual-revA.pdf | + | * [[Media:VerdictManual-revA.pdf|Verdict Manual, rev. A]] (3 MB) |

This document contains the mathematical definition of each quality metric as well as implementation details. | This document contains the mathematical definition of each quality metric as well as implementation details. | ||

{{VTK/Template/Footer}} | {{VTK/Template/Footer}} |

## Latest revision as of 16:52, 12 February 2015

# Definition

In finite element analysis, the shape of individual elements (cells in VTK parlance) can significantly affect the accuracy of a simulation. Mesh quality metrics compute a positive real number related to the shape of each cell in a VTK mesh for inspection during both pre- and post-processing. There are several metrics for each cell type (shape); which one is most closely related to the accuracy of a simulation is application-specific.

# Implementation

VTK now includes the Verdict quality library. Routines from this library are used by the vtkMeshQuality filter to compute per-cell quality. Quality measures for triangular, quadrilateral, tetrahedral, and hexahedral cells are available. The filter will compute the value of one quality metric per cell and allows you to choose this metric on a per-cell-type basis. For example, you might compute the radius ratio for triangular cells and the Frobenius aspect for tetrahedral cells. The results are stored in a new cell array named "Quality". The filter also computes summary information for the entire mesh including

- the average value of some quality metric per cell type (e.g., the average over all tetrahedral cells)
- the variance of some quality metric per cell type
- the minimum and maximum quality metric values per cell type
- the number of cells of each type.

The summary information is stored in the output mesh's field data.

# Documentation

In addition to the Doxygen documentation for the vtkMeshQuality class, Verdict has a user's manual which you may download from this page:

- Verdict Manual, rev. A (3 MB)

This document contains the mathematical definition of each quality metric as well as implementation details.