Algorithm Search⌘K

Definitioncore

Scaled Jacobian

Also called scaled Jacobian quality.

The determinant of the element Jacobian at a corner divided by the product of the edge lengths there, 1 for a cube and at most 0 for an inverted element.

The scaled Jacobian of a mesh element is the determinant of the edge vectors at a corner divided by the product of their lengths, minimized over the corners. It is 1 for a square or a cube corner, it is near 0 for a flat or badly skewed element, and it is negative when the element is inverted. Hexahedral and quadrilateral meshers report it first, because a non-positive value means that the element map is not invertible and the finite element computation fails.

Definition

Corner value. Let pp be a corner of an element in Rd\mathbb{R}^d, d=2d = 2 or 33, and let e1,…,ede_1, \ldots, e_d be the vectors from pp along the dd element edges at pp, in the order that gives a positive determinant for a correctly oriented element. The corner value is

Jp=det⁡(e1,…,ed)∣e1∣⋯∣ed∣=det⁡(e1∣e1∣,…,ed∣ed∣).J_p = \frac{\det(e_1, \ldots, e_d)}{|e_1| \cdots |e_d|} = \det\left( \frac{e_1}{|e_1|}, \ldots, \frac{e_d}{|e_d|} \right).

For a triangle or a quadrilateral, Jp=sin⁡θpJ_p = \sin \theta_p, where θp\theta_p is the interior angle at pp, and it is negative at a reflex corner. The name comes from the element map. The bilinear map of a quadrilateral, the trilinear map of a hexahedron and the linear map of a simplex all have the edge vectors eie_i as the columns of their Jacobian matrix at the corner pp. So det⁡(e1,…,ed)\det(e_1, \ldots, e_d) is the Jacobian there, and JpJ_p is that Jacobian scaled by the edge lengths.

Element value. For a quadrilateral or a hexahedron, SJ=min⁡pJp\mathrm{SJ} = \min_p J_p over the 4 or 8 corners. A simplex needs a normalization, because the regular simplex does not have right angles. For a triangle, SJ=23min⁡pJp\mathrm{SJ} = \frac{2}{\sqrt{3}} \min_p J_p. For a tetrahedron, SJ=2min⁡pJp\mathrm{SJ} = \sqrt{2} \min_p J_p. Codes differ in these constants, so a reported value needs its convention.

As a quality measure. Larger is better. For quadrilaterals and hexahedra the range is [−1,1][-1, 1] with ideal value 1, reached exactly by rectangles and boxes. For triangles the range is [−2/3,1][-2/\sqrt{3}, 1] and for tetrahedra [−2,1][-\sqrt{2}, 1], with ideal value 1, reached exactly by the regular simplex. The measure detects inversion (a value at most 0) and angular distortion: skew, flat corners and slivers. It does not detect stretching. A 1×1×1001 \times 1 \times 100 box has SJ=1\mathrm{SJ} = 1, so the measure is used with an aspect ratio or an edge ratio. It is one of the mesh quality measures.

Range of a corner value. By the Hadamard bound, ∣det⁡(e1,…,ed)∣≤∣e1∣⋯∣ed∣|\det(e_1, \ldots, e_d)| \le |e_1| \cdots |e_d|, with equality for nonzero vectors if and only if they are pairwise orthogonal. So −1≤Jp≤1-1 \le J_p \le 1, and Jp=1J_p = 1 if and only if the edges at pp are orthogonal and positively ordered. A box has orthogonal edges at every corner, so its value is 1, and a quadrilateral or a hexahedron with every corner value 1 has right angles everywhere and is a rectangle or a box.

Invariance. A translation does not change the edge vectors. A rotation QQ has det⁡Q=1\det Q = 1 and keeps lengths, so det⁡(Qe1,…,Qed)=det⁡(e1,…,ed)\det(Q e_1, \ldots, Q e_d) = \det(e_1, \ldots, e_d). Scaling one edge vector eie_i by s>0s > 0 multiplies the determinant and the product of lengths by ss. So JpJ_p is invariant under translations, rotations, uniform scaling, and independent scaling of the edges at the corner. A reflection changes the sign of every JpJ_p, which is how the measure detects inversion. A shear or a general affine map changes the value.

Theorem (positivity of the bilinear map). Let a quadrilateral p00,p10,p11,p01p_{00}, p_{10}, p_{11}, p_{01} have the bilinear map x(u,v)=(1−u)(1−v)p00+u(1−v)p10+uv p11+(1−u)v p01x(u, v) = (1-u)(1-v) p_{00} + u(1-v) p_{10} + u v\, p_{11} + (1-u) v\, p_{01} on [0,1]2[0, 1]^2. If the four corner Jacobians are positive, then det⁡Dx(u,v)>0\det Dx(u, v) > 0 everywhere on the square.

