Abstract
We develop a family of cut finite element methods of different orders based on the discontinuous Galerkin framework, for hyperbolic conservation laws with stationary interfaces in both one and two space dimensions, and for moving interfaces in one space dimension. Interface conditions are imposed weakly and so that both conservation and stability are ensured. A CutFEM with discontinuous elements in space is developed and coupled to standard explicit time stepping schemes for linear advection problems and the acoustic wave problem with stationary interfaces. In the case of moving interfaces, we propose a space-time CutFEM based on discontinuous elements both in space and time for linear advection problems. We show that the proposed CutFEM are conservative and energy stable. For the stationary interface case an a priori error estimate is proven. Numerical computations in both one and two space dimensions support the analysis, and in addition demonstrate that the proposed methods have the expected accuracy.
Similar content being viewed by others
Avoid common mistakes on your manuscript.
1 Introduction
A finite element method (FEM) that uses discontinuous piecewise polynomial spaces as trial and test spaces is commonly called a discontinuous Galerkin (DG) method. Already in 1973 a DG method was introduced for the neutron transport equation [26]. Later for nonlinear time dependent hyperbolic conservation laws DG discretizations in space were coupled to Runge–Kutta time discretizations and limiters see e.g. [5,6,7]. The approach was shown to work well, retaining high order accuracy, conservation and other important properties, and has become very popular. For more details on DG methods, we refer to [16, 28].
Most finite element methods require the mesh to be aligned to boundaries and material interfaces and to achieve the full potential accuracy the mesh quality needs to be high. This type of requirements can be problematic for problems posed on complicated geometries or with material interfaces, especially when the geometry is evolving. For time-dependent problems the time step may be severely restricted. To overcome these problems, approaches using fixed background meshes, unfitted to boundaries and interfaces, are of great interest. However, in a naive approach small cut elements will cause problems, including ill-conditioned linear systems and severe time-step restrictions. Various techniques have been introduced to handle such difficulties. One approach often used in unfitted methods based on DG is cell merging or agglomeration techniques where new elements of sufficient size are created by merging small cut elements with their neighbours [17, 18, 22, 23, 25]. A common technique in connection with Cut Finite Element Methods (CutFEM) is to add ghost penalty stabilization terms in the weak form [3, 4]. In CutFEM the physical domain is embedded into a computational domain equipped with a quasi-uniform mesh. Elements that have an intersection with the domain of interest define the active mesh and associated to that is a finite dimensional function space and a weak form that together define the numerical scheme [9, 14, 21, 31]. Interface and boundary conditions are typically imposed weakly. For hyperbolic problems, CutFEM based on discontinuous piecewise polynomial spaces and ghost penalty stabilization has been developed, e.g. see [12] where a time independent linear advection-reaction problem is considered and see [10] for time dependent nonlinear conservation laws. We also refer to the recent work [8] where a DG method for time dependent linear advection problems is developed with a stabilization of small elements that is designed to restore proper domains of dependence.
The focus of this paper is conservation at material interfaces. We consider time dependent linear hyperbolic conservation laws with discontinuous coefficients in the flux at a stationary or moving interface. We assume the problem has a structure such that requiring conservation yields sufficient conditions at the interface for well-posedness. Typically the interface condition requires the solution to be discontinuous at the interface. Such problems can model for example wave propagation in materials where the wave speed changes abruptly at a material interface.
The first main result is an extension of the family of high order CutFEM with ghost penalty stabilization in [10] to problems with stationary interfaces. In the new method the solution is built from separate solutions on the two sides of the interface, and coupled through the interface condition, which is imposed weakly through penalties in the weak form. We show how to choose these penalties such that both conservation and stability is ensured, independently of how the interface cuts the elements. Numerical results demonstrate that conservation can indeed be lost with other choices. We note that our proposed CutFEM scheme is locally conservative in elements away from the interface and in the patch of elements involving the interface. The stability result is based on a semi-discrete energy analysis, which generalises the stability result in [19], where a high order finite difference methodology with a grid aligned with the interface is analyzed. We apply our method to the scalar advection equation in one and two space dimensions, and to an acoustic system in one space dimension, but the proposed method can be applied to other hyperbolic systems with similar structure.
A second result is a space-time CutFEM for the case of a moving interface. We use a framework similar to that proposed in [9, 15, 32], but here we use discontinuous elements both in space and time. The interface condition is imposed weakly as above, with the same restriction on penalties imposed by conservation. Our analysis as well as our numerical results show that the choice of weak form is important for achieving conservation in the discrete setting. Since the space-time formulation corresponds to an implicit time discretization, the method is computationally more demanding than the proposed method for the case of a stationary interface. However, we also demonstrate a strategy where the space-time CutFEM is restricted to the interface region, and coupled to a standard DG method with explicit time discretization in other parts of the domain.
The paper is organized as follows. In Sect. 2, the model problem is given. In Sect. 3, we consider a stationary interface, propose a discontinuous cut finite element discretization in space and perform a stability analysis, and an a priori error estimate is given for the scalar problems. Numerical examples show that the proposed method has the expected convergence rate, is conservative, and allows for similar time steps as a corresponding standard DG method. In Sect. 4 we consider a moving interface and propose a space-time CutFEM. The stability of the semi-discrete scheme is analyzed and we present some examples to show that the method can simulate the moving interface problem with expected accuracy and with conservation. In Sect. 4.6, we formulate a locally implicit CutFEM. In Sect. 5, we extend our scheme to the advection equation in two space dimensions with a material interface. Finally, in Sect. 6 we conclude.
2 Model Problem
Let \(x_\Gamma (t)\) be an interface that separates the domain \(\Omega =[x_L, x_R]\) into two subdomains \(\Omega _1=[x_L,x_\Gamma (t)]\) and \(\Omega _2=[x_\Gamma (t),x_R]\). Consider the hyperbolic conservation law
with suitable boundary conditions at \(x_L\) and \(x_R\). Here the unknown conservative variable is
which may be discontinuous across the interface \(x_\Gamma (t)\) with jump
We assume that \(u_i\), \(i=1,2\) are continuous functions with sufficiently many continuous derivatives, and that a discontinuity in u may exist only at the interface. The flux function is
with \(A_1\) and \(A_2\) being either constant scalars or matrices. We will only consider problems where the interface condition (2.3) ensures that the problem is well-posed. For the scalar case this means that \(A_1-x_\Gamma '(t)\) and \(A_2-x_\Gamma '(t)\) have the same sign. For systems the number of positive and negative eigenvalues of \(A_i-x_\Gamma '(t)I\), \(i=1,2\) with I being the identity matrix, must be the same on both sides of the interface, and the eigenstructure of the matrices must be such that the interface condition determines entering characteristic variables in terms of exiting characteristic variables.
Also, note that
When the interface condition (2.3) is satisfied, i.e.
we have
Thus, condition (2.3) ensures conservation of u. In this paper, we will consider both a stationary interface, \(x_\Gamma '=0\), and a moving interface.
Before we propose a DG scheme for the problem (2.1)–(2.3) we introduce some notations. For square integrable scalar real valued functions on a given domain K, the standard notation is used for the inner product and the \(L^2\)-norm, namely,
and for square integrable vector real valued functions v, w with m components, each component in \(L^2\), we will use the same notation, but now vw means the standard dot product, i.e.
Furthermore
3 Stationary Interface
Consider (2.1)–(2.3) in the case of a stationary interface, that is with \(x_\Gamma '=0\) and interface condition \([F(u)]_\Gamma =0\). In the following we define the mesh, the space, and the weak formulation for a cut finite element method based on the DG framework.
3.1 Mesh and Spaces
Let \({\mathcal {T}}_h\) be a quasi-uniform partition of the domain \(\Omega \) generated independently of the position of the interface and let \({\mathcal {E}}_h\) denote the set containing the edges in this mesh. The mesh consists of intervals \(I_{j}=[x_{j-\frac{1}{2}},x_{j+\frac{1}{2}}], j=1,\ldots ,N\) with length \(\Delta x_j=x_{j+\frac{1}{2}}-x_{j-\frac{1}{2}}\), and \(x_{L}=x_{\frac{1}{2}}<x_{\frac{3}{2}}<\cdots<x_\Gamma<\cdots <x_{N+\frac{1}{2}}=x_{R}\). The mesh size is \(h=\max _{1\le j\le N} \Delta x_j\). See Fig. 1 for an illustration.
Define the following active meshes
and the set of edges
Denote by \({\mathcal {F}}_{h,i}\) the interior edge in \({\mathcal {E}}_{h,i}\) that belongs to a cut element, i.e.,
Define the piecewise polynomial space
where \(P^{r}(I_j)\) is the space of polynomials with degree at most r on \(I_j\). We note that if \(v\in {\widetilde{{\mathcal {V}}_h^r}}\) is a vector, it means each of its component belongs to \(P^r(I_j)\). Define the active finite element spaces
and let \({\mathcal {V}}_h^r={\mathcal {V}}_{h,1}^r \times {\mathcal {V}}_{h,2}^r\). Hence, with \(v\in {\mathcal {V}}_h^r\) we mean \(v=(v_1,v_2)\) with \(v_i \in {\mathcal {V}}_{h,i}^r\).
For any \(v(\cdot ,t) \in {\mathcal {V}}_{h,i}^r\) at a fixed time \(t\in [0,T]\), let \(v^+ \) and \(v^- \) denote the limit values of v at x from right and left, i.e.,
Define the average and the jump of the function v at an edge \(e\in {\mathcal {E}}_{h,i}\) by
On the interface the average and jump of \(v(\cdot ,t)=(v_1(\cdot ,t),v_2(\cdot ,t))\in {\mathcal {V}}_h^r\) are defined by
3.2 Weak Formulation
We now state a semi-discrete weak formulation. For \(t\in [0,T]\), find \(u_h(\cdot ,t)\) \(\in {\mathcal {V}}_h^r\) such that
for all \(v_h\in {\mathcal {V}}_h^r\). Here
with
and
The stabilization terms \(J_s(u,v),s=0,1\), are added in order to have a stable scheme independently of how the interface cuts the background mesh. Otherwise, the mass matrix may be nearly singular, which can cause very severe time step restriction or ill-conditioning. The parameters in front of the stabilization terms, \(\gamma _M,\gamma _A\) and \(\omega _k\) are positive constants. The choice is not unique and we choose \(\omega _k=\frac{1}{(k!)^2(2k+1)}\) as in [27]. The penalty parameters at the interface in (3.12) is
The choice of values will be discussed below. We note that interfaces between elements and boundary edges are handled with the usual DG methodology, where we choose a single-valued function \({\widehat{F}}_e\) to approximate F(u) on edge e. In this paper, the flux \({\widehat{F}}_e\) is chosen as
Here, \(\{F(u_h)\}_e=\frac{1}{2}\left( F(u_h^-)+F(u_h^+)\right) \), \([u_h]_e=u_h^+-u_h^-\), and \(\lambda _e\) is an estimate of the largest absolute eigenvalue of the Jacobian \(\frac{\partial F(u_h)}{\partial u_h}\) in the neighbourhood of edge e. This flux is known as the Lax-Friedrichs flux. In this paper we only consider the Lax-Friedrichs flux, but other monotone fluxes are also possible. At the boundaries of the domain, \(x_L\) and \(x_R\), we define the average and jump of a test functions \(v_h\) as
For scalar problems, we use the inflow boundary condition \(u(x,t)=g(t), x=x_L\) or \(x_R\). To specify the corresponding values \(u_h\) on \(x_L\) and \(x_R\), we set
Here \(g_h\) is the approximation of the given boundary data g at the inflow boundary. For the approximation of boundary conditions in systems see [5].
To derive the weak formulation above we multiply Eq. (2.1) by a test function \(v\in {\mathcal {V}}_h^r\), integrate by parts, and enforce the interface condition (2.3). Since \(v \in {\mathcal {V}}_h^r\) is discontinuous across interior edges, integration by parts results in jump terms \([F(u)v]_e\) across interior edges. Since \([u]_e=0\) these terms can be rewritten as
Since the stabilization terms \(J_s(u,v)\) vanish when u is a sufficiently smooth exact solution, the proposed formulation is consistent.
Taking test function \(v_h=1\) in the scheme (3.9), we have
Clearly, the proposed scheme is conservative only if
If this condition is satisfied it follows that
We note that our scheme is locally conservative on the elements that along with their neighbors do not involve the interface, like \(\{I_j\}_{j=1}^{J-2}\) and \(\{I_{j}\}_{j=J+2}^{N}\) in Fig. 2. The method is also locally conservative in subintervals containing elements which need to be stabilized, like the subinterval \(K_1=(I_{J-1}\cup I_{J})\cap \Omega _1\) and \(K_2=(I_{J}\cup I_{J+1})\cap \Omega _2\) in Fig. 2. For the scheme to be stable the penalty parameters need to satisfy additional requirements. See Theorem 1 for the scalar problem and Theorem 3 for the acoustic system, for choices that yield a conservative and energy stable interface treatment.
3.3 Stability Analysis
Here we will use the energy method to investigate how requiring stability of the proposed semi-discrete scheme will restrict the choice of the penalty parameters \(\lambda _1\) and \(\lambda _2\) beyond (3.20).
3.3.1 The Scalar Problem
We consider the linear scalar problem, i.e.
where \(a_1,a_2\) are non-zero constants with the same sign. In the proposed scheme we use \(\lambda _e=|a_i|\) in Eq. (3.15).
Let \(v_h=(u_{h,1},0)\) and \(v_h=(0, u_{h,2})\) in (3.9), integrate \((a_iu_{h,i},(u_{h,i})_x)_{\Omega _i}\), and take into account discontinuities of \(u_{h,i}\) across the edges to get
By \(\frac{a}{2}[u_{h}^2]_e=a\{ u_h \}_e[u_{h}]_e\) and the definition of the flux, Eq. (3.15), we have
Introducing a weighted energy \(E_\eta \), where \(\eta \) is a positive constant,
we have from (3.23), (3.24) with \(\lambda _e=|a_i|\) for \(e\in {\mathcal {E}}_{h,i}\) that
Here
If S is positive semi-definite, then the energy is non-increasing with time. In “Appendix A”, Lemma 1 states conditions for S to be positive semi-definite. We summarize the results for scalar problems in the following theorem.
Theorem 1
Consider the discontinuous cut finite element method (3.9) for the scalar problem (2.1)–(2.3) with F(u) as in (3.22) with \(x_\Gamma '(t)=0\) and stabilization parameters \(\gamma _A\ge 0, \gamma _M\ge 0\). For penalty parameters \(\lambda _1\) and \(\lambda _2\), that satisfy (3.20) and
the method is conservative and there exists a positive \(\eta \) such that the energy defined in (3.25) does not grow with time.
Remark 1
The stability results in Theorem 1 are derived assuming a conservative interface treatment with \(\lambda _1\) and \(\lambda _2\) satisfying (3.20). Without the conservation condition (3.20), less restrictive stability results are possible. See Lemma 2 in Appendix A. In the right panel of Figs. 4 and 16, we show that when the penalty parameters satisfy a stability condition but don’t satisfy the conservation condition (3.20), the scheme produces large conservation errors.
Based on the stability result we can derive an a priori estimate for the scalar problems, if it has a sufficiently smooth solution.
Theorem 2
Let \(u(x,t)=u_i(x,t)\) for \(x \in \Omega _i\), be the solution to problem (2.1)–(2.3) with F(u) as in (3.22) and \(x_\Gamma '(t)=0\). Assume \(u_i\) is sufficiently smooth: \(u_i, \,(u_i)_{t} \in L^{\infty }\left( [0,T] ; H^{r+1}({\Omega _i}) \right) \). Let \(u_h=(u_{h,1}, u_{h,2}) \) with \(u_{h,i}(\cdot ,t)\in {\mathcal {V}}_{h,i}^r\) be the solution to the discontinuous cut finite element scheme (3.9). Then the following a priori error estimate hold
where C is a constant which is independent of the mesh parameter h and how the interface cuts the mesh.
The proof of this theorem is given in “Appendix B”.
3.3.2 The Acoustic System
We consider the acoustic system [24]
with a stationary interface at \(x=x_\Gamma \), i.e., \(x'_\Gamma (t)=0\). Here, u(x, t) is the velocity, p(x, t) is the pressure, \(\rho (x)\) is the density, and c(x) is the sound speed. The density and the sound speed are piecewise constant
By introducing \(q=\frac{p}{\rho c^2}\) and \(m=\rho u\), denoting strain and momentum, we can write problem (3.29) in the conservative form as in Eqs. (2.1)–(2.3),
with
where
The components of U, m and q, are the conserved quantities, and are referred to as the conservative variables, while u and p are called the primitive variables.
We begin with showing an energy estimate in the continuous setting for the physically motivated energy
Since B is symmetric
Introduce \(U_t=-(AU)_x\) and integrate by parts to get
Note that \(B_iA_i\) is symmetric and therefore the bulk terms vanish, and only terms at the physical boundary, collected in ET, and terms at the interface, collected in IT, remain. We can write the contributions at the interface as
The last equality follows using again that \(B_iA_i\) is symmetric and the interface condition (3.32), i.e., \(U_{1}^TA_1^T=U_{2}^TA_2^T\). Note that
Thus,
and therefore the interface term vanishes, \(IT=0\). We conclude that the interface term gives no contribution to energy growth or decay.
Next we study the stability of the proposed discontinuous CutFEM (3.9) for the system (3.30)–(3.34). Guided by the energy result for the continuous system we define
and take \(v_h=BU_h\) in (3.9) and get
The bulk term can be integrated by parts and therefore only interface and edge terms remain in the right hand side of (3.40). Contribution from element edges when the Lax-Friedrichs flux is used are well-known, and therefore we only analyze the terms from the interface at \(x_\Gamma \),
Here \({\mathbf {U}}_{h,1},{\mathbf {U}}_{h,2}\) denote the numerical solution values at the interface \(x_\Gamma \). We can write
Note that by (3.38) the matrix \({\mathbf {S}}\) is symmetric. To ensure that the interface terms do not cause energy growth, \({\mathbf {S}}\) needs to be positive semi-definite. The only possible choice for the penalty parameters that also satisfies the conservation condition (3.20) is
which implies \({\mathbf {S}}=0\) and correspondingly \(IT=0\). This proves the following theorem.
Theorem 3
Consider the semi-discrete discontinuous cut finite element method (3.9) for the acoustic system (3.30) in conservative form, with penalty parameters
The interface treatment is conservative, and does not contribute to temporal growth or decay of the energy (3.39).
3.4 Numerical Results
We use the proposed discontinuous CutFEM (3.9) to solve the scalar advection Eq. (3.22) and the acoustic system (3.30). The background mesh on the domain \(\Omega \) is uniform with mesh size \(h=|\Omega |/N\), where N is the number of elements. In the numerical simulations, we use \(\gamma _M=0.25\) and \(\gamma _A=0.75\).
To discretize in time we use the explicit third order TVD Runge–Kutta method [11] when the polynomial degree in space \(r\le 2\) (see (3.4)), i.e.,
Here \(u_t=L(u,g,t)\) is the semi-discrete problem, \(\Delta t =t^{n+1}-t^n\) is the time step and \(g_h^n, g_h^{n,1},g_h^{n,2}\) denote the approximations of the boundary condition g(t) at different time stages. The inflow information g is imposed via Taylor expansion of g(t) to avoid order reduction with \(g_h^n=g(t^n)\), \(g_h^{n,1}=g(t^n)+\Delta t g'(t^n)\) and \(g_h^{n,2}=g(t^n)+\frac{\Delta t }{2} g'(t^n) +\frac{(\Delta t )^2}{4}g''(t^n)\), for details see [33]. For the approximation of boundary conditions in systems see [5]. When \(r=3\) we instead use the fourth order five stages Runge–Kutta method [11]. The time step is taken to be \(\Delta t =\frac{Ch}{\max _\Omega \{|F'(u_h)|\}}\) with given Courant number \(C=0.3,0.2,0.1\), for \(r=1,2,3\), respectively. Here, \(\max _\Omega \{|F'(u_h)|\}\) represents the largest absolute value of the eigenvalues of the Jacobian \( \frac{\partial F( u_h)}{\partial u_h}\) on the domain \(\Omega \). Next, we will demonstrate the accuracy and conservation of the proposed method by solving test problems. We will measure the error in the following norms
Here \(||\cdot ||^p_{\Omega _i}=\int _{\Omega _i} |\cdot |^pdx\) denotes the usual \(L^p\)-norms in domain \(\Omega _i\). The error in the \(L^\infty \)-norm is measured as the maximum value of \(|u-u_h|\) on the quadrature points of each element, the end points of each elements and the interface point. We note that the quadrature points of the integration in the cut element in each domain \(\Omega _i\) are taken over the part of the background element, which is in the domain \(\Omega _i\).
3.4.1 Scalar Problem: Accuracy
We consider problem (3.22) with \(x_L=-1\), \(x_R=1\), a stationary interface at \(x_\Gamma =10^{-4}\), parameters \(a_1=2,a_2=1\), initial condition
and inflow boundary condition \(u(x_L,t)=g(t)=\sin (2\pi (-1-2t))\). Note that \(u_2(x_\Gamma ,0)=2u_1(x_\Gamma ,0)\) so the initial condition satisfies the interface condition (2.3). The exact solution to this problem is
We solve up to time \(t=1\) with different mesh sizes and polynomial spaces \(r=1, 2, 3\) (i.e., \(P^1,P^2,P^3\)). We choose the penalty parameters to be \(\lambda _1=0.1\) and \(\lambda _2=\lambda _1-1\). Errors in the \(L^2\)- and \(L^\infty \)-norm and the corresponding convergence orders using the proposed method are shown in the left part of Table 1. For comparison, we also show results using the standard DG method in the right part of Table 1. For the standard DG method we use the same numerical fluxes but generate the mesh so that the interface \(x_\Gamma \) is located on an element edge. We do this by using uniform meshes with \(N=N_1+N_2\) elements and mesh size \(h_1=|\Omega _1|/N_1,h_2=|\Omega _2|/N_2\) for \(\Omega _1\) and \(\Omega _2\), respectively. Here \(N_1,N_2\) are chosen such that \(h_1,h_2\) are close to the mesh size \(h=|\Omega |/N\) we use in the CutFEM. From the numerical results in Table 1, we observe that the proposed method and the standard DG method have optimal order of accuracy and that the magnitude of the errors in both \(L^2\)- and \(L^\infty \)-norm are similar for the two methods. We have also tested other choices for the parameters \(a_1\) and \(a_2\) and observed similar results as shown here.
3.4.2 Scalar Problem: Conservation
With this example we test how well quantities are conserved, and how errors and the condition number of the mass matrix depend on the cut size. This example is used in [19] and is similar to Example 1.1, but with less smooth initial data. The initial condition and inflow boundary conditions are \(f(x)=0\) and \(u(x_L,t)=g(t)=\sin (4 \pi (-1+3 t))\), respectively. The inflow condition is weakly imposed by the upwind flux information at the inflow boundary. The exact solution is
We use the proposed method with \(r=2\), i.e. quadratic polynomials and a uniform background mesh. The interface is at \(x_\Gamma =10^{-4}\). In Fig. 3, we show the numerical solution on the background mesh consisting of 400 elements and the exact solution at time \(t=0.5\) and \(t=1\). Our results compare well with those in [19].
In Fig. 4, we show the conservation error
Here, \(N_t\) is the number of time steps from time 0 to t. \(u_h^n, u_h^{n,1}, u_h^{n,2}\) are the approximations of the solution at time \(t^n,t^{n}+\Delta t ,t^n+\Delta t /2\), respectively. The inflow information introduced in each time step is equal to \(\frac{\Delta t }{6}\left( g_h^{n}+4g_h^{n,2}+g_h^{n,1}\right) \), which is an approximation of the integral \(\int _{t^n}^{t^{n+1}}g(t)dt\). The error e(t) takes into account the approximation of the inflow boundary condition. If instead the exact integral at the inflow boundary is used there would be a contribution to the conserved quantity of the order \(\Delta t^4\) corresponding to the integration error. The conservation error e (Fig. 4, left panel) with \(\lambda _1,\lambda _2\) satisfying condition (3.20), is of the order of machine epsilon and remains on the same level also for other refinements and for other polynomial degrees than \(r=2\). This shows that the interface treatment of the proposed method is conservative. We also show the conservation error when the parameters \(\lambda _1=0.25\), \(\lambda _2=-0.25\), which do not satisfy the conservation condition (3.20), see the right panel of Fig. 4. We observe that the scheme in this case is not conservative and has a large error, which decrease with mesh refinement but still is large compared to machine error.
Next we investigate how the error depends on the position of the interface relative the background mesh. We use linear polynomials in space, \(h=1/200\) and \(x_\Gamma =\alpha h\), with \(\alpha \) varying between 0 and 1. Note that there is a mesh node at \(x=0 \) so that \(\alpha \) is the relative cut size. In Fig. 5, we plot the \(L^1\)-, \(L^2\)- and \(L^\infty \)-errors at t=1 as a function of \(\alpha \). We have scaled the \(L^\infty \)-error, by dividing the error with 10, to show all errors in one figure. We observe that the \(L^1-\) and \(L^2-\)errors are independent of how the interface cuts the background mesh and the \(L^\infty \)-error does not change much either.
We have also checked the conditioning of the mass matrix in the same setting as above, for several element types. The condition numbers as a function of the relative cut size for piecewise linear, quadratic and cubic polynomials are shown in Fig. 6. We see that the stabilization controls the condition number so that it stays bounded and on the same level, independently of how the interface cuts the background mesh.
3.4.3 The Acoustic System
We now use the proposed CutFEM method (3.9) with penalty parameters \(\lambda _1=0.5\) and \(\lambda _2=-0.5\) to solve the acoustic system in conservation form (3.30). We consider the same example as in [24]. The domain is \(\Omega =[0,300]\), a long fluid medium with an interface at \(x_\Gamma =96.3\), and with physical parameters
The initial condition is
Here, \(f_{0}(\xi )\) is a spatially bounded sinusoidal function
where the central frequency \(f_{c}=50\,\mathrm {Hz}\), \(\omega _c=2\pi f_c\), and \(t_{0}=51\,\mathrm {ms}\). The initial values of the conservative variables m and q are shown to the left in Fig. 7. When the wave reaches the interface, the acoustic wave is transmitted and reflected.
We simulate this problem up to time \(t=39\,\mathrm {ms}\) using different mesh sizes and polynomial spaces. We note that the waves do not reach the boundaries up to time \(t=39\,\mathrm {ms}\) thus the zero boundary condition is used in our implementation. In the computation the conservative variables are used, but in Table 2, we give the \(L^2\)-and \(L^\infty \)-errors and the corresponding order of accuracy for the primitive variables. We observe that the proposed method has optimal order of accuracy also for the acoustic problem. In Fig. 7, we show the initial values and the numerical solution at time \(t=39\) ms. We see that our scheme can simulate this problem very well and capture the reflected wave and the transmitted wave. In Fig. 8, we plot the conservation errors of \(m_h\) and \(q_h\) with respect to time t. The conservation errors have small oscillations after the wave arrives at the interface. But all errors are of the order of machine epsilon which demonstrates that the proposed method is conservative also for the acoustic problem.
4 Moving Interface
We now consider the scalar hyperbolic problem (2.1)–(2.3) for \(t\in [0,T]\), with flux
and a moving interface with \(x_\Gamma '\ne 0\). We assume \(a_1-x_\Gamma '(t)\), \(a_2-x_\Gamma '(t)\) are non-zero, and have the same sign at any fixed time t. In the following we define a space-time CutFEM with discontinuous elements in both space and time following [9, 15, 32]. We emphasise that we do not explicitly construct a space-time domain in \(R^{d+1}\) as is done in for example [29]. Here d is the space dimension. The method we propose here is based on approximating the space-time integrals in the weak form by using first a quadrature rule in time. The implementation of the space-time unfitted finite element method we propose is straightforward and simple starting from an implementation of CutFEM for a stationary interface.
4.1 Mesh and Spaces
As before, let \({\mathcal {T}}_h\) be a quasi-uniform partition of the domain \(\Omega \) generated independently of the position of the interface and let \({\mathcal {E}}_h\) denote the set containing the edges in this mesh. On this time independent mesh, that we refer to as the background mesh, we define the polynomial space \(\widetilde{{\mathcal {V}}_h^{r_s}}\) as in (3.4). For time \(t\in [0, T]\) define \({\mathcal {T}}_{h,i}(t)\) as in (3.1) and \({\mathcal {E}}_{h,i}(t)\) as in (3.2). These sets are now time dependent since the interface is moving and \(\Omega _i\) changes with time. We also define the set
We discrete the interval [0, T] with \(0=t_0<t_1<t_2<\cdots <t_N=T\). During the time interval \(I^n=[t^{n-1},t^n]\), the active meshes \({\mathcal {T}}_{h,1}^n\) and \({\mathcal {T}}_{h,2}^n\), contain those elements in the background mesh that create the following subdomains \({\mathcal {N}}_{h,1}^n\) and \({\mathcal {N}}_{h,2}^n\), respectively
We let \({\mathcal {E}}_{h,i}^n\) denote the set of interior edges in the active mesh \({\mathcal {T}}_{h,i}^n\), for \(i=1,2\). We also define the set of elements in the background mesh that are cut by the interface during the interval \(I^n\)
Let \({\mathcal {F}}_{h,i}^n\) contain those edges in the mesh \({\mathcal {T}}_{h,\Gamma }^n\) that also belong to \({\mathcal {E}}_{h,i}^n\). Note that the set \({\mathcal {F}}_{h,i}^n\) does not change in the time interval \(I^n\). For an illustration see Fig. 9.
In the proposed space-time method, we use piecewise polynomial spaces both in time and space. On the space-time slab \(I^n\times {\mathcal {N}}_{h,i}^n\), \(i=1,2\) we define the space
Here \(r=(r_s, r_t)\), where \(r_s\) and \(r_t\) are the degree of the polynomials used in space and time, respectively. Define the function space \({\mathcal {V}}_{h}^{n,r}\) as
For example, for piecewise linear elements in time and space, \(r=(1,1)\), a function \(v_h\in {\mathcal {V}}_{h}^{n,r}\) can be expressed as \(v_h=(v_{h,1},v_{h,2})\) with
Here, \(v_{ikj}\) are the coefficients of the basis functions: \(1, \frac{x-x_{k}}{h/ 2}, \frac{t-t^{n-1}}{\Delta t^n}, \frac{t-t^{n-1}}{\Delta t^n}\frac{x-x_{k}}{h/ 2}\) and \(\Delta t^n=t^{n}-t^{n-1}\) denotes the time step of interval \(I^n\). Functions in \({\mathcal {V}}_{h}^{n,r}\) are discontinuous both in space and time. We define the jump and average of a function v at x as in (3.6) and (3.7) and the jump at a time \(t^{n}\) as
When a function is single valued at \(t^n\) we will use the notation \(v^n(\cdot )=v(\cdot ,t^n)\).
4.2 Weak Formulation
We now present a weak formulation where space and time are treated similarly. For each time interval \(I^n\), given \(u_{h}^{n-1,-}\), find \(u_h \in {\mathcal {V}}_{h}^{n,r}\) such that for \(\forall v_h \in {\mathcal {V}}_{h}^{n,r}\)
Here \(u_h^{n-1,-}\) is the solution from the previous space-time slab (with \(u_h^{0,-}\) given by the initial condition) and
The flux \({\widehat{F}}_e(u_h)\) is defined as in (3.15) with \(\lambda _e=|a_i|\) for \(e\in {\mathcal {E}}_{h,i}\), and the penalty parameter \(\lambda \) is piecewise constant, see (3.14), and will be chosen such that the scheme is stable and conservative (see Theorem 4). The stabilization term \(J_0(u_h,v_h)\) is defined as in (3.13), but with the set \({\mathcal {F}}_{h,i}^n\) instead of \({\mathcal {F}}_{h,i}(t)\). Since the set \({\mathcal {F}}_{h,i}^n\) does not change in the time interval \(I^n\), and \(u_h\) and \(v_h\) are polynomials in time, the integral \(\int _{I^n} J_0(u_h,v_h) \ dt\), can be computed analytically. The stabilization term is introduced to control the condition number of the resulting system matrix independently of how the geometry cuts through the background mesh, and defines an extension of \(u_h\) to the entire active mesh which is needed when the space-time integrals in the weak form are approximated by quadratures rules, see Sect. 4.4.
To see that the weak formulation above is consistent, we multiply Eq. (2.1) by a test function \(v\in V_h^{n,r}\), integrate in both space and time and impose the interface condition (2.3) weakly. Integration by parts in space and using (3.18), together with integration by parts in time, yields
By adding \(([u]^{n-1},v^{n-1})_{\Omega _1(t^{n-1})\cup \Omega _2(t^{n-1})}\), using \([u]^{n}=0\) at all time \(t=t^{n}\), and using the identity \(u_tv=(uv)_t-uv_t\) we get the proposed weak formulation.
Choosing the test function \(v_h=1\) in (4.7) we have
With \(\lambda _2-\lambda _1+1=0\), as in (3.20), the proposed space-time CutFEM is conservative.
Remark 2
Note that we can also consider the space-time formulation without integration by parts in time. Thus, given \(u_h^{n-1,-}\), find \(u_h \in {\mathcal {V}}_{h}^{n,r}\) such that
for all \(v_h \in {\mathcal {V}}_{h}^{n,r}\). This weak formulation is also consistent. With \(v_h=1\) we get
If (4.9) (with \(v=1\)) holds for the discrete function \(u_h\), that is if
it follows that the scheme (4.11) is conservative when (3.20) holds, i.e. \(\lambda _2-\lambda _1=-1\). However, in the fully discrete scheme we use a quadrature rule to approximate the time integral. Since the domain is time-dependent, (4.13) can not hold exactly. Therefore a method based on the weak formulation (4.11) may not be exactly conservative with a conservation error depending on the accuracy of the quadrature rule. This is demonstrated in the numerical examples.
4.3 Stability Analysis of the Semi-discrete Scheme
We now consider the energy stability of the proposed semi-discrete space-time CutFEM (4.7). Similar to the scalar advection problem (3.22) with a stationary interface, we consider the weighted energy with \(\eta >0\), i.e.,
For convenience, we will use the notation \(\Omega _1^n\), \(\Omega _2^n\) for \(\Omega _1(t^n)\), \(\Omega _2(t^n)\), respectively. Choosing \(v_h=(u_{h,1},\eta u_{h,2})\) in (4.7) we have
Integrating the last two terms in the left hand side of Eq. (4.15) we get
As in the analysis in Sect. 3.3, using the definition of \(a_h(\cdot ,\cdot )\), and integrating the term \((au_{h,i},(u_{h,i})_x)_{\Omega _i(t)}\), taking into account that \(u_{h,i}\) is discontinuous across the edges, using that \(\frac{a}{2}[u_{h}^2]_e=a\{ u_h \}_e[u_{h}]_e\), and the definition of \({\widehat{F}}_e\) (3.15), we have
where \(v_h=(u_{h,1},\eta u_{h,2})\) and
Collecting the results in (4.15)–(4.19) and letting \(\widetilde{a_1}=a_1-x_\Gamma '\) and \(\widetilde{a_2}=a_2-x_\Gamma '\) yields
with
In (4.18) \(ET\ge 0\) and will not contribute to energy growth. Hence, if the matrix S is positive semi-definite, we obtain energy stability. Note that the matrix S in (4.21) is of the same form as in the case of a stationary interface, see (3.27), but with \(\widetilde{a_i}\) instead of \(a_i\). Thus, by Lemma 1 we have the following theorem.
Theorem 4
Consider the problem (2.1)–(2.3) with the flux function (4.1), and a moving interface at \(x_\Gamma (t)\) such that \(a_1-x_\Gamma '(t)\) and \(a_2-x_\Gamma '(t)\) have equal, non-zero and constant sign for all time t. With penalty parameters \(\lambda _1\) and \(\lambda _2\) satisfying (3.20) and
the space-time CutFEM (4.7) is conservative and there exists a positive \(\eta \) such that the energy defined in (4.14) does not grow with time.
4.4 Quadrature in Time
As in [9, 15, 32], we approximate the space-time integrals in the variational formulation using quadrature rules, first in time and then in space. Note that using a quadrature rule in time we have
Here, \(\omega _{q}^{n}\) are the quadrature weights, \(t_{q}^{n}\), \(q=1, \ldots , n_{q}\) are quadrature points in the interval \(I^n\), and \(n_{q}\) is the number of quadrature points.
In the numerical examples, both the trapezoidal rule and Simpson’s rule are used. In the time interval \(I^n=[t^{n-1},t^{n}]\), the trapezoidal rule is given by two quadrature points, \(t_{1}^{n}=t^{n-1}\) and \(t_{2}^{n}=t^{n},\) and weights \(\omega _{1}^{n}=\omega _{2}^{n}=\frac{\Delta t^{n}}{2}\). In Simpson’s quadrature rule, the three quadrature points are \(t_{1}^{n}=t^{n-1},\) \(t_{2}^{n}=\frac{t^{n-1}+t^{n}}{2}\), and \(t_{3}^{n}=t^{n}\), and the weights are \(\omega _{1}^{n}=\omega _{3}^{n}=\frac{\Delta t^{n}}{6}\) and \(\omega _{2}^{n}=\frac{4 \Delta t^{n}}{6}\).
4.5 Numerical Examples with Moving Interfaces
We use the proposed space-time cut finite element method (4.7) to solve problem (2.1)–(2.3) with flux (4.1) and an moving interface \(x_\Gamma (t)\).
4.5.1 Scalar Problem with a Moving Interface: Accuracy
We use \(a_1=2\), \(a_2=1\), \(x_\Gamma (0)=10^{-4}\), \(x'_\Gamma =0.111\), and the initial value
Here \(\beta =\frac{a_1-x_\Gamma '}{a_2-x_\Gamma '}\). This initial condition satisfies the interface condition (2.3). The inflow boundary condition \(g(t)=u(x_L,t)=\sin (2\pi (x_L-2t))\) is used. The outflow boundary condition is used on the right boundary. The exact solution is
We use the space-time CutFEM (4.7) with discontinuous piecewise linear polynomials in time and discontinuous piecewise linear and quadratic polynomials in space. For the time integration we use Simpson’s rule. The time step is \(\Delta t=h/12\) when linear elements are used in space, that is \(r=(1,1)\), and \(\Delta t=0.005h\) when quadratic polynomials are used in space, that is \(r=(2,1)\). In the latter case the time step is small enough so that the error is not dominated by the error in the time discretization. We use \(\gamma _A=0.75\), \(\lambda _1=0\), and \(\lambda _2=\lambda _1-1\). We solve the problem up to time \(t=0.1\). In Table 3, we show the \(L^2\)-and \(L^\infty \)-errors for different mesh sizes \(h=2/N\) and we observe that the space-time CutFEM (4.7) has the optimal order of accuracy for this moving interface problem. Note that we use a uniform background mesh with mesh size h and the interface cuts the mesh arbitrarily as it evolves in time.
4.5.2 Scalar Problem with a Moving Interface: Conservation
We consider the same example as in [19] but with a moving interface
where \(x_\Gamma (0)=-0.499\). Let \(a_1=2\), \(a_2=1\), \(f(x)=0\) on the domain \(\Omega =[-1,1]\). The inflow boundary condition \(g(t)=\sin (4 \pi (-1+3 t))\) is used on the left boundary. We solve the problem up to time \(t=1\) when the outflow information is still zero. The space-time CutFEM is used to solve the problem with parameters \(\lambda _1=0\) and \(\lambda _2=\lambda _1-1\), a uniform background mesh with 400 elements, and linear elements both in time and space, \(r=(1,1)\). Simpson’s rule is used for the time integration with Courant number \(C=1/6\). We measure the conservation error as in (3.48), but replacing \(u_h^n\) by \(u_h^{n,-}\) and noting that \(\Omega =\Omega _1(t)\cup \Omega _2(t)\).
In the left panel of Fig. 10, the numerical solution \(u_h\) is shown and we can observe that the proposed space-time CutFEM can simulate the problem with a moving interface well. We note that the solution has a weak discontinuity and it is not surprising that small oscillations appear. In the right side of Fig. 10, we show the conservation error e(t) for the numerical solution \(u_h\). We see that the proposed space-time method is conservative. In Fig. 11, we also show the numerical solution \(u_h\) and the conservation error e(t) using the variational formulation (4.11). We observe that this scheme also simulates this problem well, but the conservation error is significantly larger when the weak formulation (4.11) is used.
4.6 A Locally Implicit Method
We now combine the proposed space-time CutFEM with an explicit CutFEM. The space-time method is active in a neighbourhood of the interface and the explicit CutFEM method is applied away from the interface. For simplicity, we only consider the case \(a_1-x_\Gamma '>0\), \(a_2-x_\Gamma '>0\), and piecewise linear polynomials both in space and time.
Recall the sets \({\mathcal {F}}_{h,i}^n\), \(i=1,2\) from Sect. 4.1. We now let \(\Omega _{l}\) be the subdomain containing the set of elements that have an edge in \(\cup _{i} {\mathcal {F}}_{h,i}^n\) and denote by \(\Omega _{i, E}\) the remaining part of \(\Omega _{i}\), i.e, the elements in \(\Omega _i\) that are not in \(\Omega _{l}\). Note that \(\Omega _{i,E} \subset \Omega _i(t)\) for all \(t\in I^n\) and that no elements in \(\Omega _{i,E}\) are cut by the interface during the time interval \(I^n\). In Fig. 12 we illustrate how the space-time domain \(I^n\times \Omega \) can be partitioned into the three parts, \(I^n \times \Omega _l\), \(I^n \times \Omega _{1,E}\), and \(I^n \times \Omega _{2,E}\).
In regions away from the interface we want to apply a standard explicit DG method. Recall the mesh \({\mathcal {T}}_{h}\) and the piecewise polynomial space \(\widetilde{{\mathcal {V}}_h^1}\) defined in Sect. 3.1. We define the following meshes and spaces restricted to \(\Omega _{i,E}\),
and
We now formulate a standard DG method with a two stage second order Runge–Kutta method: given \({\hat{u}}_{h,i}^{n-1}\in {\mathcal {V}}_{h,i}\) find \({\hat{u}}_{h,i}^{(1)} \in {\mathcal {V}}_{h,i}\) and \({\hat{u}}_{h,i}^{n} \in {\mathcal {V}}_{h,i}\) such that
with
and \({\widehat{F}}_e({\hat{u}}_{h,i})\) as in (3.15) at interior edges with \(\lambda _e=|a_i|\) for \(e\in {\mathcal {E}}_{h,i}\), \(i=1,2\).
In the space-time slab \(I^n \times \Omega _l\) we use the proposed space-time method. The active meshes and the spaces are defined exactly as in Sect. 4.1, but with \({\mathcal {T}}_{h,i}(t)\), \(i=1,2\) restricted to \(\Omega _l\). Thus, given \(u_h^{n-1,-}\), the solution from the previous space-time slab, find \(u_h \in {\mathcal {V}}_{h}^{n,r}\) such that
with
and \(\lambda \) as in Theorem 4. We choose \(r=(1,1)\).
Taking the test functions to be one in both schemes, i.e., \({\hat{v}}_h=1\), and \(v_h=1\) and assuming for simplicity that the contributions at the physical boundary \(x=x_L\) and \(x=x_R\) vanish we have
where (4.34) is obtained by multiplying (4.29) with 1/2 and adding to Eq. (4.30). Thus, for the locally implicit scheme to be conservative, we need the numerical fluxes at the edges \(e_i\), between \(\Omega _{i,E}\) and \(\Omega _l\) (see Fig. 12), to satisfy
Taking into account boundary conditions, the flux’s direction, as well as condition (4.36), we choose the fluxes at the boundaries and edges \(e_1,e_2\) as
The method can straightforwardly be used in a computation by time-stepping first in \(\Omega _{1,E}\), then in \(\Omega _l\), and finally in \(\Omega _{2,E}\). The first and last steps are explicit, while the middle step is implicit.
4.6.1 Numerical Examples
We now test the accuracy and conservation of the locally implicit method. Consider first the same example as in Sect. 4.5.1 with a time step size \(\Delta t^n=\Delta t=h/12\). Table 4 shows the expected second order accuracy in the \(L^2\)-norm. In \(L^\infty \)-norm convergence is slower. We have also solved this problem on finer meshes, \(N=1280,2560,5120\), and we observe that the convergence is slower than the optimal second order convergence. When a smaller time step is used the degradation of convergence rate occurs at a finer grid, indicating that the problem is related to the discretization of time. Since both the fully implicit and the standard method work well, we conclude that the problem comes from the coupling.
Next we solve the example in Sect. 4.5.2 and simulate this problem up to time \(t=1\) with \(N=400\) uniform elements in the background mesh, and time step \(\Delta t^n=h/12\). We show the numerical solution in the left of Fig. 13. We see that the locally implicit scheme can simulate this problem well and captures the discontinuity at the interface. We measure the conservation error by e(t) using the inflow information based on the numerical integration used in the scheme. We show the conservation error in the right of Fig. 13. The conservation error is of the order of machine epsilon.
5 Extension to Two Space Dimensions
Let \(\Omega \) be a bounded convex domain in \({\mathbb {R}}^2\), with polygonal boundary \(\partial \Omega \) and let \(\Gamma \) be a smooth internal boundary that separates the domain \(\Omega \) into two subdomains \(\Omega _1\) and \(\Omega _2\) such that \({\bar{\Omega }} = {\bar{\Omega }}_1 \cup {\bar{\Omega }}_2\). Consider the hyperbolic conservation law
together with suitable boundary conditions. Here \({\mathbf {n}}\) is the unit normal vector of \(\Gamma \), \({\mathbf {F}}(u)={\mathbf {a}} u\), \({\mathbf {a}}={\mathbf {a}}_1\) in \(\Omega _1\) and \({\mathbf {a}}={\mathbf {a}}_2\) in \(\Omega _2\). Only a stationary interface is considered.
5.1 The Finite Element Method
Let \({\mathcal {T}}_h\) be a quasi-uniform simplicial mesh of the domain \(\Omega \) generated independently of the position of the interface \(\Gamma \) and let \({\widetilde{{\mathcal {V}}_h^r}}\) be the finite element space on \({\mathcal {T}}_h\) consisting of piecewise polynomials of degree at most r. We define the active meshes \({\mathcal {T}}_{h,i}\), the set of edges in each active mesh \({\mathcal {E}}_{h,i}\), and the set \({\mathcal {F}}_{h,i}\) where the stabilization is applied, \(i=1,2\), as in Sect. 3.1 but now \(I_j\) denotes a triangle in \({\mathcal {T}}_h\). The active finite element spaces are
and we let \({\mathcal {V}}_h^r={\mathcal {V}}_{h,1}^r \times {\mathcal {V}}_{h,2}^r\). Given the initial condition we find \(u_h(0)=u_h(\cdot ,0) \in {\mathcal {V}}_h^r\) such that
We propose the following weak formulation: Find \(u_h(\cdot , t) \in {\mathcal {V}}_h^r\) such that for almost all \(t \in (0,T]\)
for \(\forall v_h \in {\mathcal {V}}_h^r\). Here
and
5.2 Numerical Example
Let \(\Omega =[x_{\min }, x_{\max }] \times [y_{\min }, y_{\max }]\) and the interface \(\Gamma \) be the line \(x+y=c_0\) where \(c_0 \) is a constant. The subdomain \(\Omega _1=\{ (x,y) \in \Omega : x+y\le c_0\}\), \(\Omega _2=\{ (x,y) \in \Omega : x+y\ge c_0\}\). We choose \(x_{\min }=y_{\min }=-1\), \(x_{\max }=y_{\max }=1\), and \(c_0 > x_{\max }+y_{\min }\). The unit normal to \(\Gamma \) is \({\mathbf {n}}=\frac{1}{\sqrt{2}}(1,1)\) and the time step is chosen as \(\Delta t = \frac{0.5h}{ (2r+1)\max _\Omega (|{\mathbf {a}}|)}\) . The boundary conditions are
5.2.1 Convergence Study
Let \({\mathbf {a}}_1=(3,1)\) and \({\mathbf {a}}_2=(2,1)\) and set \(c_0=0.5\). A solution to Eq. (5.1) is
and with \(g = u_1\) it satisfies the boundary conditions. Note that on the interface, \(x+y=c_0\), we have \(u_1=\sin (\pi (c_0-4t))\) and \(u_2=\frac{4}{3}\sin (4/3\pi (3/4c_0-3t))\). Thus, the solution given by Eqs. (5.12)–(5.13) satisfies the interface condition (5.3).
We solve the problem on a uniform mesh until \(t=1\) with a time step \(\Delta t =0.5 h / ((2r+1) \sqrt{10})\) for \(r=1,2\), (i.e. P1, P2 elements) and \(h = 2/N_x\), with \(N_x=20,40,80,160,300\). In Fig. 14 we show the \(L^2\)-error versus mesh size h. The convergence order of the method follows the optimal order \(r + 1\).
5.2.2 Conservation Study
Let \({\mathbf {a}}_1=(3,1)\) and \({\mathbf {a}}_2=(1,2)\) and set \(c_0=0.25\) and denote \({\mathcal {C}}\) the circle with center \((-0.3,-0.3)\) and radius 0.3. We consider the initial condition
and boundary data \(g=0\). We solve this problem using the proposed scheme with \(r=1\) on a uniform mesh where \(N_x = N_y = 200\) and a time step defined as above. We use two different sets of penalty parameters \(\lambda _1\) and \(\lambda _2\) where the first set satisfies the conservation condition (3.20) while the second set does not. In Fig. 15 we show the numerical solution at different time instances with \(\lambda _i\), \(i=1,2\) satisfying the conservation condition. The mass concentrated in the circle \({\mathcal {C}}\) is away from the interface initially, but evolves and passes through the interface. In Fig. 16 we show that when penalty parameters satisfy (3.20), the method is conservative. In contrast, if the conservation condition is not satisfied, the conservation error can be large and increases significantly when the part with a mass reaches and passes through the interface. Note that the exact solution is not smooth, but with condition (3.20) the method is still conservative.
6 Conclusion
We have presented two high order CutFEM based on the DG framework, applicable to conservation laws with discontinuous coefficients in the flux across stationary and moving interfaces, respectively. Our methods use standard DG-elements, but do not require the elements to be aligned with interfaces where coefficients are discontinuous. Ghost penalty stabilization is included in the weak forms to allow for similar time-step restrictions as in the standard DG approach. We have established discrete conservation, accuracy and stability for the methods. The proposed methods are described and analyzed in one-dimensional settings, but we also present computations in two dimensions for a stationary interface case, which demonstrates that the methodology can directly be extended to higher dimension.
The first method is based on a method of lines approach, and is an extension of the method in [10] to handle stationary material interfaces. The mass matrix appearing in the semi-discrete system is block-diagonal with most blocks as in the standard DG approach, but with one larger diagonal block, which couples the degrees of freedom associated with elements in the vicinity of the interface. The non-diagonal entries are caused partly by the contributions from integrals in the cut region, and partly by the ghost penalty stabilization, which couples elements cut by the interface with their neighbours. In one space dimension this coupling is not a big issue. However, one can produce a block-diagonal matrix with less coupling, in particular in higher dimension, by applying stabilization restrictively as proposed in [20]. Our focus in this work has been on the interface treatment and we developed CutFEM that are globally conservative. By changing the stabilization to the macro element stabilization in [20] our method would also preserve the local conservation property of the discontinuous Galerkin formulation on macro elements.
The second method is for moving interfaces. It is a space-time CutFEM based on discontinuous elements in both space and time. The method is stable and conservative, but implicit. In particular we have shown, numerically and analytically, that using a weak form based on integration by parts in time is essential for discrete conservation. Since we are using standard DG techniques as building blocks we believe that the extension of this method to multiple space dimensions is also straightforward. The implicit character of our space-time CutFEM is however a drawback. We demonstrate in a scalar case how a more efficient method can be achieved by using the space-time elements only locally in the vicinity of interfaces. This idea moves the difficulty from the non-aligned moving interface to a stationary aligned interface, where the space-time elements need to be coupled to standard method of lines DG methods while maintaining stability, accuracy and conservation.
In computations we have observed that the temporal accuracy is sometimes degraded in the coupled case, and more work is required to understand and avoid this degradation. We also believe that a more difficult extension is to generalize the coupling between space-time elements and the standard method-of lines DG methods to systems and to multi-dimensions, while maintaining stability, accuracy and conservation, and allowing for explicit time-stepping in large parts of the domain.
References
Brenner, S.C., Scott, L.R., Scott, L.R.: The mathematical theory of finite element methods, vol. 3. Springer, Berlin (2008)
Brezzi, F., Marini, L.D., Süli, E.: Discontinuous Galerkin methods for first-order hyperbolic problems. Math. Models Methods Appl. Sci. 14(12), 1893–1903 (2004)
Burman, E.: Ghost penalty. C.R. Math. 348(21–22), 1217–1220 (2010)
Burman, E., Hansbo, P.: Fictitious domain finite element methods using cut elements: II. A stabilized Nitsche method. Appl. Numer. Math. 62(4), 328–341 (2012)
Cockburn, B., Lin, S.Y., Shu, C.W.: TVB Runge–Kutta local projection discontinuous Galerkin finite element method for conservation laws III: One-dimensional systems. J. Comput. Phys. 84(1), 90–113 (1989)
Cockburn, B., Shu, C.W.: TVB Runge–Kutta local projection discontinuous Galerkin finite element method for conservation laws. II. General framework. Math. Comput. 52(186), 411–435 (1989)
Cockburn, B., Shu, C.W.: The Runge–Kutta discontinuous Galerkin method for conservation laws V: multidimensional systems. J. Comput. Phys. 141(2), 199–224 (1998)
Engwer, C., May, S., Nüßing, A., Streitbürger, F.: A stabilized dg cut cell method for discretizing the linear transport equation. SIAM J. Sci. Comput. 42(6), A3677–A3703 (2020)
Frachon, T., Zahedi, S.: A cut finite element method for incompressible two-phase Navier–Stokes flows. J. Comput. Phys. 384, 77–98 (2019)
Fu, P., Kreiss, G.: High order cut discontinuous Galerkin methods for hyperbolic conservation laws in one space dimension. SIAM J. Sci. Comput. 43(4), A2404–A2424 (2021)
Gottlieb, S., Shu, C.W., Tadmor, E.: Strong stability-preserving high-order time discretization methods. SIAM Rev. 43(1), 89–112 (2001)
Gürkan, C., Sticko, S., Massing, A.: Stabilized cut discontinuous Galerkin methods for advection-reaction problems. SIAM J. Sci. Comput. 42(5), A2620–A2654 (2020)
Hansbo, A., Hansbo, P., Larson, M.G.: A finite element method on composite grids based on Nitsche’s method. ESAIM Math. Model. Numer. Anal. 37(3), 495–514 (2003)
Hansbo, P., Larson, M.G., Zahedi, S.: A cut finite element method for a Stokes interface problem. Appl. Numer. Math. 85, 90–114 (2014)
Hansbo, P., Larson, M.G., Zahedi, S.: A cut finite element method for coupled bulk-surface problems on time-dependent domains. Comput. Methods Appl. Mech. Eng. 307, 96–116 (2016)
Hesthaven, J.S., Warburton, T.: Nodal Discontinuous Galerkin Methods: Algorithms, Analysis, and Applications. Springer, Berlin (2007)
Johansson, A., Larson, M.G.: A high order discontinuous Galerkin Nitsche method for elliptic problems with fictitious boundary. Numer. Math. 123(4), 607–628 (2013)
Kummer, F.: Extended discontinuous Galerkin methods for two-phase flows: the spatial discretization. Int. J. Numer. Meth. Eng. 109(2), 259–289 (2017)
La Cognata, C., Nordström, J.: Well-posedness, stability and conservation for a discontinuous interface problem. BIT Numer. Math. 56(2), 681–704 (2016)
Larson, M.G., Zahedi, S.: Conservative discontinuous cut finite element methods. arXiv preprint arXiv:2105.02202 (2021)
Massing, A., Larson, M.G., Logg, A., Rognes, M.E.: A stabilized Nitsche fictitious domain method for the Stokes problem. J. Sci. Comput. 61(3), 604–628 (2014)
Modisette, J., Darmofal, D.: Toward a robust, higher-order cut-cell method for viscous flows. In: 48th AIAA Aerospace Sciences Meeting Including the New Horizons Forum and Aerospace Exposition, p. 721 (2010)
Müller, B., Krämer-Eis, S., Kummer, F., Oberlack, M.: A high-order discontinuous Galerkin method for compressible flows with immersed boundaries. Int. J. Numer. Meth. Eng. 110(1), 3–30 (2017)
Piraux, J., Lombard, B.: A new interface method for hyperbolic problems with discontinuous coefficients: one-dimensional acoustic example. J. Comput. Phys. 168(1), 227–248 (2001)
Qin, R., Krivodonova, L.: A discontinuous Galerkin method for solutions of the Euler equations on Cartesian grids with embedded geometries. J. Comput. Sci. 4(1–2), 24–35 (2013)
Reed, W.H., Hill, T.R.: Triangular mesh methods for the neutron transport equation. Tech. Report LA-UR-73-479, Los Alamos Scientific Laboratory (1973)
Schoeder, S., Sticko, S., Kreiss, G., Kronbichler, M.: High-order cut discontinuous Galerkin methods with local time stepping for acoustics. Int. J. Numer. Meth. Eng. 121(13), 2979–3003 (2020)
Shu, C.W.: Discontinuous Galerkin methods: general approach and stability. In: Numerical Solutions of Partial Differential Equations, pp. 149–201 (2009)
Sollie, W.E.H., Bokhove, O., van der Vegt, J.J.: Space-time discontinuous Galerkin finite element method for two-fluid flows. J. Comput. Phys. 230(3), 789–817 (2011)
Stein, E.M.: Singular Integrals and Differentiability Properties of Functions (PMS-30), vol. 30. Princeton University Press, Princeton (2016)
Sticko, S., Kreiss, G.: A stabilized Nitsche cut element method for the wave equation. Comput. Methods Appl. Mech. Eng. 309, 364–387 (2016)
Zahedi, S.: A space-time cut finite element method with quadrature in time. In: Geometrically Unfitted Finite Element Methods and Applications, pp. 281–306. Springer (2017)
Zhang, Q.: Third order explicit Runge–Kutta discontinuous Galerkin method for linear conservation law with inflow boundary condition. J. Sci. Comput. 46(2), 294–313 (2011)
Open Access
This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made.
Author information
Authors and Affiliations
Corresponding author
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Research was supported by the Swedish Research Council Grants No. 2018-05262, No. 2018-05279 and the Wallenberg Academy Fellowship KAW 2019.0190.
Appendices
Positivity of the S-Matrix
In this appendix, we show that under the conditions in Theorem 1 the matrix S in (3.27) is positive semi-definite.
Lemma 1
Consider
where \(\lambda _1=\lambda _2+1\) and \(a_1,a_2\) are either strictly positive or strictly negative. There exists positive \(\eta \) such that the matrix S is positive semi-definite under the condition
Proof
To reduce the number of parameters we rewrite the conservation condition (3.20) as
and introduce
In terms of \(\sigma \) we have
To investigate if S is positive semi-definite we study the eigenvalues of S. The eigenvalues, \(\theta \), satisfy
where \(tr(S)=a_2\sigma (\beta +\eta )\) with \(\beta =\frac{a_1}{a_2}\), and
By assumption \(\beta ,\eta >0\). We have
Both eigenvalues are nonnegative precisely if equivalently
When \(\sigma >0\) we have from (A.9) that \(a_2>0\), and
or equivalently \(1-\frac{2\sigma }{(\sigma +1/2)^2}\le \eta \beta \le 1\). Hence, given \(a_1>0, a_2>0, \beta =a_1/a_2>0\) and parameters \(\lambda _1<1/2, \lambda _2<-1/2\) with \(\lambda _2-\lambda _1+1=0\), matrix S is positive semi-definite under the condition
When \(\sigma <0\) we have from (A.9) that \(a_2<0\) and
or equivalently \(1-\frac{2\sigma }{(\sigma +1/2)^2}\ge \eta \beta \ge 1\). This means, given \(a_1<0,a_2<0, \beta =a_1/a_2>0\), and parameters \(\lambda _1>1/2,\lambda _2>-1/2\) with \(\lambda _2-\lambda _1+1=0\), matrix S is positive semi-definite when
When \(\sigma =0\), that is \(\lambda _1=1/2\) and \(\lambda _2=-1/2\), we need to have \(\det (S)=0\) in order for (A.9) to be satisfied. We have that \(\det (S)=0\) if \(\eta \beta =1\) for both \(a_i>0\) and \(a_i<0\). Thus, there always exist positive \(\eta \) under the condition (A.15) such that S is positive semi-definite and the energy \(E_\eta \) is non-increasing. \(\square \)
Next, we will show a stability condition of \(\lambda _i\) in the scheme (3.9) without the conservation condition (3.20).
Lemma 2
Consider
where \(a_1,a_2\) are either strictly positive or strictly negative. There exists positive \(\eta \) such that the matrix S is positive semi-definite under the condition \(\lambda _1-\lambda _2\ge \frac{1}{2}\) and
Proof
We will investigate when S is a positive semi-definite matrix by studying the eigenvalues of S. Without the condition \(\lambda _2-\lambda _1+1=0\), similarly as the above proof, we have \(tr(S)=\left( \frac{1}{2}-\lambda _1\right) a_1-\left( \lambda _2+\frac{1}{2}\right) a_2\eta \) and
The eigenvalues are nonnegative if we have \(tr(S)\ge 0,\det (S)\ge 0\). By assumption \(\beta =\frac{a_1}{a_2}>0\), if \(a_2>0\), \(tr(S)\ge 0,\det (S)\ge 0\) are equal to
and
With \(\lambda _1\le \frac{1}{2},\lambda _2\le -\frac{1}{2}\), the inequality (A.17) holds for any \(\eta >0\). Therefore, to ensure that there exists \(\eta >0\) such that (A.18) is satisfied, we need
With \(\lambda _1\le \frac{1}{2},\lambda _2\le \frac{1}{2}\) and \(\lambda _1-\lambda _2\ge \frac{1}{2}\), it follows that \(\Delta \ge 0\). Then there exits an \(\eta >0\) with
This shows that when \(a_1,a_2>0\) a sufficient condition for the scheme to be stable are \(\lambda _1\le \frac{1}{2}\), \(\lambda _2\le -\frac{1}{2}\), and \(\lambda _1-\lambda _2\ge \frac{1}{2}\).
If \(a_1,a_2<0\), we first need \(tr(S)\le 0\), that is
Then, we need \(\det (S)\ge 0\) as in (A.18). Thus, we need
If \(\lambda _1\ge \frac{1}{2},\lambda _2\ge -\frac{1}{2}\) and \(\lambda _1-\lambda _2-\frac{1}{2}\ge 0\), there always exists \(\eta >0\) such that
and the scheme is stable. \(\square \)
Proof of Theorem 2
In this appendix, we give the proof of the error estimate in Theorem 2 but first we briefly recall some useful inequalities. For \(s \ge 0\), let \(\Vert \cdot \Vert _{s, \omega }\) and \(|\cdot |_{s, \omega }\) denote the usual norm and semi-norm of Sobolev space \(H^{s}(\omega )\), respectively and \(\Vert \cdot \Vert _{s,{\mathcal {T}}_{h}}^{2}=\sum _{T \in {\mathcal {T}}_{h}}\Vert \cdot \Vert _{s, T}^{2}\). For \(s=0\), the norm \(\Vert \cdot \Vert _{0, \omega }\) and \(|\cdot |_{0, \omega }\) is the standard \(L^2\)-norm and we often use the notation \(\Vert \cdot \Vert _\omega \). We will use the notation \(a \lesssim b \Leftrightarrow a \le C b\) with C being some constant that is independent of the mesh parameter h and how the interface cuts the mesh \({\mathcal {T}}_h\).
Let \(T \in {\mathcal {T}}_{h}\), the following trace inequalities hold
where the first is a standard trace inequality and the second is proven in [13]. We also have the following inverse inequality [1],
Following [2] we use the \(L^{2}\)-projection. For \(i=1,2\), let \(\pi _{h,i}: L^{2}\left( {\mathcal {T}}_{h,i} \right) \rightarrow {\mathcal {V}}_{h,i}^r\) denote the \(L^{2}\)-projection onto \({\mathcal {V}}_{h,i}^r\). For all \(v_i \in H^{r+1}\left( {\mathcal {T}}_{h,i} \right) \) we recall the following standard estimate
where \(k=0, 1, \ldots , r+1\). We also need extension operators that can extend functions defined in \(\Omega _i\) to \({\mathcal {T}}_{h,i}\). The extension theorem in [30] provides continuous extension operators \(E_i: H^{s}(\Omega _i) \rightarrow H^{s}\left( {\mathbb {R}}^d \right) \) such that for all \(v_i \in H^{s}(\Omega _i)\), \(E_i v_i |_{\Omega _i} = v_i\) and
We now define an extension operator E such that for all \(v \in \oplus _{i=1}^2 H^s(\Omega _i)\), \(Ev= (E_1 v_1, E_2 v_2)\) and we denote Ev by \(v^e\). Using the \(L^{2}\)-projection \(\pi _{h,i}\) and the extension operators we define the following projection operator
We are now ready to prove Theorem 2.
Proof
Note that \(u=u_i\) for \(x \in \Omega _i\), is the solution to problem (2.1)–(2.3) with F(u) as in (3.22) and \(x_\Gamma '(t)=0\), and is sufficiently smooth: \(u_i \in L^{\infty }\left( [0,T] ; H^{r+1}({\Omega _i}) \right) \) and \((u_i)_{t} \in L^{\infty }([0,T] ;\) \( {H^{r+1}({\Omega _i})} )\). For \(t\in (0,T]\) we have from consistency that \(u^e(t)=u^e(\cdot ,t)\), the extension of exact solution u, satisfies
Further, \(u_h(t)=u_h(\cdot , t)\in {\mathcal {V}}_h^r\), is the solution to (3.9). Subtracting (B.7) from (3.9), we get the error equation
We write the error as a sum of two terms \(u^e-u_h=\xi +\zeta \), where \(\xi =(\xi _1,\xi _2)\), with \(\xi _i(x,t)=u^e_i(x,t)-\pi _{h,i}E_i u_{i}(x,t)\) and \(\zeta =(\zeta _1,\zeta _2)\) with \(\zeta _i(x,t)=(\pi _{h,i} E_i u_{i}(x,t)-u_{h,i}(x,t))\) \(\in {\mathcal {V}}_{h,i}^r\), \(i=1,2\). Rewriting the error Eq. (B.8) in terms of \(\xi \) and \(\zeta \) we get
Let \(v_h=(\zeta _1,\eta \zeta _2)\) in (B.9). Defining a weighted energy similar to (3.25), i.e.,
and following the stability analysis in Sect. 3.3 we get
Here, the matrix S is as in (3.27), \(\xi _{i,\Gamma }=\xi _i(x_\Gamma ,t)\), \(\zeta _{i,\Gamma }=\zeta _i(x_\Gamma ,t)\), and \(\varvec{\zeta }_{\varvec{\Gamma }}= \left( \begin{array}{c} \zeta _1(x_\Gamma ,t) \\ \zeta _2(x_\Gamma ,t)\end{array}\right) . \) Using the Cauchy–Schwartz inequality and Young’s inequality, we have
Using the above three inequalities, we get
Note that the approximation properties of \(\pi _{h,i}\) (equation (B.4) with \(k=0,1\)), together with the trace inequalities (B.1)–(B.2), and the stability of the extension operator (B.5) yields
Using (B.13), Young’s inequality, and the inverse inequality (B.3) we have
Using the trace inequality (B.2), the inverse inequality (B.3), Young’s inequality, and (B.14) we have for \(i,j=1,2\),
Furthermore, since by assumption \((u_i)_t\in H^{r+1}({\Omega _i})\), we have similar estimates as (B.13) and (B.15) for \((\xi _i)_t\) and hence
Therefore, combining the inequality (B.12) with the inequalities (B.15)–(B.18), and using that S is positive semi-definite, we have
Similar to the analysis in [10] we also have that the initial error \(E_{\eta }^\zeta (0) \lesssim h^{2r}\). Then, using Grönwall’s inequality we have \(E_{\eta }^\zeta (t) \lesssim C_th^{2r}\), where \(C_t\) denotes a constant depending on time t. Using the definition of \(E_{\eta }^\zeta (t)\) we have
Finally, applying the triangle inequality, using the estimate (B.13) and the bound above for \(||\zeta _i||^2_{\Omega _i}\), we have the error estimate
Note that the error estimate depends on the parameter \(\eta \), which is used in the stability analysis to ensure that the matrix S is positive semi-definite and the scheme is stable. We point out that the estimate we have shown is suboptimal, but in the numerical computations we get optimal accuracy.\(\square \)
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Fu, P., Frachon, T., Kreiss, G. et al. High Order Discontinuous Cut Finite Element Methods for Linear Hyperbolic Conservation Laws with an Interface. J Sci Comput 90, 84 (2022). https://doi.org/10.1007/s10915-021-01756-w
Received:
Revised:
Accepted:
Published:
DOI: https://doi.org/10.1007/s10915-021-01756-w