Algorithm Search⌘K

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 180°180°. 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 180°180° 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 ℓ1,ℓ2,ℓ3\ell_1, \ell_2, \ell_3, area AA, inradius rr, circumradius RR and angles θi\theta_i. 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 θmin⁡\theta_{\min} (0°,60°](0°, 60°] 60°60° small angles nothing in the plane
maximum angle θmax⁡\theta_{\max} [60°,180°)[60°, 180°) 60°60° large angles needles with no large angle
radius-edge ratio R/ℓmin⁡R / \ell_{\min} [1/3,∞)[1/\sqrt{3}, \infty) 1/31/\sqrt{3} small angles nothing in the plane
edge ratio ℓmax⁡/ℓmin⁡\ell_{\max} / \ell_{\min} [1,∞)[1, \infty) 11 stretching flat obtuse triangles
aspect ratio 3 ℓmax⁡2/(4A)\sqrt{3}\, \ell_{\max}^2 / (4A) [1,∞)[1, \infty) 11 every degeneracy nothing
radius ratio 2r/R2 r / R (0,1](0, 1] 11 every degeneracy nothing
mean ratio 43A/∑ℓi24\sqrt{3} A / \sum \ell_i^2 (0,1](0, 1] 11 every degeneracy nothing
scaled Jacobian 23min⁡isin⁡θi\frac{2}{\sqrt{3}} \min_i \sin \theta_i [−23,1][-\frac{2}{\sqrt{3}}, 1] 11 inversion, small and large angles nothing

The aspect ratio here is the longest edge over the shortest altitude, ℓmax⁡/hmin⁡=ℓmax⁡2/(2A)\ell_{\max} / h_{\min} = \ell_{\max}^2 / (2A), times 3/2\sqrt{3}/2 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 180°180°, so θmin⁡≤60°≤θmax⁡\theta_{\min} \le 60° \le \theta_{\max}, with equality only when all three angles are 60°60°.
  • Aspect ratio. Let θ\theta be the smallest angle, between the edges bb and cc. Then A=12bcsin⁡θ≤12ℓmax⁡2sin⁡60°A = \frac{1}{2} b c \sin \theta \le \frac{1}{2} \ell_{\max}^2 \sin 60°, so 3 ℓmax⁡2/(4A)≥1\sqrt{3}\, \ell_{\max}^2 / (4A) \ge 1. Equality needs b=c=ℓmax⁡b = c = \ell_{\max} and θ=60°\theta = 60°.
  • Mean ratio. This is Weitzenböck's inequality. With the angle α\alpha between bb and cc, a2=b2+c2−2bccos⁡αa^2 = b^2 + c^2 - 2 b c \cos \alpha and 43A=23 bcsin⁡α4\sqrt{3} A = 2\sqrt{3}\, b c \sin \alpha. So a2+b2+c2−43A=2(b2+c2)−4bccos⁡(α−60°)≥2(b−c)2≥0a^2 + b^2 + c^2 - 4 \sqrt{3} A = 2(b^2 + c^2) - 4 b c \cos(\alpha - 60°) \ge 2 (b - c)^2 \ge 0. Equality needs b=cb = c and α=60°\alpha = 60°.
  • Radius ratio. Euler's identity ∣OI∣2=R(R−2r)|OI|^2 = R(R - 2r), for the circumcenter OO and the incenter II, gives R≥2rR \ge 2r, with equality exactly when O=IO = I, 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 A/ℓmax⁡2→0A / \ell_{\max}^2 \to 0, that is, for every flattening. The edge ratio does not: the flat triangle (−1,0),(1,0),(0,0.1)(-1, 0), (1, 0), (0, 0.1) has edge ratio about 1.991.99.

Tetrahedra. In space the same names apply with VV for the volume. The radius ratio is 3r/R3 r / R, the mean ratio of Liu and Joe is 12(3V)2/3/∑i<jℓij212 (3V)^{2/3} / \sum_{i<j} \ell_{ij}^2, 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 dd-simplex with inradius rr and circumradius RR, R≥d rR \ge d\, r, with equality only for the regular simplex. Proof. Let HiH_i be the hyperplane of facet ii, with area AiA_i, and let si(x)s_i(x) be the signed distance from xx to HiH_i, positive on the side of the simplex. Cutting the simplex into cones from a point xx gives ∑iAisi(x)=dV\sum_i A_i s_i(x) = d V for every xx, since both sides are affine in xx and agree inside the simplex. At the incenter all si=rs_i = r, so dV=r∑iAid V = r \sum_i A_i. The homothety with center at the centroid and ratio −1/d-1/d maps each vertex to the centroid gig_i of the opposite facet, so it maps the circumsphere to a sphere of radius R/dR/d with center qq that passes through every gig_i. Then si(q)≤∣q−gi∣=R/ds_i(q) \le |q - g_i| = R / d for each ii, and so r∑iAi=∑iAisi(q)≤(R/d)∑iAir \sum_i A_i = \sum_i A_i s_i(q) \le (R/d) \sum_i A_i. For equality, every facet must touch the sphere of radius R/dR/d 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 viv_i to the centroid of the face vivjvkv_i v_j v_k is (2ℓij2+2ℓik2−ℓjk2)/9(2 \ell_{ij}^2 + 2 \ell_{ik}^2 - \ell_{jk}^2)/9, and the equal-distance conditions are a linear system of rank 5 in the six squared edge lengths, so all six are equal. ■\blacksquare

The algebraic framework. Knupp builds measures from the Jacobian matrix ApA_p at each corner pp, the matrix of edge vectors at pp. With WW the same matrix for the ideal element, T=ApW−1T = A_p W^{-1} is the map from the ideal corner to the actual one. Then det⁡T\det T measures size and inversion, the condition number ∣T∣F ∣T−1∣F/d|T|_F\, |T^{-1}|_F / d measures shape, and d (det⁡T)2/d/∣T∣F2d \, (\det T)^{2/d} / |T|_F^2 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 det⁡T\det T 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 θmin⁡\theta_{\min} θmax⁡\theta_{\max} radius-edge edge ratio aspect radius ratio mean ratio scaled Jacobian
equilateral 60°60° 60°60° 0.5770.577 11 11 11 11 11
right isosceles 45°45° 90°90° 0.7070.707 1.4141.414 1.7321.732 0.8280.828 0.8660.866 0.8160.816
needle (0,0),(1,0),(0,0.1)(0,0), (1,0), (0,0.1) 5.71°5.71° 90°90° 5.025.02 10.0510.05 8.758.75 0.1890.189 0.1710.171 0.1150.115
flat (−1,0),(1,0),(0,0.1)(-1,0), (1,0), (0,0.1) 5.71°5.71° 168.58°168.58° 5.025.02 1.991.99 17.317.3 0.0200.020 0.1150.115 0.1150.115

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 T0.01T_{0.01} of the radius-edge ratio page, and a cap of height 0.10.1 over an equilateral triangle inscribed in the unit circle give:

Shape radius-edge edge ratio radius ratio mean ratio dihedral angles
regular 0.6120.612 11 11 11 all 70.53°70.53°
sliver T0.01T_{0.01} 0.7070.707 1.4141.414 0.0300.030 0.0880.088 1.62°1.62° to 177.71°177.71°
cap 5.025.02 1.721.72 0.0290.029 0.2560.256 11.31°11.31° to 160.44°160.44°

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 BB. 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

  1. 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)
  2. 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
  3. 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
  4. 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.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/5ZV0HM/text.yaml