Techniqueadvanced
Nitsche's method
Also called Nitsche method.
Imposes Dirichlet conditions weakly by consistency and penalty terms on the boundary, keeping optimal convergence without a conforming space.
Nitsche's method imposes a Dirichlet condition on the boundary weakly: the finite element space does not satisfy the condition, and the variational form gets boundary terms that make the discrete solution satisfy it approximately. Unlike the plain penalty method, the added terms keep the form consistent, so the exact solution satisfies the discrete equations, and the method keeps the optimal order of convergence with a penalty parameter of fixed size. Unlike a Lagrange multiplier, it adds no unknowns and the matrix stays symmetric positive definite, provided the penalty parameter is larger than a constant from an inverse inequality. It is the standard way to impose boundary and interface conditions on meshes that do not fit the boundary, on spline spaces, and between the elements of a discontinuous Galerkin method.
In plain words
A finite element program usually forces the boundary values directly into the unknowns. That is easy when there are mesh nodes on the boundary, and hard when the boundary cuts through elements or when the shape functions do not take the boundary values at nodes. Nitsche's method leaves the boundary values free and adds a few terms on the boundary to the equations. One term pulls the solution toward the given boundary values, like a spring. The other terms correct for the fact that the boundary values are not exact, so the method stays as accurate as with forced values. The spring must be stiff enough, with a strength that depends on the mesh size and on the polynomial degree.
When it applies
- A second-order elliptic problem, or a system such as elasticity or Stokes flow, with Dirichlet conditions on all or part of the boundary.
- The finite element space cannot satisfy the condition easily: cut and unfitted meshes, isogeometric spline spaces, enriched spaces and meshless shape functions.
- Interface conditions between subdomains with nonmatching meshes, between patches of a spline model, or across a material interface inside an element.
- The interior faces of a discontinuous Galerkin method, where the same terms give the symmetric interior penalty method.
- A constant in the inverse inequality below must be known or estimated. When small cut cells make large, extra stabilization is needed.
The template
Notation. The model problem is in and on , with outward unit normal and . is a finite element space with no boundary constraint, is the size of the element at the boundary face , is the penalty parameter, and is the inner product on . The method finds with for all , where
NITSCHE(f, g, mesh, γ)- 1
choose a space V_h with no boundary constraint ▷ hole: fitted, cut or spline space - 2
A[i, j] ← (∇φ_j, ∇φ_i) and F[i] ← (f, φ_i) ▷ hole: quadrature for the integrals - 3
for each boundary face F with size h_F do - 4
A[i, j] ← A[i, j] - ⟨∂_n φ_j, φ_i⟩_F - ⟨∂_n φ_i, φ_j⟩_F + (γ/h_F) ⟨φ_j, φ_i⟩_F - 5
F[i] ← F[i] - ⟨∂_n φ_i, g⟩_F + (γ/h_F) ⟨g, φ_i⟩_F ▷ hole: γ from the inverse inequality - 6
solve A U = F ▷ A is symmetric positive definite for γ > C_I² - 7
return u_h = Σ_j U[j] φ_j
Consistency (theorem). If is smooth and solves the problem, then for all . Integration by parts gives , and the two other terms are equal on both sides because on . So the error is orthogonal to in the form , as in the Galerkin method.
Coercivity (theorem). Assume the inverse inequality for all . By the Cauchy-Schwarz and Young inequalities, for every , so
If , any with makes both coefficients positive. With consistency this gives the error bounds for elements of degree , and on a convex domain (theorem, Nitsche 1971). For piecewise polynomials of degree , grows like , so is usually chosen as a fixed multiple of (heuristic).
The threshold in 1D, by hand. Take linear elements on a mesh of size and a function with and . On the first element , , and the boundary part of plus the energy of the first element is
So here, and the bound is sharp: for the hat function at has , and for it has .
A full example, by hand. Solve on with imposed by Nitsche's method and imposed strongly, on 2 elements of size . The exact solution is . The unknowns are and . The stiffness matrix is , the consistency terms add and the penalty adds to the first entry, so
The value is exact, and the boundary value goes to as grows. For , .
Refinement (measurement). On elements, computed exactly in rational arithmetic, the boundary value is for , and it is the largest nodal error in each case. So the boundary condition holds to , the same order as the nodal error of the interior, for every fixed .
Classic examples
- Symmetric interior penalty Galerkin. Nitsche's terms on every interior face, with the jump of in place of , couple the discontinuous elements.
- Cut finite element method. The boundary cuts through the elements of a fixed background mesh, and Nitsche's terms impose the condition on the cut part of each element.
- Unfitted interface problems (Hansbo and Hansbo 2002). The solution is doubled on the cut elements, and Nitsche's terms impose the continuity of the solution and of the flux across the interface.
- Isogeometric analysis. Spline basis functions do not interpolate the boundary values, and the patches of a model may not match, so both the boundary conditions and the patch coupling use Nitsche's terms.
- Extended finite element method. Conditions on cracks and interfaces that are not mesh lines.
- Comparison with the penalty method. The penalty method keeps only and is not consistent, so its error has a term of order , and must grow as , which hurts the condition number.
- Comparison with a Lagrange multiplier. A multiplier on the boundary needs a pair of spaces with an inf-sup bound. Stenberg (1995) showed that a stabilized multiplier method gives Nitsche's method after the multiplier is eliminated, with as the discrete multiplier.
Variations
- Nonsymmetric Nitsche. Change the sign of and of . Then , which is coercive for every (theorem), at the cost of a nonsymmetric matrix. The duality argument for the estimate needs the symmetric form, so the bound of the nonsymmetric version is weaker.
- Robin and general conditions (Juntunen and Stenberg 2009). For , a modified penalty gives a method that is uniformly accurate from the Neumann limit to the Dirichlet limit.
- Variable coefficients. For the terms use , and is scaled with on the face.
- Elasticity and contact. The same construction with the traction in place of , and nonlinear forms of it for frictionless and frictional contact.
- Ghost penalty. On cut meshes, terms that penalize the jumps of derivatives across faces near the boundary make independent of how the boundary cuts the elements.
Pitfalls
- Penalty too small. For the matrix can be singular or indefinite, as the 1D threshold shows. A wrong estimate of gives a method that works on one mesh and fails on another.
- Penalty too large. The boundary condition is then imposed almost strongly, and the condition number grows like . Keep a moderate multiple of the bound, for example a factor of 2 to 10 above it (heuristic).
- Small cut cells. If the boundary cuts off a tiny part of an element, on that part is not controlled by on the same part, and is unbounded. Use a ghost penalty or merge small cells with their neighbors.
- Missing load terms. The terms and in are needed for consistency when . Without the first one the method loses its order.
- Normal and sign errors. The normal must be the outward normal of the domain, and on interfaces each side must use the same normal for the jump and the average.
- Higher degree. The constant grows like , so a that works for linear elements can fail for degree .
Exercises
- Show that the exact solution of , satisfies for every , and say which step fails for the penalty method.
- In the 2-element example, compute for the penalty method with the same , that is with the consistency terms removed, and compare it with .
- Prove that the nonsymmetric version is coercive for every , and compute and for it in the 2-element example with .
- For linear elements in 1D, show that the inverse inequality holds with , and for quadratic elements find the best on one element.
References
- 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(1) (1971) 9-15, the modified variational form with the consistency terms and the penalty term on the boundary, and the error estimates in the energy and L2 norms
- Rolf Stenberg, On some techniques for approximating boundary conditions in the finite element method, Journal of Computational and Applied Mathematics 63(1-3) (1995) 139-148, the derivation of Nitsche's method from a stabilized Lagrange multiplier method by eliminating the multiplier
- Mika Juntunen and Rolf Stenberg, Nitsche's method for general boundary conditions, Mathematics of Computation 78(267) (2009) 1353-1374, the extension to Robin conditions that is uniform from the Neumann limit to the Dirichlet limit
- Anita Hansbo and Peter 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-5552, the use of Nitsche terms on an interface that cuts through the elements of a fixed mesh
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.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W3 standard |
|
Tag 93TXRN Edit this page History Report an error Markdown