Algorithm Search⌘K

Techniqueresearch

Cut finite element method

Also called CutFEM.

Burman and coauthors' method that cuts a background mesh by the boundary, adds ghost penalty terms for stability and imposes conditions by Nitsche's method.

The cut finite element method (CutFEM) solves a boundary value problem on a domain Ω\Omega with a standard finite element space on a fixed background mesh that Ω\Omega cuts in an arbitrary way. Every element that meets Ω\Omega is kept, the integrals are taken over the cut parts only, the boundary conditions are imposed weakly by Nitsche's method, and a ghost penalty on the faces near the boundary restores the stability that the cut elements lose. With the ghost penalty, the error estimates and the condition number of the system do not depend on how the boundary cuts the mesh. The boundary is most often given by a level set function. Burman and Hansbo built the method from the unfitted Nitsche method of Hansbo and Hansbo (2002) and the ghost penalty of Burman (2010), and Burman, Claus, Hansbo, Larson and Massing (2015) named the framework. It differs from the other immersed methods of this site by its ghost penalty: the finite cell method uses a high order basis and a small stiffness α\alpha in the void instead, immersogeometric analysis keeps the exact CAD boundary in a background spline mesh, and trimmed isogeometric analysis cuts the CAD patches themselves, with no background mesh.

In plain words

Instead of building a mesh that follows a shape, lay a simple fixed grid over it and let the border of the shape cut through the cells wherever it falls. Each cell that touches the shape takes part, but only the part of it inside the shape counts when the energy is added up.

The trouble is the cells that the border only grazes. A cell with a tiny piece inside the shape has almost no say in the equations, so its unknowns are barely tied down, and the equations become very hard to solve. The fix is a ghost penalty: an extra term on the cell sides near the border that asks the solution to bend smoothly from one cell into the next. Then a grazed cell borrows its stability from its full neighbors, wherever the border falls.

When it applies

  • The domain is given implicitly, by a level set function ϕ\phi with Ω={ϕ<0}\Omega = \{\phi < 0\}, or by any inside test, and a fitted mesh is costly or changes often, as for moving interfaces, two phase flow, fracture or topology optimization.
  • The problem is in weak form, so the boundary conditions can be imposed by integrals on the cut boundary.
  • A standard Lagrange finite element space on a simplex or box mesh is wanted, with the same assembly code as a fitted method.
  • The user needs guarantees: a priori error estimates and condition numbers that hold for every position of the boundary.

The template

  1. CUTFEM(background mesh T of a box around Ω, level set φ, weak form)
  2. 1keep the active elements T_h = {K ∈ T : K ∩ Ω ≠ ∅}; take the finite element space V_h on T_h
  3. 2for each cut element K: find Γ ∩ K, for example as the zero set of the interpolant of φ
  4. 3integrate the bulk terms over K ∩ Ω only
  5. 4add the Nitsche terms on Γ ∩ K for the boundary conditions
  6. 5collect the ghost faces F_G: the interior faces of T_h that belong to an element cut by Γ
  7. 6add the ghost penalty on the faces of F_G
  8. 7assemble and solve

For the model problem −Δu=f-\Delta u = f in Ω\Omega, u=gu = g on Γ=∂Ω\Gamma = \partial\Omega (the Poisson equation), with continuous piecewise polynomials of degree pp on ThT_h, the method finds uh∈Vhu_h \in V_h with

ah(uh,v)+gh(uh,v)=∫Ωfv−∫Γg ∂nv+γh∫Γgvfor all v∈Vh,a_h(u_h, v) + g_h(u_h, v) = \int_\Omega f v - \int_\Gamma g \, \partial_n v + \frac{\gamma}{h} \int_\Gamma g v \qquad \text{for all } v \in V_h,
ah(u,v)=∫Ω∇u⋅∇v−∫Γ(∂nu)v−∫Γu ∂nv+γh∫Γuv.a_h(u, v) = \int_\Omega \nabla u \cdot \nabla v - \int_\Gamma (\partial_n u) v - \int_\Gamma u \, \partial_n v + \frac{\gamma}{h} \int_\Gamma u v .

aha_h is Nitsche's form, defined also on the trimmed analysis page, with a parameter γ>0\gamma > 0.

The ghost penalty. For degree pp it is

gh(u,v)=∑F∈FG∑j=1pγj h2j−1∫F[∂nju] [∂njv] ds,g_h(u, v) = \sum_{F \in F_G} \sum_{j=1}^{p} \gamma_j \, h^{2j-1} \int_F [\partial_n^j u] \, [\partial_n^j v] \, ds,

where [∂nju][\partial_n^j u] is the jump of the jj-th normal derivative across the face FF and γj>0\gamma_j > 0 are parameters. For piecewise linear elements only j=1j = 1 is there: gh(u,v)=γ1∑Fh∫F[∂nu][∂nv] dsg_h(u, v) = \gamma_1 \sum_F h \int_F [\partial_n u][\partial_n v] \, ds. The exact solution is smooth, so its jumps are zero and the term does not change the consistency of the method.

