Algorithm Search⌘K

Techniquecore

Isoparametric mapping

Also called isoparametric element.

Maps a reference element to each physical element with the same shape functions used for the solution, which allows curved boundaries.

An isoparametric mapping maps a fixed reference cell K^\hat K onto each physical cell KK with the same shape functions that represent the solution: FK(x^)=∑jxj ϕ^j(x^)F_K(\hat x) = \sum_j x_j\,\hat\phi_j(\hat x), where xjx_j are the coordinates of the nodes of KK. With quadratic or higher shape functions the cells can have curved edges that follow a curved boundary, and with bilinear ones a code can use general quadrilaterals. Because the geometry and the solution use one basis, the element represents every linear function exactly, so it passes the patch test. The map is valid only if its Jacobian keeps one sign over the reference cell.

In plain words

You compute everything on one simple master shape, a unit square or a unit triangle, and then stretch and bend it into each real cell of the mesh. The rule for stretching uses the same building blocks that describe the unknown field on the cell. So if those blocks can bend, the cell edges can bend too, and the mesh can follow a round hole or a curved wing. The same choice also makes sure that a simple uniform state, such as a constant stretch, comes out exactly right on any mesh. One check is essential: the stretched cell must not fold over itself. If it folds, the computed areas become negative and the results are wrong.

When it applies

  • Curved boundaries. For elements of degree k≥2k \ge 2, a polygonal approximation of a curved boundary has a geometric error of order h2h^2, and that error limits the accuracy. Isoparametric cells of degree kk along the boundary approximate it to order hk+1h^{k+1} and keep the optimal rates (Ciarlet and Raviart, 1972).
  • Quadrilateral and hexahedral meshes. A Q1 cell that is not a parallelogram has no affine map from the unit square, so a bilinear isoparametric map is the standard way to define it.
  • Lagrangian solid mechanics. The same interpolation of node positions gives the deformation gradient in large-deformation codes.

The technique needs a reference element with a nodal basis, node positions that give a positive Jacobian everywhere in K^\hat K, and a quadrature rule on K^\hat K, because the integrands are no longer polynomials.

The template

The Jacobian is J(x^)=∑jxj ∇^ϕ^j(x^)⊤J(\hat x) = \sum_j x_j\,\hat\nabla\hat\phi_j(\hat x)^\top, a d×dd \times d matrix. Physical gradients are ∇ϕj=J−⊤∇^ϕ^j\nabla\phi_j = J^{-\top}\hat\nabla\hat\phi_j, and dx=∣det⁡J∣ dx^dx = |\det J|\,d\hat x.

  1. ISOPARAMETRIC-ELEMENT(x_1 .. x_n, kappa, f, rule (xi_q, w_q)) ▷ x_j are the nodes of K
  2. 1A_K <- 0 (n by n), b_K <- 0 (length n)
  3. 2for each quadrature point xi_q with weight w_q in the rule on K-hat do
  4. 3evaluate phi-hat_j(xi_q) and grad-hat phi-hat_j(xi_q) for j = 1 .. n
  5. 4x_q <- sum_j x_j phi-hat_j(xi_q); J <- sum_j x_j grad-hat phi-hat_j(xi_q)^T ▷ same basis as u_h
  6. 5if det J <= 0 then report an inverted element and stop
  7. 6G <- J^(-T) [grad-hat phi-hat_1 .. grad-hat phi-hat_n] ▷ physical gradients, d by n
  8. 7A_K <- A_K + w_q det J kappa(x_q) G^T G
  9. 8b_K <- b_K + w_q det J f(x_q) [phi-hat_1(xi_q) .. phi-hat_n(xi_q)]^T
  10. 9return A_K, b_K

The local matrix then goes into the global one by finite element assembly, with no change: the map affects only how the element integrals are computed.

Why linear functions are exact. The Lagrange basis satisfies ∑jϕ^j=1\sum_j\hat\phi_j = 1, and the map gives ∑jxjϕ^j(x^)=x\sum_j x_j\hat\phi_j(\hat x) = x. For u=a+b⋅xu = a + b\cdot x the nodal values uj=a+b⋅xju_j = a + b\cdot x_j therefore give ∑jujϕ^j(x^)=a+b⋅FK(x^)=u\sum_j u_j\hat\phi_j(\hat x) = a + b\cdot F_K(\hat x) = u. So every linear function lies in the isoparametric space, on any mesh of valid cells. A mesh of such cells reproduces a constant gradient exactly, which is the patch test.