Proof. Here xu=A+vBx_u = A + v B and xv=C+uBx_v = C + u B, with A=p10−p00A = p_{10} - p_{00}, C=p01−p00C = p_{01} - p_{00} and B=p11−p10−p01+p00B = p_{11} - p_{10} - p_{01} + p_{00}. So det⁡(xu,xv)=det⁡(A,C)+udet⁡(A,B)+vdet⁡(B,C)+uvdet⁡(B,B)\det(x_u, x_v) = \det(A, C) + u \det(A, B) + v \det(B, C) + u v \det(B, B), and det⁡(B,B)=0\det(B, B) = 0. The Jacobian is an affine function of (u,v)(u, v), so its minimum over the square is at a corner. At the corners it equals the corner Jacobians, which are positive. ■\blacksquare

So for a quadrilateral, SJ>0\mathrm{SJ} > 0 if and only if the bilinear map is invertible, which is the case for a strictly convex quadrilateral. The same claim fails for the trilinear hexahedron: its Jacobian is a polynomial of higher degree, and Knupp showed that positive Jacobians at the 8 corners do not guarantee a positive Jacobian inside. So a positive hexahedral SJ\mathrm{SJ} is a necessary check, not a proof of validity.

Theorem (the tetrahedron normalization). For every positively oriented tetrahedron, min⁡pJp≤1/2\min_p J_p \le 1/\sqrt{2}, with equality if and only if the tetrahedron is regular. So SJ=2min⁡pJp≤1\mathrm{SJ} = \sqrt{2} \min_p J_p \le 1.

Proof. At a corner pp, let α\alpha, β\beta, γ\gamma be the three face angles, that is, the angles between pairs of edges at pp, with α\alpha opposite e1e_1 and so on. The Gram matrix of the unit edge vectors has determinant Jp2=1−cos⁡2α−cos⁡2β−cos⁡2γ+2cos⁡αcos⁡βcos⁡γJ_p^2 = 1 - \cos^2 \alpha - \cos^2 \beta - \cos^2 \gamma + 2 \cos \alpha \cos \beta \cos \gamma. With s=(α+β+γ)/2s = (\alpha + \beta + \gamma)/2,

Jp2=4sin⁡s sin⁡(s−α)sin⁡(s−β)sin⁡(s−γ).J_p^2 = 4 \sin s \, \sin(s - \alpha) \sin(s - \beta) \sin(s - \gamma).

To check this, write 2sin⁡ssin⁡(s−α)=cos⁡α−cos⁡(β+γ)2 \sin s \sin(s - \alpha) = \cos \alpha - \cos(\beta + \gamma) and 2sin⁡(s−β)sin⁡(s−γ)=cos⁡(β−γ)−cos⁡α2 \sin(s - \beta) \sin(s - \gamma) = \cos(\beta - \gamma) - \cos \alpha. With P=cos⁡βcos⁡γP = \cos \beta \cos \gamma and Q=sin⁡βsin⁡γQ = \sin \beta \sin \gamma, the product is (cos⁡α−P+Q)(P+Q−cos⁡α)=Q2−(cos⁡α−P)2(\cos \alpha - P + Q)(P + Q - \cos \alpha) = Q^2 - (\cos \alpha - P)^2, and Q2=(1−cos⁡2β)(1−cos⁡2γ)Q^2 = (1 - \cos^2 \beta)(1 - \cos^2 \gamma) expands to the Gram determinant.

The 12 face angles of a tetrahedron are the angles of its 4 triangular faces, so they add up to 4π4 \pi. The 4 corner sums 2s2s have the mean π\pi, so some corner has s≤π/2s \le \pi / 2. At that corner, each face angle is less than the sum of the other two, so s−αs - \alpha, s−βs - \beta, s−γs - \gamma are in (0,π)(0, \pi). The function log⁡sin⁡\log \sin is concave on (0,π)(0, \pi), and the three numbers have the mean s/3s/3. By Jensen's inequality, sin⁡(s−α)sin⁡(s−β)sin⁡(s−γ)≤sin⁡3(s/3)\sin(s - \alpha) \sin(s - \beta) \sin(s - \gamma) \le \sin^3(s/3). So Jp2≤4sin⁡ssin⁡3(s/3)J_p^2 \le 4 \sin s \sin^3(s / 3). On (0,π/2](0, \pi / 2] both factors increase, so Jp2≤4⋅1⋅(1/2)3=1/2J_p^2 \le 4 \cdot 1 \cdot (1/2)^3 = 1/2, and the inequality is strict when s<π/2s < \pi / 2.

