Conceptcore
Mesh quality measures
Also called element quality metric, Knupp quality metrics.
Numbers such as the minimum angle, aspect ratio, radius ratio and scaled Jacobian that rate how well an element serves interpolation and the stiffness matrix.
A mesh quality measure is a number computed from the shape of one element that rates how well the element serves a finite element computation. Common measures are the smallest and largest angles, the radius-edge ratio, the aspect ratio, the radius ratio, the mean ratio and the scaled Jacobian. Each measure has a range, an ideal value that the regular element reaches, and a set of bad shapes that it detects. No single measure detects every defect, so mesh generators, smoothers and solvers each choose the measures that match the errors they care about.
In plain words
A mesh cuts a region into many small triangles or tetrahedra, and a simulation computes on each piece. Some pieces help the computation and some hurt it. A thin, flat piece can make the computed answer wrong, or it can make the equations hard to solve. A quality measure is a score for one piece. It is best for a perfectly even piece, and it gets worse as the piece gets stretched, flat or turned inside out. Different scores notice different problems. One score sees a very short side, another sees a corner that is almost a straight line, another sees a piece with almost no volume. Mesh programs compute these scores to decide which pieces to split, which points to move, and whether the mesh is good enough to use.
The idea
Two separate harms. Shewchuk's analysis of linear elements separates two effects. The first is interpolation error: the piecewise linear interpolant of a smooth function has a gradient error that grows without bound when an angle of a triangle tends to . The maximum angle condition of Babuška and Aziz makes this exact. The second is conditioning: the stiffness matrix of the Laplacian has entries that are cotangents of angles (the cotangent Laplacian), so a small angle makes a large entry and raises the condition number. A triangle with one small angle and no large angle is harmless for the error but bad for conditioning. A triangle with an angle near is bad for both. A measure is useful when it tracks the harm that matters for the task.
Ranges and ideal values. The table lists common measures for a triangle with edges , area , inradius , circumradius and angles . Each one is invariant under translations, rotations, reflections (except the signed scaled Jacobian) and uniform scaling, so it depends only on the shape.
| Measure | Formula | Range | Ideal | Detects | Misses |
|---|---|---|---|---|---|
| minimum angle | small angles | nothing in the plane | |||
| maximum angle | large angles | needles with no large angle | |||
| radius-edge ratio | small angles | nothing in the plane | |||
| edge ratio | stretching | flat obtuse triangles | |||
| aspect ratio | every degeneracy | nothing | |||
| radius ratio | every degeneracy | nothing | |||
| mean ratio | every degeneracy | nothing | |||
| scaled Jacobian | inversion, small and large angles | nothing |
The aspect ratio here is the longest edge over the shortest altitude, , times so that the ideal value is 1. Other books use other normalizations, so a reported number needs its formula.
Proofs of the ideal values. In each case the ideal value is reached exactly by the equilateral triangle.
- Minimum and maximum angle. The angles add up to , so , with equality only when all three angles are .
- Aspect ratio. Let be the smallest angle, between the edges and . Then , so . Equality needs and .
- Mean ratio. This is Weitzenböck's inequality. With the angle between and , and . So . Equality needs and .
- Radius ratio. Euler's identity , for the circumcenter and the incenter , gives , with equality exactly when , which holds only for the equilateral triangle.
- Radius-edge ratio and scaled Jacobian. These are proved on their own pages.
Each of the last four measures tends to its worst value whenever , that is, for every flattening. The edge ratio does not: the flat triangle has edge ratio about .
Tetrahedra. In space the same names apply with for the volume. The radius ratio is , the mean ratio of Liu and Joe is , and the minimum and maximum dihedral angles replace the angles. Here the measures split into two groups. The radius-edge ratio and the edge ratio do not detect slivers, because a sliver has no short edge. The radius ratio, the mean ratio, the dihedral angles, the volume-edge ratio and the scaled Jacobian all tend to their worst values for slivers. Liu and Joe proved that the minimum solid angle, the radius ratio and the mean ratio of a tetrahedron are equivalent: each one is bounded above and below by constant multiples of powers of the other, and each one is at its best only for the regular tetrahedron.
The radius ratio bound in any dimension. For a -simplex with inradius and circumradius , , with equality only for the regular simplex. Proof. Let be the hyperplane of facet , with area , and let be the signed distance from to , positive on the side of the simplex. Cutting the simplex into cones from a point gives for every , since both sides are affine in and agree inside the simplex. At the incenter all , so . The homothety with center at the centroid and ratio maps each vertex to the centroid of the opposite facet, so it maps the circumsphere to a sphere of radius with center that passes through every . Then for each , and so . For equality, every facet must touch the sphere of radius at its centroid, so that sphere is the insphere. The tangent segments from one vertex to a sphere have equal lengths, so each vertex is at the same distance from the centroids of the facets that contain it. In the plane this makes the three sides equal. For a tetrahedron, the squared distance from to the centroid of the face is , and the equal-distance conditions are a linear system of rank 5 in the six squared edge lengths, so all six are equal.
The algebraic framework. Knupp builds measures from the Jacobian matrix at each corner , the matrix of edge vectors at . With the same matrix for the ideal element, is the map from the ideal corner to the actual one. Then measures size and inversion, the condition number measures shape, and is the mean ratio. These are invariant under rotations and uniform scaling of the element, and Knupp proved that the condition number and the mean ratio are equivalent measures of shape. The same framework covers quadrilaterals and hexahedra, where the scaled Jacobian, the minimum over the corners of for normalized edges, is the usual first check.
Examples
The table gives each measure for five shapes. Ideal values are in the first row.
| Shape | radius-edge | edge ratio | aspect | radius ratio | mean ratio | scaled Jacobian | ||
|---|---|---|---|---|---|---|---|---|
| equilateral | ||||||||
| right isosceles | ||||||||
| needle | ||||||||
| flat |
The needle and the flat triangle have the same smallest angle, so the minimum angle, the radius-edge ratio and the scaled Jacobian rank them equally. Only the flat one has a large angle, which is the one that spoils the gradient. The radius ratio and the aspect ratio rank the flat triangle much worse, the edge ratio ranks it better.
For tetrahedra, the regular one, the sliver of the radius-edge ratio page, and a cap of height over an equilateral triangle inscribed in the unit circle give:
| Shape | radius-edge | edge ratio | radius ratio | mean ratio | dihedral angles |
|---|---|---|---|---|---|
| regular | all | ||||
| sliver | to | ||||
| cap | to |
The radius-edge ratio and the edge ratio rate the sliver almost as well as the regular tetrahedron. The radius ratio and the dihedral angles show that it is almost flat.
Where it is used
- Mesh generation. Delaunay refinement splits every triangle whose radius-edge ratio exceeds a bound . In two dimensions this gives a proved lower bound on the smallest angle. In three dimensions it gives a proved radius-edge bound only, and slivers are removed afterwards by sliver exudation or by improvement steps.
- Mesh improvement. Optimization-based mesh smoothing moves a vertex to maximize the worst quality of the elements around it, often the mean ratio or the scaled Jacobian. Mesh untangling first makes every element valid. Laplacian smoothing uses no measure and can make elements worse.
- Methods with no guarantee. For the advancing front method, paving and most hexahedral meshers, the quality is only measured after the fact, by the minimum, the mean and a histogram of a chosen measure over the mesh.
- Structured grids. Structured grid generation reports the minimum scaled Jacobian, the skew and the ratio of neighboring cell sizes. A non-positive Jacobian means that the grid has folded.
- Sizing. A mesh sizing function says how large an element should be, and the quality measures say how well shaped it is. They are separate requirements.
References
- Jonathan Richard Shewchuk, What is a good linear element? Interpolation, conditioning, and quality measures, Proceedings of the 11th International Meshing Roundtable, Sandia National Laboratories, 2002, 115 to 126, the link of each measure to interpolation error and to the conditioning of the stiffness matrix, and the list of triangle and tetrahedron measures (general locator)
- Patrick M. Knupp, Algebraic mesh quality metrics, SIAM Journal on Scientific Computing 23(1), 2001, 193 to 218, quality metrics built from the corner Jacobian matrices relative to an ideal element, their invariance, and the equivalence of the condition number and mean ratio metrics
- Anwei Liu and Barry Joe, Relationship between tetrahedron shape measures, BIT 34(2), 1994, 268 to 287, the minimum solid angle, the radius ratio and the mean ratio of a tetrahedron, their maximum only at the regular tetrahedron, and power bounds between each pair
- Ivo Babuška and A. K. Aziz, On the angle condition in the finite element method, SIAM Journal on Numerical Analysis 13(2), 1976, 214 to 226, the maximum angle condition for linear interpolation on triangles
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag 5ZV0HM Edit this page History Report an error Markdown