Abstract
We develop, analyze and numerically validate local discontinuous Galerkin (LDG) methods for solving the nonlinear Benjamin–Bona–Mahony (BBM) equation. With appropriately chosen numerical fluxes, the conventional LDG methods can be shown to preserve the discrete version of mass, and either preserve or dissipate the discrete version of energy, up to the round-off level. The error estimate with optimal order of convergence is provided for both the semi-discrete energy conserving and energy dissipative methods applied to the nonlinear BBM equation, by a novel technique to discover the connection between the error of the auxiliary and primary variables, and by carefully analyzing the nonlinear term. Fully discrete methods can be derived with energy-conserving implicit midpoint temporal discretization. Numerical experiments confirm the optimal rates of convergence, as well as the mass and energy conserving/dissipative property. The comparison of the long time behavior of the energy conserving and energy dissipative methods are also provided, to show that the energy conserving method produces a better approximation to the exact solution. In a recent study by Fu and Shu (J Comput Phys 394:329–363, 2019), optimal energy conserving discontinuous Galerkin methods based on doubling-the-unknowns technique were developed for the linear symmetric hyperbolic systems. We extend the idea to construct another class of energy conserving LDG methods for the nonlinear BBM equation. Their energy conservation property and optimal convergence rate (via a special constructed numerical projection) are investigated. We also provide a comparison of these two types of energy conserving LDG methods, and shown that, under the same setup of computational elements, the latter method produces a smaller numerical error with slightly longer computational time.
Similar content being viewed by others
Avoid common mistakes on your manuscript.
1 Introduction
The dynamics of shallow water wave equations can be modeled by the nonlinear dispersive wave equation, for example, the nonlinear Korteweg–de Vries (KdV) equation
which has been used in a wide range of applications [1]. In 1972, Benjamin et al. [2] proposed an improved version of the KdV equation that also models long shallow water waves of small amplitude, known as the Benjamin–Bona–Mahony (BBM) equation
The BBM equation is obtained by replacing the third-order term \(u_{xxx}\) in the KdV equation with a mixed derivative term \(u_{xxt}\), and demonstrates some attractive features that the KdV equation lacks, one specific example being better dispersion properties resulting in improved stability of the high wavenumber components. The BBM equation describes the unidirectional propagation of surface water in a nonlinear dispersive medium with small amplitude and long wave [2], and has been used in the analysis of hydromagnetic waves in cold plasma, acoustic-gravity waves in compressible fluids and acoustic waves in harmonic crystals [3]. Due to its wide applications and rich dynamics, researchers have developed many different forms of BBM equations which are usually called generalized BBM equations, see [4, 5] and the references therein.
In this paper, we consider the BBM equation taking the form of
on the interval \(I=[x_l,x_r]\), with the periodic boundary condition
and the initial condition
where \(\varepsilon >0\) is a given real number. The BBM equation possesses the cnoidal-wave solutions of the form
where \({{\,\mathrm{cn}\,}}(z;m)\) is the Jacobi elliptic function with modulus \(m\in (0,1)\) (see [6]). \(C>0\) is the speed of propagation of the solitary wave, and D is an arbitrary, real translation. The period of cnoidal-wave solutions is 2K(m)/B, where K(m) is the complete elliptic integral of the first kind and \(B= \frac{1}{2\sqrt{(2m-1)\varepsilon }}\). It is well known that the BBM equation possesses two invariant quantities: the mass M(t) and energy E(t), defined by
and
There have been a wide range of theoretical work available for the BBM equation. Here we briefly review a few of them. The global existence, uniqueness and stability of the solutions of one-dimensional BBM equation were studied in [2]. The result was extended in [7, 8] to multi-dimensional cases. The existence and uniqueness of the periodic solutions was discussed in [9], and that of the solitary wave solutions was studied in [10]. Numerical solutions of the BBM equation have been studied by many researchers. We refer to [5, 11, 12] for the studies of the convergence analysis of various finite difference and finite element methods proposed for the BBM equation. High order scheme based on the local discontinuous Galerkin (LDG) finite element method has been presented in [13, 14] for one class of Sobolev equations which includes the BBM equation. Numerical stability, as well as the optimal error estimate when upwind nonlinear numerical flux was used, were studied in these papers. Another set of LDG method was proposed in [15] for the KdV–BBM equation. In [16], LDG methods with two different sets of numerical fluxes to either preserve or dissipate energy was proposed for the Boussinesq coupled BBM system, and optimal error estimate was provided for the linearized equations.
We confine our discussion on the high order discontinuous Galerkin (DG) method [17,18,19,20,21] in this paper. It is a class of finite element methods using completely discontinuous piecewise polynomial basis functions, and inherits the benefits of both finite element and finite volume methods. Advantages of DG methods are many, including the flexibility for hp-adaptivity, efficient parallel implementation, the local conservativity, the ability for easy handling of complicated geometries and boundary conditions, and easy coordination with finite volume techniques, making the methods very attractive in a wide range of applications. The LDG methods were proposed by Cockburn and Shu in [22] to numerically solve partial differential equations (PDEs) containing high order spatial derivatives terms, and we refer to the review paper [23] for the development of LDG methods. Recently, there have been many studies in designing DG and LDG methods which can conserve the energy or Hamiltonian structure of the model in the discrete level. Energy conserving LDG methods have been designed for the generalized KdV equation [24,25,26,27], the second order wave equation [28, 29], the two-way wave equation [30], the Camassa–Holm equation [31], the Degasperis-Procesi equation [32], the nonlinear Schrödinger equation [33, 34] and the improved Boussinesq equation [35].
In this paper, we develop, analyze and numerically validate two classes of LDG methods for solving the nonlinear BBM equation. By introducing one auxiliary variable, and with appropriately chosen numerical fluxes, the conventional LDG methods can be shown to preserve the discrete version of mass, and either preserve or dissipate the discrete version of energy of the continuous solution, up to the round-off level, which leads to the numerical stability automatically. The proposed LDG method takes a different formulation from that in [13], where three auxiliary variables were introduced for discretize the high order derivative term. Our method is closer to the one in [15], but with a wide choice of numerical fluxes to derive both energy conserving and dissipative methods. One main contribution of this paper is to provide an optimal a priori error estimate for both the semi-discrete energy conserving and energy dissipative methods applied to the nonlinear BBM equation. In [13, 15], optimal error estimate has been obtained for the upwind nonlinear numerical fluxes only, and the same analysis cannot be extended to the energy conserving methods presented here. Few work has been done in the literature on providing optimal error estimate for the energy conserving methods applied to nonlinear equations. To achieve this goal, we discover the connection between the error of the auxiliary and primary variables, and use this connection to bound the nonlinear term by the auxiliary variable. Fully discrete methods can be derived by coupling with energy-conserving implicit midpoint temporal discretization. Numerical experiments confirm the optimal rates of convergence, as well as the mass and energy conserving/dissipative property. The comparison of the long time behavior of the energy conserving and energy dissipative methods are also provided, to show that the energy conserving method produces a better approximation to the exact solution, especially for long time simulation and when polynomial degree k is small.
Recently, based on the idea of doubling the unknown functions via introducing auxiliary zero functions, optimal energy conserving DG methods have been presented for linear symmetric hyperbolic systems by Fu and Shu in [36]. The same idea has been extended in [37] to provide an energy conserving ultra-weak DG method for the KdV equation, where comparison with existing energy conserving or dissipative DG methods have been provided to demonstrate the better performance of the new developed optimal energy conserving DG methods. At the end of the paper, another class of energy conserving LDG methods, based on this doubling-the-unknowns technique in [36], is also constructed for the nonlinear BBM equation. We investigate their energy conservation property and optimal convergence rate via a special constructed numerical projection. We also provide a comparison of these two types of energy conserving LDG methods presented in this paper, and under the same setup of computational elements, the latter method is shown to have a smaller numerical error with only slightly longer computational time.
Another motivation of the study of the energy conserving methods for the BBM equation originates from our recent work in [31], where the energy conserving LDG method for the Camassa–Holm equation was investigated. In [31, Figure 2], the comparison of numerical solutions by the energy conserving and dissipative methods with the exact solution is provided, where we can observe a smaller phase error of the energy conserving methods, but the improvement in terms of the phase error is not as good as that for the KdV [24] and Degasperis-Procesi [32] equations. This phenomenon was also mentioned in [31]. We expect this study of energy conserving methods for the simpler BBM equation provides us some insights on this matter, and we will discuss our observation in the numerical experiment section.
The organization of the paper is as follows. In Sect. 2, we present the LDG method for the nonlinear BBM equation, and show that energy conserving or dissipative methods can be obtained by choosing appropriate parameters and fluxes. The optimal error estimate of the proposed methods is provided. Energy conserving temporal discretization is presented to obtain fully discrete methods, which are shown to preserve the discrete version of mass, and either preserve or dissipate the discrete version of energy of the continuous solution, up to the round-off level. Numerical results are provided in Sect. 3 to show the order of accuracy, the mass and energy conservation property and long time behavior of the LDG numerical solutions. In Sect. 4, we introduce another class of energy conserving LDG methods based on doubling-the-unknowns technique, recently proposed in [36]. Energy conserving property and optimal error estimate of these methods have been studied. In Sect. 5, numerical tests are provided to show the performance of the second class of energy conserving method, as well as the numerical comparison of these two classes of LDG methods. Conclusion remarks are presented in Sect. 6.
2 The LDG Method
In this section, we start by applying the conventional LDG method to the BBM equation, and show that the energy conserving/dissipative methods can be achieved with suitable choices of numerical fluxes. The proof of optimal error estimate for the proposed energy conserving/dissipative LDG method applied to the nonlinear BBM equation is also provided, and we end the section by presenting the temporal discretization which is also energy conserving.
2.1 Notations
We divide the computational domain \(I=[x_l,x_r]\) into J subintervals and denote the cells by \(I_j=[x_{j-\frac{1}{2}},x_{j+\frac{1}{2}}]\) for \(j=1,2,\ldots ,J\). The center of each cell is \(x_j=\frac{1}{2}(x_{j+\frac{1}{2}}+x_{j-\frac{1}{2}})\), and the mesh size is denoted by \(h_j=x_{j+\frac{1}{2}}-x_{j-\frac{1}{2}}\) with \(h=\max h_j\) for \(j=1,2,\ldots ,J\) being the maximal mesh size. We assume that the mesh is regular, namely, the ratio between the maximal and the minimal mesh sizes stays bounded during mesh refinement. The piecewise polynomial space \(V_h^k\) is defined as the space of polynomials of degree up to k in each cell \(I_j\), that is,
The solution of the numerical scheme is denoted by \(u_h\), which belongs to the finite element space \(V^k_h\). We denote by \((u_h)^+_{j+\frac{1}{2}}\) and \((u_h)^-_{j+\frac{1}{2}}\) the limit values of \(u_h\) at \(x_{j+\frac{1}{2}}\) from the right cell \(I_{j+1}\) and from the left cell \(I_{j}\), respectively. We use the usual notations
to respectively represent the jump and the mean of the function \(u_h\) at the element interfaces, for which we have the following equalities summarized in the lemma.
Lemma 2.1
Assuming \(u_h\), \(v_h\)\(\in V_h^k\), we have the equalities
If u is continuous at the point \(x_{j+\frac{1}{2}}\), we have \(\{u\}_{j+\frac{1}{2}}=u_{j+\frac{1}{2}}\), \([u]_{j+\frac{1}{2}}=0\), and the above equality reduces to
For a shorthand notation, the inner product is denoted by \((w,v)_j = \int _{I_j} wvdx\) for the scalar variables w, v. Finally, we provide the definition of various norms that will be used in the rest of the paper.
\(\Vert v\Vert \): the \(L^2\) norm of a function \(v \in L^2(I)\);
\(\Vert v\Vert _{\infty }\): the \(L^{\infty }\) norm of a function \(v \in L^2(I)\);
\(\Vert v\Vert _{\Gamma _h}=\sqrt{\sum \nolimits _{j=1}^J\left( v^2(x^+_{j+\frac{1}{2}})+v^2(x^-_{j+\frac{1}{2}})\right) }\): the norm defined on the element interfaces;
\(|[v]|=\sqrt{\sum \nolimits _{j=1}^J[v]^2_{j-\frac{1}{2}}}\): the so called “jump semi-norm”.
2.2 The Semi-discrete LDG Method
To derive the LDG discretization of the BBM Eq. (1.1), we introduce the auxiliary variable \(v=u_x\) and rewrite the equation as
where \(f(u)=u^2/2\) is the flux term. The LDG spatial discretization of the system (2.1) is given as follows: we seek \(u_h\) and \(v_h\): \([0,T]\rightarrow V^k_h\), the numerical approximations of u and v, such that the variation forms
hold in each cell \(I_j\), \(j=1,2,\ldots ,J\), for any test function \(\phi _1, \phi _2\in V^k_h\). The bilinear forms in the Eq. (2.2) are defined as
where the hatted terms, \(\widehat{u_h}\), \({\widehat{f}}\) and \(\widehat{v_{h,t}}\) in the Eq. (2.2), are the so-called numerical fluxes, defined on the numerical solutions values at the element interfaces. We will specify how to choose these numerical fluxes later. For the bilinear forms \(\mathcal {H}_j^*\), we have following observations:
Lemma 2.2
Assuming \(\varphi \), \(\psi \)\(\in V_h^k\) are both periodic functions, the following equalities hold
and
Proof
The Eq. (2.5) follows directly from the definition (2.3) and the periodicity of \(\varphi \), \(\psi \). From the integration by parts and the periodicity, we have
Therefore, the Eq. (2.6) can be obtained from the combination of the Eqs. (2.5), (2.7) and Lemma 2.1. \(\square \)
The next theorem shows that the LDG methods (2.2) ensure the conservation of the total mass.
Theorem 2.1
Let \(u_h\), \(v_h\) be the solutions of scheme (2.2) with any choice of consistent numerical fluxes, and define the discrete mass as
then we have
Proof
By taking the test function \(\phi _1=1\) in the first equation of (2.2) and summing up over all cells, we have
It is easy to see that
Therefore we obtain
which leads to \(M_h(t)=M_h(0)\). \(\square \)
In order to find numerical fluxes that conserve or dissipate the total energy E(t) at the semi-discrete level, we start with the following result:
Lemma 2.3
Let \(u_h\), \(v_h\) be the numerical solutions of the LDG methods (2.2), the following energy equation holds
where \(F(u)=\int ^u f(s) ds\) and the pair \(\langle u^*_{h},v^*_{h,t} \rangle _{j-\frac{1}{2}}\) can be any choice from the sets \(\langle u^+_{h},v^-_{h,t}\rangle _{j-\frac{1}{2}}\), \(\langle u^-_{h},v^+_{h,t}\rangle _{j-\frac{1}{2}}\) and \(\langle \{u_{h}\},\{v_{h,t}\}\rangle _{j-\frac{1}{2}}\) for any j.
Proof
By taking \(\phi _1=u_h\) and \(\phi _2=\varepsilon v_{h,t}\) in (2.2), adding those two equations and then summing up over all cells, we have
The first two terms can be rewritten as
By applying Lemma 2.2, we can obtain
with the choice of the pair \(\langle u^*_{h},v^*_{h,t} \rangle _{j-\frac{1}{2}}\) stated in the theorem, and
The combination of all these equations above leads to the energy Eq. (2.8). \(\square \)
Motivated by this lemma, the following choices of numerical fluxes have been investigated in this paper. For the pair of the numerical fluxes \((\widehat{u_h}, \widehat{v_{h,t}})\), we choose them to be
where \(c_u\ge 0\) and \(( u^*_{h}, v^*_{h,t} )\) can be either \(( \cdot ^+,\cdot ^- )\) or \(( \cdot ^-,\cdot ^+ )\). Recently, there have been some studies on upwind-biased fluxes for approximating the first order derivative term [38], and generalized alternating numerical fluxes [39] for approximating the diffusion term. The term \(( u^*_{h}, v^*_{h,t} )\) can also be extended to the generalized alternating numerical fluxes in the form of
which won’t affect the energy conserving/dissipative property of the resulting methods. For the nonlinear advection term \(f(u)=\frac{1}{2}u^2\), we can choose either the conservative flux
or the standard local Lax-Friedrichs flux
It is easy to observe that the conservative flux (2.11) satisfies
where \(F(u)=u^3/6\). The Lax-Friedrichs flux (2.12) is a nondecreasing function of its first argument, and a nonincreasing function of its second argument, and satisfies
With these choices of numerical fluxes, the following observation on energy conservation or energy dissipation holds, as a result of Lemma 2.3.
Theorem 2.2
Let \(u_h\), \(v_h\) be the numerical solutions of LDG scheme (2.2), with the numerical fluxes \((\widehat{u_h}, \widehat{v_{h,t}})\) chosen as (2.9) with \(c_u=0\), and the numerical flux of the nonlinear term \({\widehat{f}}\) chosen as (2.11). The following energy conservation property holds
Theorem 2.3
Let \(u_h\), \(v_h\) be the numerical solutions of LDG scheme (2.2), with the numerical fluxes \((\widehat{u_h}, \widehat{v_{h,t}})\) chosen as (2.9) with \(c_u\ge 0\), and the numerical flux of the nonlinear term \({\widehat{f}}\) chosen as either (2.11) or (2.12). The following energy dissipative property holds
Remark 2.1
Another popular choice of energy conserving numerical fluxes is the central flux, that can be define as
The LDG scheme (2.2) combined with this set of numerical fluxes exhibit suboptimal convergence rate, which will be observed in the accuracy numerical tests.
Remark 2.2
In [13], LDG methods are derived for the BBM Eq. (1.1) based on an equivalent formulation
with two auxiliary variables w and p. Its difference to our approach lies in the discretization of the term \(u_{xxt}\) which is linear. Therefore, if the numerical fluxes \((\widehat{u_h}, \widehat{v_{h,t}})\) take the same form as \((\widehat{w_h}, \widehat{p_{h}})\) [in the discretization of (2.14)], and the same nonlinear numerical flux \({\widehat{f}}\) is used, these two LDG methods can be shown to be equivalent, after all these auxiliary variables are eliminated and only one final equation to update \(u_h\) is obtained. Energy dissipative methods have been discussed in [13]. More choices of numerical fluxes, leading to energy conserving or dissipative methods, are discussed in this paper, as well as the optimal error estimate for these fluxes which requires some new analytical tools to be discussed in the following section.
2.3 Optimal Error Estimate
In this section, we derive the optimal error estimate for the LDG scheme (2.2), with the numerical fluxes \((\widehat{u_h}, \widehat{v_{h,t}})\) chosen as (2.9) with \(c_u\ge 0\), and the numerical flux of the nonlinear term \({\widehat{f}}(u^-,u^+)\) chosen as either (2.11) or (2.12). In other words, optimal error estimate will be provided for both energy conserving and energy dissipative LDG methods.
We start by defining the following errors associated with a function f
which from left to right, denote the error between the exact solution f and the numerical solution \(f_h\), the projection error between f and a particular projection \(\pi ^f\) of f, and the error between the numerical solution and the projection of f, respectively.
Some projection operators considered in this paper are defined as follows. We use \(\pi \) to denote the standard \(L^2\) projection of a function \(\omega \) into the space \(V_h^k\), satisfying
We use \(\pi ^-\) to denote the Radau projection of \(\omega \) into the space \(V_h^k\), satisfying
Similarly, the projection \(\pi ^+\) of \(\omega \) is defined as:
For these three projections, we have the following approximation property [28, 40]:
where \(\pi ^f=\pi \), \(\pi ^\pm \) and the constant C depends on f but is independent of h. For our problem, we choose the projections of the solutions u and v to be:
Moreover, for all \(v\in V_h^k\) the following inverse inequalities holds
Before we present the main result on the optimal error estimate of the LDG scheme, let us start by providing some useful lemmas.
Lemma 2.4
Suppose \((u_h,v_h)\in V_h^k\times V_h^k\) satisfy the Eq. (2.2b) with the flux \(\widehat{u_h}=u_h^-\) or \(\widehat{u_h}=u_h^+\), and the projections (2.16) are used, then there exists a positive constant C independent of h such that
Remark 2.3
This Lemma provides an important relationship between the error of the auxiliary variable and the primary variable. In [41, Lemma 2.4], similar result on the variable instead of the error
has been obtained, and the main body of our proof follows that in [41].
Proof
Without loss of generality, we assume \(\widehat{u_h}=u_h^+\), and the proof of the other case \(\widehat{u_h}=u_h^-\) follows the same idea. From (2.2b) and (2.3), we have
and the same equation is satisfied by the exact solutions u and v. Taking the difference yields the error equation
By utilizing the definition of the projections \(\pi \) and \(\pi ^\pm \), we have
where the integration by parts and \(\widehat{\xi _u}=\xi _u^+\) are used.
The rest of the proof follows that of [41, Lemma 2.4], and we only sketch the main idea below. Let \(L_k\) be the standard Legendre polynomial of degree k in \([-1,1]\), we have \(L_k(1)=1\) and \(L_k\) is orthogonal to any polynomials with degree less or equal to \(k-1\). First, we take the test function \(\phi \) as
with \(\theta =2(x-x_j)/h_j\). Therefore, the Eq. (2.21) reduces to
which leads to
Next, we take \(\phi =1\) in (2.21) to obtain
by the Cauchy–Schwarz inequality and (2.22). Finally, by summing up (2.22) and (2.23) over all elements, we get the desired result (2.20). \(\square \)
Remark 2.4
To deal with the nonlinear term, we would like to make an a priori error estimate assumption between numerical solution \(u_h\) and exact solution u
following the setup in [40, 42], where the same technique is used to treat the nonlinearity in the KdV and Keller–Segel models. This assumption can be easily verified, and we refer to [40, 42] for the detailed explanation and proof. Easy to observe that this assumption implies
following the inverse inequality (2.19).
Lemma 2.5
Let \(u_h\), \(v_h\) be the numerical solutions of the LDG scheme (2.2) with the numerical fluxes \((\widehat{u_h}, \widehat{v_{h,t}})\) chosen as (2.9) with \(c_u\ge 0\), and the numerical flux of the nonlinear term \({\widehat{f}}(u^-,u^+)\) chosen as either (2.11) or (2.12). Assume that u is the exact solution of the problem (1.1) and is sufficiently smooth, then there holds the following inequality
Proof
We start by showing that both u and \(u_h\) are bounded. The exact solution u satisfies the energy invariant property (1.6), hence, we have
By Trace inequality, one can obtain that \(\Vert u(x,t)\Vert _\infty < C\) for any t, where C depends only on the initial condition \(u_0(x)\) and the domain I. Combining this with (2.24) leads to \(\Vert u_h\Vert _\infty < C\) as well.
To prove the estimate (2.25), we separate the left hand side into two terms as follows:
Since \(f(u)=\frac{1}{2}u^2\), it follows from the Cauchy-Schwarz inequality, the inverse inequality and projection error bound (2.15) that
The estimation of the second term \(\theta ^2_j\) will be treated differently, depending on the different choices of the numerical fluxes \({\widehat{f}}(u^-_h,u^+_h)\). If the conservative flux (2.11) is used, by applying the mean-value theorem, we can get
where \(\sigma _{1,j}=(\alpha _{1,j} u^-_h+(1-\alpha _{1,j})u)_{j-\frac{1}{2}}\) and \(\sigma _{2,j}=(\alpha _{2,j} u^+_h+(1-\alpha _{2,j})u)_{j-\frac{1}{2}}\) for some \(\alpha _{1,j}, \alpha _{2,j}\in [0,1]\), and the last inequality follows from
since \(\Vert u\Vert _\infty < C\) and \(\Vert u_h\Vert _\infty < C\). When \({\widehat{f}}(u^-_h,u^+_h)\) is chosen as the Lax-Friedrichs flux (2.12), we have
Therefore, it follows from (2.28) and (2.29) that, for either choice of the nonlinear flux \({\widehat{f}}(u^-_h,u^+_h)\),
The combination of the Eqs. (2.26), (2.27) and (2.30) leads to the desired result (2.25), and this finishes the proof. \(\square \)
Remark 2.5
The above lemma to bound the error in approximating the nonlinear term is one of the key ideas to derive the optimal error estimate. In this paper, we consider the nonlinear BBM equation with \(f(u)=\frac{1}{2} u^2\). For the general flux f(u), the lemma also holds, if the numerical flux \({\widehat{f}}(u^-,u^+)\) is a monotone numerical flux consistent with f. Therefore, the optimal error estimate result in Theorem 2.4 holds for the LDG methods applied to the general equation of the form \(u_t+f(u)_x-\epsilon u_{xxt}=0\).
Remark 2.6
The initial condition of the LDG scheme (2.2) is chosen as
and \(v_h(x,0)\) is calculated by (2.2b). With the choice of \(\pi ^u\) defined in (2.16), one can follow the proof in [28] to show the following estimate:
Now, we can present and prove the main optimal error estimate result for both energy conserving and energy dissipative LDG methods.
Theorem 2.4
Let \(u_h\) and \(v_h\) be the numerical solutions of LDG scheme (2.2) with the numerical fluxes \((\widehat{u_h}, \widehat{v_{h,t}})\) chosen as (2.9) with \(c_u\ge 0\), and the numerical flux of the nonlinear term \({\widehat{f}}(u^-,u^+)\) chosen as either (2.11) or (2.12). Assuming u is the exact solution of the problem (1.1) which is sufficiently smooth, and \(v=u_x\). For small h and all \(t\in [0,T]\), the optimal error estimate
holds, where the constant C may depend on T, k, the length of the domain I, and some Sobolev norms of the exact solution u up to time T, but is independent of h.
Proof
The numerical solutions \(u_h\), \(v_h\) satisfy the LDG scheme (2.2)–(2.2b), which are also satisfied by the exact solutions u and v. The difference of these equations yields the error equations
By taking the test functions \(\phi _1=\xi _u\) in (2.34), \(\phi _2=\varepsilon \xi _{v_t}\) in (2.35), and summing those equations, we have
Following the property of the operator \(\mathcal {H}_j\) in (2.6) and the selection of numerical flux in (2.9), we can obtain
The other property (2.5) of the operator \(\mathcal {H}_j\) leads to
Therefore, the Eq. (2.36) can be rewritten as
From the choice (2.16) of our projections of u and v, it follows that
and
By the properties (2.15) of projection error and Young’s inequality, we have
The combination of the inequality (2.25) in Lemma 2.5 and the inequality (2.20) in Lemma 2.4 yields
The definition of \(\widehat{\eta _{v_t}}\) in (2.9) leads to
where the assumption \(c_u\ge 0\) is used, and the last inequality follows from the projection error bound (2.15) and Lemma 2.4. By combining (2.38)–(2.42), one can rewrite Eq. (2.37) as
The optimal error estimate of \(\xi _u\), \(\xi _v\)
follows from the Gronwall’s inequality and the error of the initial condition in Remark 2.6. Combined with the optimal projection error of \(\eta _u\), \(\eta _v\), this leads to the optimal error estimate of \(e_u\), \(e_v\) in (2.33). \(\square \)
2.4 Temporal Discretization
In this subsection, we present the fully discrete LDG methods. The implicit midpoint temporal discretization will be used to ensure that the fully discrete methods maintain the mass and energy conserving property. If the energy dissipative method [i.e., \(c_u>0\) or \({\widehat{f}}\) chosen as (2.12)] is used, the total variation diminishing (TVD) Runge–Kutta method can be used to provide high order accurate temporal approximation.
Let \(0 = t_0< t_1< \cdots < t_N = T \) be a partition of the interval [0, T] with time step \(\Delta t_n=t_{n+1}- t_n\). The following notations
are introduced to ease the presentation.
The fully discrete implicit midpoint rule with local discontinuous Galerkin scheme takes the following form: we are looking for the solutions \(u^{n+1}_h\), \(v^{n+1}_h\), for \(n=1,2,\ldots ,N-1\), such that
hold for all test functions \(\phi _1\), \(\phi _2\in V^k\) on every cell \(I_j\). Here the nonlinear numerical flux \({\widehat{f}}^{n+\frac{1}{2}}={\widehat{f}}\big (u^{n+\frac{1}{2},-}_h,u^{n+\frac{1}{2},+}_h\big )\) can be chosen as (2.11) or (2.12), and the set of numerical fluxes \((\widehat{\delta ^+_tv_{h}^n}, (\widehat{u_h})^{n+\frac{1}{2}} )\) takes the similar form as (2.9)
where \(c_u\ge 0\) and \((u^*_{h}, v^*_{h})\) can be either \(( \cdot ^+,\cdot ^- )\), \(( \cdot ^-,\cdot ^+ )\) or the generalized form in (2.10). Easy to verify that the implicit midpoint rule method is second order accurate in time.
Remark 2.7
Since different choices of the numerical fluxes will be tested in the numerical examples section, we name the fully discrete schemes as “C/D-C/D-LDG”, where “C” and “D” stands for “conservative” and “dissipative” respectively, and the detailed explanation can be found in Table 1. The “Central-LDG” method, as explained in Remark 2.1, is also included for comparison. Note that the optimal error estimate proof does not apply to the “Central-LDG” method.
The conservation of continuous mass and energy of the semi-discrete LDG methods are shown in Sect. 2.2. For the fully discrete methods, we have the following results.
Theorem 2.5
Let \(u_h^n\) and \(v_h^n\) be the numerical solutions of the fully discrete LDG methods (2.44). With the discrete mass and energy defined as
the following mass conservation and energy dissipative property holds
for any n and all the LDG schemes in Table 1. More specifically, C-C-LDG and Central-LDG methods can preserve the energy conservation, that means \(E^n_h=E^0_h\).
The proof of this theorem is similar to that of Theorems 2.1 and 2.2, and is omitted here.
Remark 2.8
Note that the implicit midpoint rule method is introduced here, mainly for the purpose of conserving the energy at the discrete level. If one’s purpose is to design energy dissipative methods, the explicit TVD Runge-Kutta methods should be used for simplicity.
At the end of this section, we provide some details related to the implementation of the fully discrete methods (2.44). Let \(U_h\) be the vectors containing the degree of freedom for the piecewise polynomial solution \(u_h\), and denote \(U^n_h=U_h(t_n)\). Similarly, we can define \(V^n_h\). The fully discrete methods (2.44) can be rewritten in the matrix form as
where A and B are matrices depending on the polynomial basis functions and the terms \(D_{1}V^{n+\frac{1}{2}}_h\), \(D_{2}U^{n+\frac{1}{2}}_h\) and \(D_3U^{n+\frac{1}{2}}_h\) come from the choices of the numerical fluxes \(\widehat{\delta ^+_tv_{h}^n}\), \((\widehat{u_{h}})^{n+\frac{1}{2}}\). The nonlinear function \(f_s\) denotes the discretization of the nonlinear term. The second equation of (2.48) leads to the following relation between \(V_h\) and \(U_h\):
where \(K_{uv}=-A^{-1}(B+D_3)\). Therefore, the system (2.48) can be reduced to
where \(g_s\) is a nonlinear function and L is a linear function. To solve the nonlinear system (2.50), one could use Newton’s method or other iterative methods. A stopping criteria of \(\Vert (U^{n+\frac{1}{2}}_h)^{(k)}-(U^{n+\frac{1}{2}}_h)^{(k-1)}\Vert \le \varepsilon \) is used in the numerical implementation, where \(\varepsilon \) is the control error and is taken as \(10^{-15}\) in our tests. With the solution \(U^{n+\frac{1}{2}}_h\) available, one could use (2.49) to evaluate \(V^{n+\frac{1}{2}}_h\) if needed.
3 Numerical Experiments of the LDG Methods
In this section, we provide some numerical results of the proposed LDG methods with implicit midpoint rule temporal discretization. When the case \(c_u>0\) is considered in (2.45), we always choose \(c_u=1\) in our tests. We first perform the accuracy tests on the LDG methods to verify the optimal convergence rate. We also test different initial projections and different fluxes, and observe how these affect the order of accuracy. Mass conservation and energy conservation/dissipation property of the proposed methods will also be verified numerically. At the end, the long time behavior of the LDG methods is studied.
3.1 Accuracy Test
The cnoidal-wave solution (1.4), with the following parameters
is used in this section to check the convergence rate of the proposed LDG methods. The initial conditions \(u_0(x)\) is obtained by setting \(t = 0\), and the numerical error are computed at the stopping time \(T=1\).
Since the second order implicit midpoint temporal discretizations is employed and our interest is in the effect of various spatial discretizations, we set the time step as \(\tau =0.5877h^2\) (such that \(N=2J^2\)). Tables 2, 3, 4, 5, 6 and 7 present the numerical order of accuracy for the LDG methods with \(P^0\), \(P^1\), \(P^2\) and \(P^3\) basis, and with different choices of projections in evaluating the numerical initial conditions.
As seen in Table 2 and Table 4, optimal order of accuracy of \(u_h\) and \(v_h\) are obtained for both C-C-LDG and D-D-LDG methods, when \(( u^*_{h}, v^*_{h,t})\) is chosen as \(( u^+_{h}, v^-_{h,t} )\) in fluxes (2.9) and projection \(\pi ^+\) is applied to obtain the initial conditions of \(u_h\). These results agree well with the error estimate in Theorem 2.4. It’s worth mentioning that, when \(L^2\) projections is used to obtain the initial conditions of \(u_h\), only kth order accuracy of \(v_h\) can be obtained with basis functions in \(P^k\) for \(k = 1, 2, 3\) for C-C-LDG scheme (see Table 3) and D-D-LDG scheme (see Table 5). In spite of this, optimal order of accuracy of \(u_h\) still can be obtained with basis functions in \(P^k\) for \(k = 1, 2, 3\). The impact of different numerical initial conditions of the LDG methods towards the convergence rate has also been observed by us in [28, 29, 35]. The performance of the C-D-LDG and D-C-LDG methods is similar and is not presented here to save space. With the other choice of numerical fluxes \(( u^*_{h}, v^*_{h,t})=( u^-_{h}, v^+_{h,t} )\), the same numerical results are observed, and are omitted here.
The convergence rate of the Central-LDG method is shown in Table 6. Only kth order accuracy in \(u_h\) and \(v_h\) are obtained for odd k, which is consistent with our impression that even-odd phenomenon of the central flux. Note that the optimal error estimate result in Theorem 2.4 does not hold for the central flux, as one of the key inequality (2.20) cannot be proven. If the energy dissipative terms are added to the Central-LDG method [i.e., taking \(c_u=1\) and \({\widehat{f}}\) chosen as (2.12)], the accuracy improves a little for odd k, as seen in Table 7, but optimal convergence still cannot be obtained.
3.2 Mass, Energy Conservation and the Long Time Behavior
In this subsection we study the mass, energy conservation property and the long time behavior of the proposed LDG methods.
We consider the cnoidal-wave solution (1.4) of BBM Eq. (1.1) with the parameters specified in (3.1). First, we plot the time history of the error of mass and energy (i.e., \(M_h^N-M_h^0\) and \(E_h^N-E_h^0\)) of C-C-LDG methods in Fig. 1, with \(J=10\), \(T=250\) and \(N=2480\). Easy to observe that the mass and energy are both exactly preserved by our methods up to the machine error at the level of \(10^{-14}\).
Figure 2 plots \(\Vert e_u\Vert \), the time history of \(L^2\) norm of numerical error, of different LDG methods, for the cnoidal-wave example with \(J=10\), \(N=20480\), \(T=30\) and various \(P^k\) polynomial basis. We can observe that the \(L^2\) errors of D-C-LDG and D-D-LDG methods are similar and those of C-C-LDG and C-D-LDG methods are similar. The \(L^2\) error of D-D-LDG is growing faster than C-C-LDG method. This means that the influence of term \(c_u[u_h]\) in flux \(\widehat{v_{h,t}}\) is not as obvious as the nonlinear term flux \({\widehat{f}}\), and in general, the conserved C-C-LDG scheme performs better. From the bottom of Fig. 2, we can see the the errors of the C-C-LDG scheme do not grow significantly in time due to the energy conserving property.
Next we focus on C-C-LDG and D-D-LDG methods, and provide a thorough comparison of them by Figs. 3, 4 and 5 with the explanations below. In the top of Fig. 3, we show the time history of the numerical errors of \(u_h\) in \(L^\infty \) norm with uniform time steps \(\tau =0.0323\) (top left), \(\tau =0.0161\) (top right) and \(P^0\) polynomial basis. It can be observed that the errors of different time step sizes are similar, which means the numerical error is dominated by the spatial discretization. Also, the numerical error of energy conserving scheme is smaller. The middle and bottom of Fig. 3 provide the comparison of numerical solutions with the exact solution at different stopping times, and the time history of \(u(x_m,t)\) with \(x_m=(x_l+x_r)/2\), uniform spatial cells \(J=40\) and the time step \(\tau =0.161\). It is very easy to observe that, the D-D-LDG scheme has a larger phase error, which makes the solution very inaccurate in the long time simulation. On the other hand, C-C-LDG scheme demonstrate a good approximation to the exact solution. When \(P^2\) and \(P^3\) polynomial basis are used, the same numerical results can be observed in Figs. 4 and 5, respectively. The C-C-LDG scheme demonstrates a better approximation to the exact solution than the D-D-LDG scheme. In addition, we can see the difference between C-C-LDG and D-D-LDG becomes less obvious, as the polynomial degree k increases.
Figure 6 shows the comparison of the waveform of C-C-LDG and D-D-LDG methods at different times \(T=70\), 200, 250 and 290. Significant phase error can be observed for the D-D-LDG methods, while the C-C-LDG methods can capture the wave well. At time \(T=290\), the solution of D-D-LDG methods seems to match well with the exact solution, but this is because the phase error has accumulated and the wave is now one period behind (with periodic boundary condition used). Also, the magnitude of the numerical solution of the C-C-LDG scheme (red line) stays as 1, while the amplitude of D-D-LDG result (blue line) decreases gradually over time.
In [31], energy conserving LDG method for the Camassa–Holm equation is investigated and tested. One question about [31, Figure 2] remains unanswered in that paper. A smaller phase error of the energy conserving methods was observed for that numerical test, but the improvement in terms of the phase error is not as good as that for the KdV [24] and Degasperis-Procesi [32] equations. We revisited this issue for this simpler BBM equation. Figure 7, the left column, reproduces similar observation as in [31, Figure 2], and one can observe obvious phase error of both C-C-LDG and D-D-LDG methods, although C-C-LDG method has a smaller phase error. The right column of Fig. 7 provide the numerical results with a half time step size while keeping all the other parameters. After reducing \(\Delta t\), the numerical error of energy conserving C-C-LDG methods decreases significantly, leading to a much smaller phase error, but the error of the energy dissipative D-D-LDG methods does not change much. Therefore, the large phase error of energy conserving methods in Fig. 7 (the left column) is mainly due to the temporal discretization error.
3.3 Non-uniform Meshes
In this subsection, numerical results of the proposed methods on non-uniform spatial meshes are provided. Both the accuracy and long time behavior are tested. The non-uniform meshes are taken of the style \(\{h,2h,3h,h,2h,3h,\ldots \}\), and J again stands for the total number of cells.
We consider the cnoidal-wave solution (1.4) of BBM Eq. (1.1) with the parameters specified in (3.1). In the first accuracy test, we set the time step as \(\tau =2.3508h^2\) (such that \(N=2J^2\)). \(( u^*_{h}, v^*_{h,t})\) is chosen as \(( u^+_{h}, v^-_{h,t} )\) in the fluxes (2.9), and projection \(\pi ^+\) is applied to obtain the initial conditions of \(u_h\). Tables 8 and 9 present the accuracy test of C-C-LDG and D-D-LDG methods on non-uniform meshes, respectively. We can observe that both methods demonstrate an optimal order of convergence rate on \(u_h\) and \(v_h\).
Both C-C-LDG and D-D-LDG methods are simulated for this cnoidal-wave example, on non-uniform meshes using \(P^0\) (with \(J=40\)) and \(P^3\) (with \(J=10\)) polynomial basis. Figure 8 shows the time history of their numerical errors of \(u_h\) in \(L^\infty \) norm. Comparing with the top right of Figs. 3 and 5, we observe that non-uniform spatial meshes lead to larger numerical error with the same J, and the C-C-LDG scheme demonstrates a better approximation to the exact solution than the D-D-LDG scheme.
Figure 9 shows the comparison of the waveform of C-C-LDG and D-D-LDG methods at different times \(T=50\), 100, 140 and 150, on non-uniform meshes (\(J=10\)) for \(P^2\) polynomial basis. We can obtain the same conclusion as observed in Fig. 6 for the tests with uniform meshes, namely the C-C-LDG methods have smaller phase and amplitude error than D-D-LDG methods. Comparing with Fig. 6, we can observe, under non-uniform meshes, the phase error of the D-D-LDG methods accumulates faster: the peak of the wave lag one period behind around \(t=150\), while the same phenomenon occurs around \(t=290\) with uniform spatial meshes.
4 Energy Conserving LDG Method Via Doubling-the-Unknowns
Optimal energy conserving DG methods have been presented for linear symmetric hyperbolic systems by Fu and Shu in [36], based on the doubling-the-unknowns idea to introduce an auxiliary zero unknown equation. The same idea has been extended in [37] to provide an energy conserving ultra-weak DG method for the KdV equation, where comparison with existing energy conserving or dissipative DG methods have been provided to demonstrate the better performance of this optimal energy conserving DG method. In this section, we will extend the same idea to the BBM equation to derive and analyze optimal energy conserving LDG method with double unknowns (named as dLDG), and the main focus is two-folds: first, we want to show that the suboptimal Central-LDG method can be extended to be optimal in this framework; second, the comparison of dLDG methods with the energy conserving methods presented in Sect. 2 will be presented.
We start by doubling the unknown functions with the introduction of an auxiliary zero function g(x, t), and consider the following system
with initial condition \(u(x,0)=u_0(x)\) and \(g(x,0)=0\). As explained in [37], one could add the nonlinear term \(gg_x\) to the second equation to obtain the dLDG method, but it is not found to be beneficial, therefore, to save computational cost, this nonlinear term is not included. Analytically, g(x, t) should stay as 0 for any t, but this will not be the case numerically, due to our choice of the numerical fluxes to couple u and g togther.
The equations can be rewritten into a first order system by substituting \(u_x\) with variable v and \(g_x\) with variable w:
where \(f(u)= u^2/2\). The semi-discrete dLDG methods for the system (4.2) are defined as follows: find \(u_h\), \(v_h\), \(g_h\), and \(w_h\)\(\in V^k_h\), such that for all test functions \(\phi _1, \phi _2, \phi _3, \phi _4 \in V^k_h\) it holds that
where the numerical flux of the nonlinear term \({\widehat{f}}\) can be chosen as the conservative flux (2.11) and the hatted numerical fluxes \(\widehat{u_h}\), \(\widehat{v_{h,t}}\), \(\widehat{g_h}\) and \(\widehat{w_{h,t}}\) are chosen as:
and the parameters \(k_1\), \(k_2\) satisfies \(k_1k_2=-1/4\). The average \(\{\cdot \}\) in (4.4) can also be replaced by the generalized alternating numerical flux (2.10). Optimal error estimate cannot be obtained for the LDG method in Sect. 2 when average is used (i.e., Central-LDG method), and we will show that by this doubling-the-unknowns technique, one could recover the optimal error estimate.
4.1 Energy Conservation Property
In this subsection we present the energy conservation property of the dLDG scheme. The equations of \(u_h\), \(v_h\) in the dLDG method (4.3) are the same as in the LDG method (2.2)–(2.2b), except the definition of the numerical fluxes are different. Therefore, Theorem 2.1 (mass conservation property) and Lemma 2.3 still hold, with the new definition of these fluxes. For the new variables \(g_h\) and \(w_h\), we have the following lemma:
Lemma 4.1
Let \(g_h\), \(w_h\) be the solutions of dLDG scheme (4.3), the following result hold
The proof of this Lemma follows that of Lemma 2.3, and is omitted here. Therefore, we have the following properties.
Theorem 4.1
Let \(u_h\), \(v_h\), \(g_h\) and \(w_h\) be the solutions of dLDG scheme (4.3), with the numerical fluxes chosen as (4.4) and (2.11). The following energy conservation property holds
Remark 4.1
Due to the introduction of auxiliary zero function g, the energy of dLDG method in (4.5) now include both \(u_h\), \(v_h\), and \(g_h\), \(w_h\), which is different from the conventional LDG method. This should be an approximate of the energy, because \(g_h\) and \(w_h\) are numerical approximation of zero functions, and we refer to [36] for more discussions on this matter.
4.2 Optimal Error Estimate
To derive the error estimate, the standard \(L^2\) projections of the solutions v, w
and the following coupled projections \(\langle \pi ^u , \pi ^g \rangle \) of u and g
are defined for all \(j=1,2,\ldots ,J\), where \(k_1k_2=-1/4\) is assumed. At a first glance, the projections (4.7) seem to be globally coupled over all the element \(I_j\), due to the appearance of \(\{\cdot \}\) and \([\cdot ]\) in the definition of the cell boundary terms. The following Lemma, following similar result in [36], shows that they are actually local projections with optimal projection errors.
Lemma 4.2
The projections in (4.7) are well-defined, and they satisfy
In particular,
Proof
From the definition of the coupled projections (4.7), we know that for any \(\alpha \) and \(\beta \)
We can choose \(\alpha =1\), \(\beta =2k_2\) such that \(2\alpha k_2=\beta \), \(-2\beta k_1=\alpha \), since \(k_1k_2=-1/4\). Note that for any \(w\in V_h^k\) it holds \(\{w\}+\frac{1}{2}[w]=w^+\), then the Eq. (4.10) leads to
Similarly we can choose \(\alpha =1\), \(\beta =-2k_2\) to derive
The conclusion (4.8) follows from (4.11) and (4.12), and the error estimate (4.9) is the direct consequence of applying the error estimate (2.15) to \(\pi ^{\pm }\). \(\square \)
The following lemma is the analogue of Lemma 2.4.
Lemma 4.3
Suppose \((u_h,v_h), (g_h,w_h)\in V_h^k\times V_h^k\) are the solutions of the dLDG methods (4.3) with the numerical fluxes (4.4), and the projections (4.6) and (4.7) are used, then there exists a positive constant C, which is independent of h, such that
Proof
From the second and fourth equations of (4.3), we can obtain
with the fluxes satisfying
Therefore, \(\langle u_h+2k_2g_h, v_h+ 2k_2 w_h \rangle \) and \(\langle u_h-2k_2g_h, v_h- 2k_2 w_h \rangle \) satisfy the assumptions of Lemma 2.4, and we have
and the results (4.13) and (4.14) follow from the fact that \(\xi _u=\frac{1}{2}(\xi _u+2k_2\xi _g)+\frac{1}{2}(\xi _u-2k_2\xi _g)\) and \(\xi _g=\frac{1}{4k_2}(\xi _u+2k_2\xi _g)-\frac{1}{4k_2}(\xi _u-2k_2\xi _g)\). \(\square \)
Theorem 4.2
Let \(u_h\), \(v_h\), \(g_h\) and \(w_h\) be the numerical solutions of dLDG scheme (4.3) with the numerical fluxes (4.4), and the numerical flux of the nonlinear term \({\widehat{f}}(u^-,u^+)\) chosen as (2.11). Let u, v, g and w be the exact solution of the problem (4.2) which are sufficiently smooth. For small h and all \(t\in [0,T]\), it holds that
where the constant C may depend on T, k, the length of the domain I and some Sobolev norms of the exact solutions up to time T, but is independent of h.
The proof follows the same line as that of Theorem 2.4, and is skipped to save space.
4.3 Temporal Discretization
The fully discrete dLDG methods, coupled with the implicit midpoint temporal discretization, will be discussed in this section. They take the following form: we are looking for the solutions \(u^{n+1}_h\), \(v^{n+1}_h\), \(g^{n+1}_h\) and \(w^{n+1}_h\) for \(n=1,2,\ldots ,N-1\), such that
hold for all test functions \(\phi _1\), \(\phi _2\), \(\phi _3\) and \(\phi _4\)\(\in V^k\) on every cell \(I_j\). Here the nonlinear numerical flux \({\widehat{f}}^{n+\frac{1}{2}}\) can be chosen as (2.11), and the other numerical fluxes \(\widehat{\delta ^+_tv_{h}^n}, (\widehat{u_h})^{n+\frac{1}{2}}, \widehat{\delta ^+_tw_{h}^n}\), \(\widehat{(g_{h})}^{n+\frac{1}{2}}\) take the similar form as (4.4)
where \(k_1k_2=-1/4\).
The mass and energy conservation property of the fully discrete dLDG methods is summarized below.
Theorem 4.3
Let \(u_h^n\), \(v_h^n\), \(g_h^n\) and \(w_h^n\) be the solutions of the fully discrete dLDG methods (4.18). With the discrete mass and energy defined as
the following mass conservation and energy dissipative property holds for any n
The implementation of the fully discrete dLDG methods (4.18) is similar to that of the LDG methods as discussed at the end of Sect. 2.4. The two additional equations are both linear. As the implicit temporal discretization is used, most of the computational time is spent on the nonlinear equation, therefore the computational cost of the dLDG method is not significantly more than that of the LDG method, which will be discussed in the numerical example section.
5 Numerical Experiments of the dLDG Methods
In this section, we provide some numerical results of the proposed dLDG methods with implicit midpoint temporal discretization. The accuracy test and the comparison of the dLDG and LDG methods will be studied. \(k_1=1/2\) and \(k_2=-1/2\) are chosen in the numerical experiments.
5.1 Accuracy Test
The same cnoidal-wave solution (1.4), studied in Sect. 3.1, is considered here to verify the convergence rate. The numerical error are computed at the stopping time \(T=1\). Similarly, we set the time-step as \(\tau =0.5877h^2\). Numerical order of accuracy of the dLDG method is given in Tables 10 and 11. Optimal order of accuracy of \(u_h, g_h, v_h, w_h\) can be observed with \(P^k\), \(k = 1, 2, 3\), basis functions, when the coupled projections \(\langle \pi ^u, \pi ^g\rangle \) are chosen to evaluate the numerical initial conditions. When \(L^2\) projection is used, optimal order of accuracy of \(u_h\) and \(g_h\) still can be observed, while the accuracy of \(v_h\) and \(w_h\) are not optimal any more (see Table 11). Note that the Central-LDG method delivers suboptimal error estimate of \(u_h\), and by doubling the unknowns, the proposed dLDG method gives optimal convergence rate. We have also tested other choices of \(k_1\), \(k_2\) (satisfying \(k_1k_2=-1/4\)), and observe the same behavior.
Figure 10 shows the time history of the error of mass and energy (i.e., \(M_h^N-M_h^0\) and \(E_h^N-E_h^0\)) of the dLDG methods, where we can see that the mass and energy are both exactly preserved to the machine error at the level of \(10^{-14}\).
5.2 Comparison of the dLDG and LDG Methods
Both the dLDG and C-C-LDG methods are optimal energy conserving methods for the BBM equation. A numerical comparison of these two methods is conducted in this section.
To provide a fair comparison, we provide the numerical results of the dLDG method with J elements, as well as the C-C-LDG methods with both J and 2J elements. In Fig. 11, we plot the time history of the \(L^2\) errors of \(u_h\) of C-C-LDG (\(J=10\) and \(J=20\)) and dLDG (\(J=10\)) methods with various \(P^k\) basis, for the same cnoidal-wave example. The stopping time is set as \(T=10\) with \(N=5120\) uniform time steps. We can see the \(L^2\) error of the dLDG (\(J=10\)) methods is between those of the C-C-LDG (\(J=10\)) and C-C-LDG (\(J=20\)) methods, for all of \(P^1\), \(P^2\) and \(P^3\) spaces. For \(P^2\) and \(P^3\) case, the growth rate of \(L^2\) error of the dLDG (\(J=10\)) method is similar to that of the C-C-LDG (\(J=20\)), while the initial error of the dLDG method at \(t=0\) is larger since less elements are used. It’s worth noting that for \(P^0\) case the \(L^2\) error of dLDG (\(J=10\)) and C-C-LDG (\(J=10\)) methods are the same, because one can actually show that with \(P^0\) basis the dLDG scheme simply reduces to the C-C-LDG scheme.
In Table 12, we list the average computational times (by taking the average of 20 runs) of C-C-LDG and dLDG methods with different J and various \(P^k\) basis. It can be observed that, with the same number of elements and \(P^k\) basis, the computational times of C-C-LDG and dLDG method are almost the same, since most of the computation is spent on solving the nonlinear equation when the implicit temporal discretization is used. In general, our computational tests suggest that, with the same number of elements, the dLDG method provides a smaller error than the LDG method, while maintaining slightly larger computational cost.
6 Conclusion Remarks
In this paper, we develop, analyze and numerically validate two classes of LDG methods for solving the nonlinear BBM equation. By introducing one auxiliary variable, and with appropriately chosen numerical fluxes, the conventional LDG methods can be shown to preserve the discrete version of mass, and either preserve or dissipate the discrete version of energy of the continuous solution, up to the round-off level. One contribution of the paper is to provide an optimal a priori error estimate for both the semi-discrete energy conserving and energy dissipative methods applied to the nonlinear BBM equation. To achieve this goal, we discover the connection between the error of the auxiliary and primary variables, and use it to bound the nonlinear term by the auxiliary variable. Fully discrete methods can be derived by coupled with energy-conserving implicit midpoint temporal discretization. Numerical experiments confirm the optimal rates of convergence, and the advantage of energy conserving method for long time simulation. We also present another class of energy conserving LDG methods for the nonlinear BBM equation, based on the doubling-the-unknowns technique in [36]. We investigate their energy conservation property, optimal convergence rate, and numerical comparison of these two energy conserving LDG methods.
References
Bona, J.L., Smith, R.: The initial-value problem for the Korteweg–de Vries equation. Philos. Trans. R. Soc. Lond. Ser. B Biol. Sci. 278, 555–601 (1975)
Benjamin, T., Bona, J., Mahony, J.: Model equations for long waves in nonlinear dispersive systems. Philos. Trans. R. Soc. Lond. Ser. A Math. Phys. Sci. 272, 47–78 (1972)
Abbasbandy, S., Shirzadi, A.: The first integral method for modified Benjamin–Bona–Mahony equation. Commun. Nonlinear Sci. Numer. Simul. 15, 1759–1764 (2010)
Wazwaz, A.M.: Exact solution with compact and non-compact structures for the one-dimensional generalized Benjamin–Bona–Mahony equation. Commun. Nonlinear Sci. Numer. Simul. 10, 855–867 (2005)
Omrani, K.: The convergence of fully discrete Galerkin approximations for the Benjamin–Bona–Mahony (BBM) equation. Appl. Math. Comput. 180, 614–621 (2006)
Abramowitz, M., Stegun, I.: editors, Handbook of Mathematical Functions with Formulas, Graphs, and Mathematical Tables, volume 55 of Applied Mathematics Series, National Bureau of Standards, MR167642 (1965)
Avrin, J., Goldstein, J.A.: Global existence for the Benjamin–Bona–Mahony equation in arbitrary dimensions. Nonlinear Anal. 9, 861–865 (1985)
Goldstein, J.A., Wichnoski, B.: On the Benjamin–Bona–Mahony equation in higher dimensions. Nonlinear Anal. 4, 665–675 (1980)
Medeiros, L.A., Menzela, G.P.: Existence and uniqueness for periodic solutions of the Benjamin–Bona–Mahony equation. SIAM J. Math. Anal. 8, 792–799 (1977)
Wang, L., Zhou, J., Ren, L.: The exact solitary wave solutions for a family of BBM equation. Int. J. Nonlinear Sci. 1, 58–64 (2006)
Achouri, T., Khiari, N., Omrani, K.: On the convergence of difference schemes for the Benjamin–Bona–Mahony (BBM) equation. Appl. Math. Comput. 182, 999–1005 (2006)
Omrani, K., Ayadi, M.: Finite difference discretization of the Benjamin–Bona–Mahony–Burgers (BBMB) equation. Numer. Methods Partial Differ. Equ. 24, 239–248 (2008)
Gao, F., Qiu, J., Zhang, Q.: Local discontinuous Galerkin finite element method and error estimates for one class of Sobolev equation. J. Sci. Comput. 41, 436–460 (2009)
Zhang, Q., Gao, F.: A fully-discrete local discontinuous Galerkin method for convection-dominated Sobolev equation. J. Sci. Comput. 51, 107–134 (2012)
Kamga, A., Mitsotakis, D.: A high order discontinuous Galerkin method for the convection dominated KdV–BBM equation and its efficient implementation, preprint available on researchgate.net
Buli, J., Xing, Y.: Local discontinuous Galerkin methods for the Boussinesq coupled BBM system. J. Sci. Comput. 75, 536–559 (2018)
Cockburn, B., Hou, S., Shu, C.-W.: The Runge–Kutta local projection discontinuous Galerkin finite element method for conservation laws IV: the multidimensional case. Math. Comput. 54, 545–581 (1990)
Cockburn, B., Karniadakis, G., Shu, C.-W.: The development of discontinuous Galerkin methods, In: Cockburn, B., Karniadakis, G., Shu, C.-W. (eds.) Discontinuous Galerkin Methods: Theory, Computation and Applications, pp. 3–50. Lecture Notes in Computational Science and Engineering, Part I: Overview, Vol. 11, Springer, Berlin (2000)
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, 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, 411–435 (1989)
Reed, W.H., Hill, T.R.: Triangular mesh methods for the neutron transport equation, Technical Report LA-UR-73-479, Los Alamos Scientific Laboratory (1973)
Cockburn, B., Shu, C.W.: The local discontinuous Galerkin finite element method for convection-diffusion systems. SIAM J. Numer. Anal. 35, 2440–2463 (1998)
Xu, Y., Shu, C.-W.: Local discontinuous Galerkin methods for high-order time-dependent partial differential equations. Commun. Comput. Phys. 7, 1–46 (2010)
Bona, J.L., Chen, H., Karakashian, O.A., Xing, Y.: Conservative discontinuous Galerkin methods for the generalized Korteweg–de Vries equation. Math. Comput. 82, 1401–1432 (2013)
Yi, N., Huang, Y., Liu, H.: A direct discontinuous Galerkin method for the generalized Korteweg–de Vries equation: energy conservation and boundary effect. J. Comput. Phys. 242, 351–366 (2013)
Karakashian, O., Xing, Y.: A posteriori error estimates for conservative local discontinuous Galerkin methods for the generalized Korteweg–de Vries equation. Commun. Comput. Phys. 20, 250–278 (2016)
Zhang, Q., Xia, Y.: Conservative and dissipative local discontinuous Galerkin methods for Korteweg–de Vries type equations. Commun. Comput. Phys. 25, 532–563 (2019)
Xing, Y., Chou, C.-S., Shu, C.-W.: Energy conserving local discontinuous Galerkin methods for wave propagation problems. Inverse Probl. Imaging 7, 967–986 (2013)
Chou, C.-S., Shu, C.-W., Xing, Y.: Optimal energy conserving local discontinuous Galerkin methods for second-order wave equation in heterogeneous media. J. Comput. Phys. 272, 88–107 (2014)
Cheng, Y., Chou, C.-S., Li, F., Xing, Y.: L2 stable discontinuous Galerkin methods for one-dimensional two-way wave equations. Math. Comput. 86, 121–155 (2017)
Liu, H., Xing, Y.: An invariant preserving discontinuous Galerkin method for the Camassa–Holm equation. SIAM J. Sci. Comput. 38, A1919–A1934 (2016)
Huang, Y., Liu, H., Yi, N.: A conservative discontinuous Galerkin method for the Degasperis-Procesi equation. Methods Appl. Anal. 21, 67–90 (2014)
Guo, L., Xu, Y.: Energy conserving local discontinuous Galerkin methods for the nonlinear Schrödinger equation with wave operator. J. Sci. Comput. 65, 622–647 (2015)
Liang, X., Khaliq, A.Q.M., Xing, Y.: Fourth order exponential time differencing method with local discontinuous Galerkin approximation for coupled nonlinear Schrödinger equations. Commun. Comput. Phys. 17, 510–541 (2015)
Li, X., Sun, W., Xing, Y., Chou, C.-S.: Energy conserving local discontinuous Galerkin methods for the improved Boussinesq equation. J. Comput. Phys. 401, 109002 (2020)
Fu, G., Shu, C.-W.: Optimal energy-conserving discontinuous Galerkin methods for linear symmetric hyperbolic systems. J. Comput. Phys. 394, 329–363 (2019)
Fu, G., Shu, C.-W.: An energy-conserving ultra-weak discontinuous Galerkin method for the generalized Korteweg–de Vries equation. J. Comput. Appl. Math. 349, 41–51 (2019)
Meng, X., Shu, C.-W., Wu, B.: Optimal error estimates for discontinuous Galerkin methods based on upwind-biased fluxes for linear hyperbolic equations. Math. Comput. 85, 1225–1261 (2016)
Cheng, Y., Meng, X., Zhang, Q.: Application of generalized Gauss–Radau projections for the local discontinuous Galerkin method for linear convection-diffusion equations. Math. Comput. 86, 1233–1267 (2017)
Xu, Y., Shu, C.-W.: Error estimates of the semi-discrete local discontinuous Galerkin method for nonlinear convection diffusion and KdV equations. Comput. Methods Appl. Mech. Eng. 196, 3805–3822 (2007)
Wang, H., Shu, C.-W., Zhang, Q.: Stability and error estimates of local discontinuous Galerkin method with implicit-explicit time-marching for advection-diffusion problems. SIAM J. Numer. Anal. 53, 206–227 (2015)
Li, X.H., Shu, C.-W., Yang, Y.: Local discontinuous Galerkin method for the Keller–Segel chemotaxis model. J. Sci. Comput. 73, 943–967 (2017)
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.
XL is supported by the College of Automation at Harbin Engineering University, the National Natural Science Foundation of China (No. 11801116) and the Fundamental Research Funds for the Central Universities. YX is partially supported by the NSF Grant DMS-1753581. CSC is supported by the NSF Grants DMS-1253481 and DMS-1813071.
Rights and permissions
About this article
Cite this article
Li, X., Xing, Y. & Chou, CS. Optimal Energy Conserving and Energy Dissipative Local Discontinuous Galerkin Methods for the Benjamin–Bona–Mahony Equation. J Sci Comput 83, 17 (2020). https://doi.org/10.1007/s10915-020-01172-6
Received:
Revised:
Accepted:
Published:
DOI: https://doi.org/10.1007/s10915-020-01172-6