Now suppose that min⁡pJp≥1/2\min_p J_p \ge 1/\sqrt{2}. No corner can have s<π/2s < \pi/2. Since the mean of the corner sums is π\pi, every corner has s=π/2s = \pi/2. Equality in Jensen's inequality at every corner forces α=β=γ=π/3\alpha = \beta = \gamma = \pi / 3. Then all four faces are equilateral, all edges are equal, and the tetrahedron is regular. The regular tetrahedron has Jp2=1−3/4+2/8=1/2J_p^2 = 1 - 3/4 + 2/8 = 1/2 at every corner, so equality holds. ■\blacksquare

For a triangle the same holds with a short proof: the smallest angle is at most 60°60°, so min⁡psin⁡θp≤sin⁡60°=3/2\min_p \sin \theta_p \le \sin 60° = \sqrt{3}/2, with equality only for the equilateral triangle. A single corner of a simplex can still have Jp=1J_p = 1: the tetrahedron (0,0,0),(1,0,0),(0,1,0),(0,0,1)(0,0,0), (1,0,0), (0,1,0), (0,0,1) has corner values 1,12,12,121, \frac{1}{2}, \frac{1}{2}, \frac{1}{2}. That is why the element value takes the minimum.

For a tetrahedron with the even orderings of the corners, every corner determinant equals 6V6V, with VV the signed volume. So SJ=62 V/max⁡p(∣e1∣∣e2∣∣e3∣)p\mathrm{SJ} = 6 \sqrt{2}\, V / \max_p (|e_1| |e_2| |e_3|)_p for V>0V > 0. The value is 0 exactly when the volume is 0, whatever the edge lengths are, which is why it detects slivers.

Examples and non-examples

Quadrilaterals and hexahedra.

  • The unit cube: every corner has three orthogonal unit edges, so Jp=det⁡I=1J_p = \det I = 1 and SJ=1\mathrm{SJ} = 1. The 1×1×1001 \times 1 \times 100 box also has SJ=1\mathrm{SJ} = 1.
  • The parallelepiped with a 60°60° angle in its base, (x,y,z)↦(x+y/2,3y/2,z)(x, y, z) \mapsto (x + y/2, \sqrt{3} y / 2, z) applied to the cube: every corner value is sin⁡60°≈0.866\sin 60° \approx 0.866.
  • The trapezoid (0,0),(4,0),(3,1),(1,1)(0,0), (4,0), (3,1), (1,1): all four corners have angle 45°45° or 135°135°, so SJ=sin⁡45°≈0.707\mathrm{SJ} = \sin 45° \approx 0.707.
  • Non-example, a dart: (0,0),(3,0),(1,1),(0,3)(0,0), (3,0), (1,1), (0,3). The corner at (1,1)(1,1) is reflex, with interior angle about 216.9°216.9° and Jp=−0.6J_p = -0.6. The bilinear map of this quadrilateral folds over itself.
  • Non-example, a dented cube: the unit cube with the vertex (1,1,1)(1,1,1) moved to (0.5,0.5,0.5)(0.5, 0.5, 0.5). The moved corner has Jp≈−0.770J_p \approx -0.770 and its three neighbors have Jp≈0.577J_p \approx 0.577, so SJ<0\mathrm{SJ} < 0 and the element is inverted near that corner.

Tetrahedra.

  • The regular tetrahedron: SJ=1\mathrm{SJ} = 1.
  • The corner tetrahedron (0,0,0),(1,0,0),(0,1,0),(0,0,1)(0,0,0), (1,0,0), (0,1,0), (0,0,1): SJ=2/2≈0.707\mathrm{SJ} = \sqrt{2}/2 \approx 0.707.
  • The sliver T0.01T_{0.01} of the radius-edge ratio page, four nearly cocircular and coplanar points: every corner value is about 0.0200.020, so SJ≈0.028\mathrm{SJ} \approx 0.028, while its radius-edge ratio is a good 0.7070.707.
  • The cap with apex at height 0.10.1 over an equilateral triangle inscribed in the unit circle: the corner values are about 0.0860.086 at the base and 0.2560.256 at the apex, so SJ≈0.122\mathrm{SJ} \approx 0.122.

References

  1. Patrick M. Knupp, Algebraic mesh quality metrics, SIAM Journal on Scientific Computing 23(1), 2001, 193 to 218, the Jacobian matrices at the corners of triangles, quadrilaterals, tetrahedra and hexahedra as the basis of quality metrics, and their invariance under scaling and rotation (general locator)
  2. Patrick M. Knupp, On the invertibility of the isoparametric map, Computer Methods in Applied Mechanics and Engineering 78(3), 1990, 313 to 329, positive corner Jacobians make the bilinear map of a quadrilateral invertible, but not the trilinear map of a hexahedron
  3. 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, quality measures for tetrahedra and what each one detects (general locator)

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/ECBX02/text.yaml