Shape optimization with CutFEM¶
Given these cut integrals in the interface region, we require two central ingredients:
a way to enforce boundary conditions inside elements through integrals and not classical boundary lifting
a stabilization technique to prevent ill-conditioning.
Nitsche’s method¶
Imposing Dirichlet conditions on a boundary that is not meshed explicitly requires enforcing these boundary conditions weakly via integrals. The two main approaches to enforce Dirichlet conditions weakly are Nitsche’s method [Nit71] and the Lagrange multiplier method. In this contribution, we use Nitsche’s method because it does not require an additional unknown as in the Lagrange multiplier method.
In the context of a problem solved with the finite element method on a cut mesh of \(\Omega\), the selected solution space does not inherently incorporate Dirichlet conditions (as in lifting).
Ghost penalty¶
A challenge arises for cut integrals, as they depend only on the physical part of elements \(\Gamma_K\) and \(\Omega_K\). Certain elements may have minimal intersection with the physical domain \(\Omega\), as depicted in Figure 28. For Nitsche’s method this can result in a penalty parameter tending to \(\infty\) (see Figure 28). Furthermore, cut elements like those shown in Figure 29 result in ill-conditioning of the system matrix.
Figure 28 Example of very small intersections with the physical domain \(\Omega\) leading to a lack of stability.¶
Figure 29 Example of very small intersections with the physical domain \(\Omega\) leading to an ill-conditioning.¶
To address these issues, one approach is to modify the formulation to depend on the active domain \(\Omega_{h}\), as illustrated by the green domain in Figure 20.This extension of the problem formulation from the physical domain (\(\Omega\)) to the active domain (\(\Omega_{h}\)) should be done accurately, ensuring that terms vanish optimally with mesh refinement and smoothness of the solution. One way to achieve such an extension is the ghost penalty stabilization method [Bur10]. The concept involves introducing a penalization term on the elements intersected by the interface \(\Gamma\). This method extends coercivity to the entire domain without compromising convergence properties.
CutFEM Weak formulation of Linear elasticity¶
To solve the primal problem with CutFEM we define the space of Lagrange finite elements of order \(k\) (denoted \(\mathbb{P}_{k}\)) as
and the finite element space on the active part of the mesh
The problem formulation (7) with the finite element method on \(\mathcal{K}_{\;h}\) is: Find \(u_{h}\in V_{h,k,\Omega}\left(\Omega_{h}\right)\) such that for all \(v\in V_{h,k,\Omega}\left(\Omega_{h}\right)\)
with
Here,
denotes the jump across facet \(F\) between element \(K_{+}\) and \(K_{-}\) and \(n_F\) is the normal to facet \(F\). The term \(j_h\) is called ghost penalty stabilization and guarantees well conditioned system matrices. The term \(N_{\Gamma_D}\) corresponds to Nitsche’s method to impose Dirichlet conditions on \(\Gamma_{D}\), defined as
where \(\gamma_{D}>0\) is a penalty parameter independent of the mesh size \(h\).
Note
Implementation Note: In OptiCut, Nitsche’s method and the ghost penalty stabilization are assembled in the _build_primal_forms method of the CutFEMElasticSolver. The facet jumps \([\partial_n u]\) are evaluated directly using the cutfemx.ghost_penalty_facets function, ensuring that the system matrix remains well-conditioned even for highly disproportionate cut elements.
Advection¶
To transport the domain using the level-set method we have to solve the transport equation (9). To stabilize this equation, we introduce a stabilization parameter \(\gamma_{\text{Adv}}>0\), and use the inner stabilization proposed in [BEH+18]:
Note
Implementation Note: This stabilized transport equation is solved using the AdvectionCutFEM class in levelSet_tool.py. The parameter \(\gamma_{\text{Adv}}\) corresponds to the ghost_penalty_adv attribute in the code.