Classic examples

A bilinear trapezoid. Map [0,1]2[0,1]^2 with the Q1 basis (1−ξ)(1−η)(1-\xi)(1-\eta), ξ(1−η)\xi(1-\eta), ξη\xi\eta, (1−ξ)η(1-\xi)\eta onto the cell with nodes (0,0)(0,0), (2,0)(2,0), (1,1)(1,1), (0,1)(0,1) in the same order. Then x=2ξ−ξηx = 2\xi - \xi\eta and y=ηy = \eta, so

J=(2−η−ξ01),det⁡J=2−η∈[1,2].J = \begin{pmatrix} 2 - \eta & -\xi \\ 0 & 1\end{pmatrix}, \qquad \det J = 2 - \eta \in [1, 2].

The area is ∫01∫01(2−η) dξ dη=32\int_0^1\int_0^1 (2 - \eta)\,d\xi\,d\eta = \tfrac32, which is the area of the trapezoid with parallel sides 2 and 1 and height 1. Since det⁡J\det J is not constant, the entries of J−⊤J^{-\top} are rational functions, and Gauss quadrature computes AKA_K only approximately. Codes use a 2×22 \times 2 Gauss rule for this cell.

A reentrant quadrilateral. With the nodes (0,0)(0,0), (1,0)(1,0), (14,14)(\tfrac14, \tfrac14), (0,1)(0,1) the same map gives det⁡J=1−34(ξ+η)\det J = 1 - \tfrac34(\xi + \eta). Its values at the four corners are 11, 14\tfrac14, −12-\tfrac12 and 14\tfrac14, so the map folds near the corner (14,14)(\tfrac14, \tfrac14), which is a reflex corner. For a bilinear map det⁡J\det J is an affine function of ξ\xi and η\eta, so it is positive on the whole square if and only if it is positive at the four corners, which holds if and only if the quadrilateral is convex.

A curved boundary edge. A P2 triangle with vertices (0,0)(0,0), (1,0)(1,0), (0,1)(0,1) and the node of the outer edge moved to (22,22)(\tfrac{\sqrt2}2, \tfrac{\sqrt2}2) on the unit circle approximates a quarter of the unit disk. The outer edge becomes a parabola whose tangent at the moved node is parallel to the chord. By Archimedes' rule its segment has 43\tfrac43 of the area of the triangle on the chord with apex at that node, which is 43⋅2−12\tfrac43\cdot\tfrac{\sqrt2 - 1}2. The total area is 12+23(2−1)≈0.77614\tfrac12 + \tfrac23(\sqrt2 - 1) \approx 0.77614, against π/4≈0.78540\pi/4 \approx 0.78540, an error of 1.2 percent. The straight triangle has area 0.50.5, an error of 36 percent.

The quarter-point element. On one edge of a P2 element, map ξ∈[0,1]\xi \in [0,1] with the end nodes at 00 and 11 and the middle node at mm: x(ξ)=ξ(2ξ−1)+4m ξ(1−ξ)x(\xi) = \xi(2\xi - 1) + 4m\,\xi(1 - \xi). Then x′(ξ)=4ξ−1+4m(1−2ξ)x'(\xi) = 4\xi - 1 + 4m(1 - 2\xi) is affine, with x′(0)=4m−1x'(0) = 4m - 1 and x′(1)=3−4mx'(1) = 3 - 4m, so the map is valid exactly for 14<m<34\tfrac14 < m < \tfrac34. At m=14m = \tfrac14 we get x=ξ2x = \xi^2, so ξ=x\xi = \sqrt x, and a quadratic in ξ\xi contains the term x\sqrt x. This is the square-root singularity of the displacement near a crack tip, and crack codes in fracture mechanics place the middle nodes of the cells at the tip at the quarter points on purpose.