What it controls. The ghost penalty extends the control of the bulk energy from the physical part Ω\Omega to the whole active mesh: there is a constant CC that depends on the shape of the elements and on γj\gamma_j, but not on how Γ\Gamma cuts the mesh, with

∥∇v∥L2(Ωh)2≤C(∥∇v∥L2(Ω)2+gh(v,v))for all v∈Vh,\|\nabla v\|^2_{L^2(\Omega_h)} \le C \left( \|\nabla v\|^2_{L^2(\Omega)} + g_h(v, v) \right) \qquad \text{for all } v \in V_h,

where Ωh\Omega_h is the union of the active elements. From this follow three results that hold uniformly in the position of the cut: (1) the form ah+gha_h + g_h is coercive for γ\gamma above a fixed threshold, (2) the a priori error estimates are optimal, of order hph^p in the energy norm, and (3) the condition number of the stiffness matrix is O(h−2)O(h^{-2}), as for a fitted mesh. Burman and Hansbo (2012) prove these for piecewise linear elements, and Burman and coauthors (2015) discuss the higher order form above. The 1D proof below shows the mechanism.

Classic examples

A 1D proof of the mechanism. Take piecewise linear elements of size hh on (0,∞)(0, \infty), Ω=(0,a)\Omega = (0, a) with a=(k+ϵ)ha = (k + \epsilon) h for an integer k≥1k \ge 1 and 0<ϵ≤10 < \epsilon \le 1, u(0)=0u(0) = 0 imposed strongly, and Nitsche's condition at aa. The last active element K=[kh,(k+1)h]K = [kh, (k+1)h] is cut, and only the length ϵh\epsilon h of it is in Ω\Omega. The ghost face is the node khkh.

Without the ghost penalty, the method fails for small cuts. Let vv be the hat function of the node (k+1)h(k+1)h. Then v′=1/hv' = 1/h on the inside part of KK, v(a)=ϵv(a) = \epsilon, and

ah(v,v)=1h2ϵh−2⋅1h⋅ϵ+γhϵ2=ϵh(γϵ−1).a_h(v, v) = \frac{1}{h^2} \epsilon h - 2 \cdot \frac{1}{h} \cdot \epsilon + \frac{\gamma}{h} \epsilon^2 = \frac{\epsilon}{h} (\gamma \epsilon - 1).

This is negative for ϵ<1/γ\epsilon < 1/\gamma. So for every fixed γ\gamma some cut positions make the matrix indefinite, and ϵ=1/γ\epsilon = 1/\gamma makes it singular. Choosing γ∼1/ϵ\gamma \sim 1/\epsilon restores coercivity but makes the matrix badly conditioned as ϵ→0\epsilon \to 0.

With the ghost penalty, the bound holds for every cut. Let v∈Vhv \in V_h, let cc be the slope of vv on KK and bb its slope on the full element to the left, which lies in Ω\Omega. The jump at the ghost node is c−bc - b, and gh(v,v)=γ1h(c−b)2g_h(v, v) = \gamma_1 h (c - b)^2. Then

hc2≤2hb2+2h(c−b)2=2∥v′∥L2(kh−h,kh)2+2γ1gh(v,v),h c^2 \le 2 h b^2 + 2 h (c - b)^2 = 2 \|v'\|^2_{L^2(kh - h, kh)} + \frac{2}{\gamma_1} g_h(v, v),

