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 with a standard finite element space on a fixed background mesh that cuts in an arbitrary way. Every element that meets 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 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 with , 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
CUTFEM(background mesh T of a box around Ω, level set φ, weak form)- 1
keep the active elements T_h = {K ∈ T : K ∩ Ω ≠ ∅}; take the finite element space V_h on T_h - 2
for each cut element K: find Γ ∩ K, for example as the zero set of the interpolant of φ - 3
integrate the bulk terms over K ∩ Ω only - 4
add the Nitsche terms on Γ ∩ K for the boundary conditions - 5
collect the ghost faces F_G: the interior faces of T_h that belong to an element cut by Γ - 6
add the ghost penalty on the faces of F_G - 7
assemble and solve
For the model problem in , on (the Poisson equation), with continuous piecewise polynomials of degree on , the method finds with
is Nitsche's form, defined also on the trimmed analysis page, with a parameter .
The ghost penalty. For degree it is
where is the jump of the -th normal derivative across the face and are parameters. For piecewise linear elements only is there: . 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 to the whole active mesh: there is a constant that depends on the shape of the elements and on , but not on how cuts the mesh, with
where is the union of the active elements. From this follow three results that hold uniformly in the position of the cut: (1) the form is coercive for above a fixed threshold, (2) the a priori error estimates are optimal, of order in the energy norm, and (3) the condition number of the stiffness matrix is , 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 on , with for an integer and , imposed strongly, and Nitsche's condition at . The last active element is cut, and only the length of it is in . The ghost face is the node .
Without the ghost penalty, the method fails for small cuts. Let be the hat function of the node . Then on the inside part of , , and
This is negative for . So for every fixed some cut positions make the matrix indefinite, and makes it singular. Choosing restores coercivity but makes the matrix badly conditioned as .
With the ghost penalty, the bound holds for every cut. Let , let be the slope of on and its slope on the full element to the left, which lies in . The jump at the ghost node is , and . Then
so with , independent of . The same step bounds the boundary term: . For coercivity, Young's inequality with , , gives
so is enough, for every . With that means .
Measured. For , and , a short script computes the eigenvalues of the stiffness matrix. Without the ghost penalty the matrix is singular at and indefinite for and below, as the formula says. With the condition number is , , , and for , , , and , so it stays bounded. With we have and the condition fails, and the matrix is indeed indefinite for .
Interface problems. Hansbo and Hansbo (2002) solve with a jump of 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 given by a level set, with the trace of a bulk finite element space on 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 from the interpolant of gives a geometry error of order . For , 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 , and the Nitsche parameter must be large compared with . 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
- In the 1D example, show that the hat function of the last node gives .
- Show that the ghost penalty term vanishes for a function that is a single polynomial of degree on the whole active mesh, and so for the smooth exact solution up to the jumps of its interpolant.
- Prove the inequality and explain why it does not depend on .
- For piecewise linear elements on triangles, which faces are in for a circle that cuts a structured mesh? Draw them.
- Why is the condition number of a fitted mesh stiffness matrix , and why can a cut element make it unbounded without stabilization? Compare with the small cut formulas on the trimmed isogeometric analysis page.
References
- 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
- 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)
- 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)
- 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
- 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.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag 2SYWEW Edit this page History Report an error Markdown