Variations

  • Subparametric elements. The map has a lower degree than the solution, for example affine maps for the interior cells of a P2 mesh. They still reproduce linear functions, and they save work.
  • Superparametric elements. The map has a higher degree than the solution. The constant and linear functions are no longer in the space in general, so these elements can fail the patch test.
  • Transfinite or blending maps. Interpolate an exact boundary curve into the cell instead of a polynomial through nodes, as in the Gordon-Hall construction.
  • Isogeometric analysis. Uses the spline or NURBS basis of the CAD model for both geometry and solution. This keeps the isoparametric idea and makes the geometry exact.

Pitfalls

  • Checking only the corners of curved cells. For a P2 triangle, det⁡J\det J is a polynomial of degree 2, and it can be negative inside the cell while it is positive at all nodes. Robust checks bound it with its Bernstein coefficients or sample it at the quadrature points. Mesh generators that move boundary nodes onto curves often create such cells. See invertible finite elements for the same problem in simulation.
  • Using ∣det⁡J∣|\det J| without checking the sign. The absolute value hides an inverted cell, and the code computes a positive but meaningless matrix.
  • Using J−1J^{-1} in place of J−⊤J^{-\top}. The physical gradient is J−⊤∇^ϕ^J^{-\top}\hat\nabla\hat\phi. The two agree only when JJ is symmetric, so the error shows up only on sheared cells.
  • Too few quadrature points. The stiffness integrand is rational on non-affine cells. A rule that is too weak can give a singular matrix (hourglass modes on Q1 with one point) or lose the convergence order.
  • Strong distortion. On quadrilateral meshes that do not tend to parallelograms under refinement, the mapped space does not contain all of Pk\mathcal{P}_k in physical coordinates. Arnold, Boffi and Falk showed in 2002 that the serendipity elements then lose convergence order.

Exercises

  1. Show that a bilinear map of [0,1]2[0,1]^2 is valid if and only if the four nodes form a convex quadrilateral in the right order. Hint: det⁡J\det J is affine in (ξ,η)(\xi, \eta), and its value at a corner is twice the signed area of the triangle formed by that corner and its two neighbors.
  2. For the trapezoid above, compute J−⊤J^{-\top} and the physical gradient of the basis function ξη\xi\eta at (ξ,η)=(12,12)(\xi, \eta) = (\tfrac12, \tfrac12). Answer: J−⊤=12−η(10ξ2−η)J^{-\top} = \frac1{2 - \eta}\begin{pmatrix} 1 & 0 \\ \xi & 2 - \eta\end{pmatrix}, and at the point the gradient is (13,23)(\tfrac13, \tfrac23).
  3. For the quarter-point edge with m=14m = \tfrac14, show that the derivative in xx of a P2 function behaves like x−1/2x^{-1/2} near x=0x = 0, and that a strain of size r−1/2r^{-1/2} near a crack tip in 2D still has finite energy. Answer: u=a+bξ+cξ2=a+bx+cxu = a + b\xi + c\xi^2 = a + b\sqrt x + cx, so du/dx=b/(2x)+cdu/dx = b/(2\sqrt x) + c. In polar coordinates ∫02π∫01(r−1/2)2 r dr dθ=2π\int_0^{2\pi}\int_0^1 (r^{-1/2})^2\,r\,dr\,d\theta = 2\pi.
  4. Prove that a superparametric element, with a P2 map and P1 shape functions on the reference cell, does not contain the function xx when its edge is curved. Answer: x∘FKx \circ F_K is the first component of FKF_K, which is quadratic and not linear in x^\hat x, so it is not in P1(K^)\mathcal{P}_1(\hat K).

References

  1. J. Ergatoudis, B. M. Irons and O. C. Zienkiewicz, Curved, isoparametric, quadrilateral elements for finite element analysis, International Journal of Solids and Structures 4(1) (1968) 31-42
  2. P. G. Ciarlet and P.-A. Raviart, Interpolation theory over curved elements, with applications to finite element methods, Computer Methods in Applied Mechanics and Engineering 1(2) (1972) 217-249
  3. Philippe G. Ciarlet, The Finite Element Method for Elliptic Problems, SIAM Classics in Applied Mathematics 40, 2002, Chapter 4 (isoparametric finite elements and problems on curved domains)
  4. Thomas J. R. Hughes, The Finite Element Method, Linear Static and Dynamic Finite Element Analysis, Dover, 2000, Chapter 3 (isoparametric elements and elementary programming concepts)

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)
WritingW2 basic
  • three classic examples