so ∥v′∥L2(Ωh)2≤C(∥v′∥L2(Ω)2+gh(v,v))\|v'\|^2_{L^2(\Omega_h)} \le C (\|v'\|^2_{L^2(\Omega)} + g_h(v, v)) with C=1+max⁡(2,2/γ1)C = 1 + \max(2, 2/\gamma_1), independent of ϵ\epsilon. The same step bounds the boundary term: h∣v′(a)∣2=hc2h |v'(a)|^2 = h c^2. For coercivity, Young's inequality with δ=1/(2C′)\delta = 1/(2C'), C′=max⁡(2,2/γ1)C' = \max(2, 2/\gamma_1), gives

ah(v,v)+gh(v,v)≥12(∥v′∥L2(Ω)2+gh(v,v))+(γ−2C′)v(a)2h,a_h(v, v) + g_h(v, v) \ge \tfrac12 \left( \|v'\|^2_{L^2(\Omega)} + g_h(v, v) \right) + (\gamma - 2C') \frac{v(a)^2}{h},

so γ>2C′\gamma > 2 C' is enough, for every ϵ\epsilon. With γ1=1\gamma_1 = 1 that means γ>4\gamma > 4.

Measured. For h=0.1h = 0.1, k=5k = 5 and γ=10\gamma = 10, a short script computes the eigenvalues of the stiffness matrix. Without the ghost penalty the matrix is singular at ϵ=0.1\epsilon = 0.1 and indefinite for ϵ=0.01\epsilon = 0.01 and below, as the formula says. With γ1=1\gamma_1 = 1 the condition number is 3333, 5353, 6767, 6969 and 7070 for ϵ=0.5\epsilon = 0.5, 0.10.1, 0.010.01, 10−310^{-3} and 10−610^{-6}, so it stays bounded. With γ1=0.1\gamma_1 = 0.1 we have C′=20C' = 20 and the condition γ>40\gamma > 40 fails, and the matrix is indeed indefinite for ϵ≤10−3\epsilon \le 10^{-3}.

Interface problems. Hansbo and Hansbo (2002) solve −∇⋅(k∇u)=f-\nabla \cdot (k \nabla u) = f with a jump of kk across an interface that cuts the mesh. Each cut element carries two copies of the basis, one for each side, and Nitsche terms on the interface tie them together. This is the origin of CutFEM.

Surface PDEs. The same idea solves equations on a surface Γ\Gamma given by a level set, with the trace of a bulk finite element space on Γ\Gamma as the space. The ghost penalty then also controls the functions that the surface only grazes.

Variations

  • Other ghost penalties. Instead of jumps of derivatives on faces, penalize the difference between the polynomials of a cut element and its neighbor on their union (the patch form), or penalize the projection error onto a coarser space. All give the bound of the "What it controls" paragraph.
  • Cell agglomeration. Merge each badly cut element with a full neighbor, so that no small cuts remain. This is the main other way to get cut-independent stability.
  • Higher order geometry. A piecewise linear Γh\Gamma_h from the interpolant of ϕ\phi gives a geometry error of order h2h^2. For p≥2p \ge 2, use a higher order description of the boundary or a mapping of the cut elements.
  • Spline spaces. The same terms work with B-splines on a background box, which leads toward immersogeometric analysis.
  • Moving domains. For a moving boundary the active mesh changes with time, and the ghost penalty also extends the solution into newly active elements.

Pitfalls

  • Forgetting the ghost penalty. Without it, a fixed Nitsche parameter fails for some cut positions, as the 1D example shows. The failure depends on the geometry and appears only for some meshes.
  • Too small a ghost parameter. The bound depends on γj\gamma_j, and the Nitsche parameter must be large compared with 1/γ11/\gamma_1. Too large a ghost parameter adds consistency error of high order but stiffens the solution near the boundary.
  • The faces in F_G. Take the interior faces of the active mesh that belong to a cut element. Missing faces leave some cut elements without control.
  • Geometry error. A piecewise linear boundary limits the error to second order, whatever the degree of the elements.
  • Quadrature on cut elements. The integrals of L3 and L4 over curved cut parts need care. In 3D the intersection of a tetrahedron with a planar level set has several cases.

Exercises

  1. In the 1D example, show that the hat function vv of the last node gives ah(v,v)=(ϵ/h)(γϵ−1)a_h(v, v) = (\epsilon / h)(\gamma \epsilon - 1).
  2. Show that the ghost penalty term vanishes for a function that is a single polynomial of degree pp on the whole active mesh, and so for the smooth exact solution up to the jumps of its interpolant.
  3. Prove the inequality hc2≤2hb2+2h(c−b)2h c^2 \le 2 h b^2 + 2 h (c - b)^2 and explain why it does not depend on ϵ\epsilon.
  4. For piecewise linear elements on triangles, which faces are in FGF_G for a circle that cuts a structured mesh? Draw them.
  5. Why is the condition number of a fitted mesh stiffness matrix O(h−2)O(h^{-2}), and why can a cut element make it unbounded without stabilization? Compare with the small cut formulas on the trimmed isogeometric analysis page.

References

  1. E. Burman, Ghost penalty, Comptes Rendus Mathématique 348(21-22), 2010, 1217 to 1220, the whole note, which introduces the ghost penalty for fictitious domain methods
  2. E. Burman and P. Hansbo, Fictitious domain finite element methods using cut elements, II. A stabilized Nitsche method, Applied Numerical Mathematics 62(4), 2012, 328 to 341, the analysis of the method with Nitsche's conditions and the ghost penalty on the faces of the cut elements, for piecewise linear elements (coercivity with constants independent of the cut, a priori error estimates and the bound on the condition number)
  3. E. Burman, S. Claus, P. Hansbo, M. G. Larson and A. Massing, CutFEM, discretizing geometry and partial differential equations, International Journal for Numerical Methods in Engineering 104(7), 2015, 472 to 501, the whole paper (the name, the general framework, the ghost penalty for higher degree elements, and applications to interfaces, surfaces and moving domains)
  4. A. Hansbo and P. Hansbo, An unfitted finite element method, based on Nitsche's method, for elliptic interface problems, Computer Methods in Applied Mechanics and Engineering 191(47-48), 2002, 5537 to 5552, the whole paper, the unfitted Nitsche method on cut elements that CutFEM grew from
  5. J. Nitsche, Über ein Variationsprinzip zur Lösung von Dirichlet-Problemen bei Verwendung von Teilräumen, die keinen Randbedingungen unterworfen sind, Abhandlungen aus dem Mathematischen Seminar der Universität Hamburg 36, 1971, 9 to 15, the weak imposition of Dirichlet conditions that is now called Nitsche's method

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