Numerical method satisfying the first two conservation laws for the Korteweg–de Vries equation

https://doi.org/10.1016/j.jcp.2007.07.031Get rights and content

Abstract

In this paper, we develop a finite-volume scheme for the KdV equation which conserves both the momentum and energy. The main ingredient of the method is a numerical device we developed in recent years that enables us to construct numerical method for a PDE that also simulates its related equations. In the method, numerical approximations to both the momentum and energy are conservatively computed. The operator splitting approach is adopted in constructing the method in which the conservation and dispersion parts of the equation are alternatively solved; our numerical device is applied in solving the conservation part of the equation. The feasibility and stability of the method is discussed, which involves an important property of the method, the so-called Jensen condition. The truncation error of the method is analyzed, which shows that the method is second-order accurate. Finally, several numerical examples, including the Zabusky–Kruskal’s example, are presented to show the good stability property of the method for long-time numerical integration.

Introduction

It is well known that the Korteweg–de Vries (KdV) equationut+12u2x+εuxxx=0,where ε is a constant, possesses an infinite set of conservation laws and the first two of them are Eq. (1.1), which describes the conservation of momentum and(u2)t+23u3x+ε(2uuxx-(ux)2)x=0,which describes the conservation of energy. It is commonly believed that it is good for a numerical method for the KdV equation to simulate as many of these conservation relations as possible; methods preserving more conservation relations are usually more stable and suitable for long-time integration. However, maintaining more than one conservation relations is difficult in the practice of numerical simulation. From a broader point of view of mathematics, the difficulty is that there is generally no enough degrees of freedom to construct numerical methods for a PDE that also simulates the equations that are derived from the original one.

A lot of numerical methods have been developed for the KdV equation in recent years, ranging from finite difference methods, finite element methods to spectral methods, see [25], [8], [16], [24], [23], [3], [1], [2], [20], [26], [5], [6] and the references cited therein. Most of them preserve the conservation of momentum and only a few of them preserve the conservation of both the momentum and energy. We should particularly mention the symplectic and multisymplectic schemes, see [3], [1], [2], [26], [20]. When viewing the KdV equation as a Hamiltonian system, these schemes preserve the symplectic structure of the system. Therefore, they are proved to be good numerical methods for long-time integration of the equation. However, symplectic and multisymplectic schemes usually do not exactly conserve the momentum and energy and thus how closely the momentum and energy are conserved in computation is then a property of interest for these schemes and is often assessed in numerical experiments, see the references cited above.

In this paper, we develop a finite difference method for the KdV equation which satisfies both the momentum and energy conservation relations. The main ingredient of the method is a device we developed in recent years that enables us to construct numerical methods that simultaneously simulates a PDE and its related equations, see [11], [4], [12], [13], [14], [21], [22]. To explain the idea, we look at the linear advection equationut+ux=0.This equation possesses infinitively many conservation laws. As a matter of fact, for any smooth function U(u) the following equationU(u)t+U(u)x=0is also satisfied. Both u and U(u) are then conserved in the sense that-u(x,t)dx=-u(x,0)dxand-U(u(x,t))dx=-U(u(x,0))dx.In the following, we are going to construct a conservative numerical scheme that simulates both Eqs. (1.3), (1.4) for a given U(u).

Our scheme is of the Godunov type and its numerical solution {ujn} is a cell-average approximation to the exact solution at time tnujn1hxj-12xj+12u(x,tn)dx.A very special feature of the scheme is that it computes also a cell-average approximation to U(u)Ujn1hxj-12xj+12U(u(x,tn))dx.Like all the Godunov-type schemes (see [9], [10]), the scheme proceeds in the reconstruction, evolution and cell-averaging steps.

In the reconstruction step, the solution is reconstructed in each cell (xj-12,xj+12) as a linear functionR(x;un,Un)=ujn+sjn(x-xj),j=,-1,0,1,,where sjn is the slope. Another very special feature of the scheme is that the slope is not computed by interpolating the solution as is done in ordinary finite-volume schemes, but rather by requiring1hxj-12xj+12U(R(x;un,Un))dx=Ujn,that is, the cell-average of U(u) of the reconstructed solution must be equal to the numerical cell-average of U(u) in the grid cell. Eq. (1.10) is an equation of sjn, from which we solve out the slope.

The evolution step is to solve the IVPvt+vx=0,v(x,tn)=R(x;un,Un),tn<t<tn+1,as that in all the Godunov’s type schemes do and the cell-averaging step is to cell-average v and U(v) to Eq. (1.11) at t = tn+1 to obtain ujn+1 and Ujn+1. In practice, we use the integral form of Eqs. (1.3), (1.4) to compute ujn+1 and Ujn+1, which results in the following conservative schemesujn+1=ujn-λ(fˆj+1/2n-fˆj-1/2n)andUjn+1=Ujn-λ(F^j+1/2n-F^j-1/2n),where fˆj+1/2n and F^j+1/2n are the flux approximations to u and U(u) in Eqs. (1.3), (1.4), respectively, on the cell boundaries.

The scheme so constructed maintains the conservation for both u and U(u). We note that our numerical approximations ujn and Ujn are not related as customarily U(ujn)=Ujn, but rather in a loosen fashion as in Eqs. (1.8), (1.10). Actually, the numerical solution in each grid cell can be understood from Eqs. (1.8), (1.10) as a piece of linear function whose cell-average is ujn and whose cell-average of U(u) is Ujn. In this fashion, we gain one degree of freedom in describing the numerical solution, which enables us to maintain the conservation relations for both u and U(u) in constructing the scheme.

Along this line, schemes maintaining more conservation relations can also be constructed. This can be accomplished by involving more entities (U1)n,(U2)n, in the numerical scheme, where(Ui)jn1hxj-12xj+12Ui(u(x,tn))dx,with Ui(u) being nonlinear functions of u, either convex or not, reconstructing the solution in each cell as polynomialR(x;un,(U1)n,(U2)n,)=ujn+s1(x-xj)+s2(x-xj)2+,and solving the coefficients s1, s2, … from the system of equations1hxj-12xj+12Ui(R(x;un,(U1)n,(U2)n,))dx=(Ui)jn,i=1,2,,see [21]. For more general evolution PDE’s, the functions Ui’s may also involve the derivatives of u, i.e. ux,uxx, and Ui’s are not necessary to be conserved.

For continuous solutions to Eq. (1.3), the numerical results computed by this kind of schemes are fantastic. In Fig. 1, we present two numerical results computed by this kind of schemes with 200 grid cells, which are cited from [21]. Both are of the Wavepacket problem, see [9]. The result on the left is obtained by a scheme maintaining u and u2 conserved (second-order accurate) and is at t = 200 and the result on the right is by a scheme maintaining u, u2 and u3 conserved (third-order accurate) and is at t = 20,000. As to our knowledge, no scheme up to date has ever got qualified numerical result for this example with the same grid beyond the time t = 20.

The success of our numerical device in the linear advection equation encourages us to apply it to the KdV equation since the latter also possesses many conservation laws and maintaining them in numerical simulation is important. We develop a scheme which computes and conserves both the momentum u and energy U(u). That is, the constructed scheme involves two numerical entities, the numerical momentum ujn and numerical energy Ujn and both of them are conservatively computed.

To construct the scheme, we adopt the splitting strategy as in [8], i.e. split the Eq. (1.1) into the conservation part (2.5) and dispersion part (2.6). Our numerical device is applied in solving the conservation part, where the solution is reconstructed in each grid cell with its momentum cell-average being ujn and its energy cell-average being Ujn. To solve the dispersion part, we adopt the implicit difference scheme in [8] to compute the momentum cell-averages {ujn} and once they are computed the energy cell-averages {Ujn} are then computed passively from them. The advantage of using this implicit scheme is that the time step τ does not suffer from a prohibiting restriction τ = O(h3), and the corresponding linear algebra system is still easy to be solved using well developed numerical methods. Therefore, the only restriction on the time step in our method comes from the conservation part, which is of τ = O(h).

Constructed in such a way, our method is stable in the sense that its energy is nonnegative and L1 bounded and its momentum is L2 bounded by the L1 norm of its energy, see Theorem 3.2. The method is second-order accurate away from extremes of solution and is at least first-order accurate near extremes, see Theorem 4.3.

We know that the KdV equation is notorious for its “marginal” stability that is resulted in the balance between the nonlinear convection and the linear dispersion, see [2]. This “living at the edge of stability” becomes more fragile in the “convection-dominated” cases, in which the linear dispersion is very weak compared to the nonlinear convection; therefore, long-time numerical integrations for these cases are difficult since they tend to become unstable. A typical case is the so-called Zabusky–Kruskal’s example, see [25], on which many numerical schemes, including the Zabusky–Kruskal’s scheme, explode in long-time numerical integrations, see [1], [18], [20], [26], [5]. We test our method on “convection-dominated” cases, especilally the Zabusky–Kruskal’s example and the numerical results are fantastic. The method is very stable and robust in long-time integrations and the solitions are very smooth with well-preserved shapes of solitons. The numerical simulation for the Zabusky–Kruskal’s example goes up to the time t = 20tR and still does not exhibit any blowup. It seems to us that the computation can go on for ever.

The organization of the paper is as follows: Section 1 is the introduction. In Section 2, we describe the numerical method in detail. Section 3 discusses the feasibility and stability of the method, which involves a very important property of the method, the so-called Jensen condition. Section 4 discusses the accuracy of the method and proves that the method is essentially second-order accurate. In Section 5, we present several numerical examples computed with our method, which include the Zabusky–Kruskal’s example [25], to show its good stability property for long-time numerical integration. Finally, Section 6 is the conclusion.

Section snippets

Numerical solution

We consider the Cauchy problem for the KdV equationut+12u2x+εuxxx=0,u(x,0)=u0(x),with a suitable initial function u0(x), where ε is a constant which may be very small. As we have mentioned in the previous section, Eq. (2.1) possesses infinitely many conservation laws and the first two of them are Eq. (2.1) and(u2)t+23u3x+ε(2uuxx-(ux)2)x=0.Eq. (2.1) is the conservation law for the momentum u and Eq. (2.2) is the conservation law for the energy U(u) = u2.

For numerical discretization, we consider

Feasibility of the method and Jensen condition

As we have seen in the previous section, our method involves two entities, the numerical momentum un and numerical energy Un, and both of them are computed conservatively, see Eqs. (2.15), (2.17), (2.28), (2.32). We note that the numerical energy is not computationally passive in the method; it gives feedback to the solution in solution reconstruction in Aτ. With a given numerical energy the reconstruction slope sjn is solved out from Eq. (2.12). However, the first question that should be asked

Residual error analysis and scheme’s accuracy

The truncation error of a numerical method for PDE is customarily defined as the error caused by replacing the numerical solution in the method with true solution to the PDE, see [9], [10], [15]. Equivalently, the residual error is the error of one step computation with the numerical solution at tn being exact. The difference between the two errors is a factor of the time step τ. Because all the previously described numerical methods involve two numerical entities, the numerical momentum and

Numerical experiments

In this section, we are going to present several numerical examples computed by the Strang’s splitting version (2.9) of our method to show the efficiency of the method. We will give particular emphasis on the stability and structure-preserving feature of our method in long-time numerical integrations, especially in the “convection-dominated” cases. In all the examples, we use blue solid lines to represent numerical solutions and use red dot–dash lines to represent exact solutions.

Conclusion

We construct a finite-volume method for the KdV equation which conserves both the momentum and energy. The main ingredient of the method is a numerical device that enables us to construct numerical schemes for a PDE that also simulate related equations. Splitting approach is employed in the construction of the method. We prove that the method is stable and second-order accurate in certain sense. Numerical experiments show that the method has a very good stability property and suits for

Acknowledgements

The authors wish to thank our colleague Prof. Zhang Dajun for the enlightening discussion with him, his valuable knowledge on the KdV equation really helped us in preparing this paper. The authors wish to thank Dr. Deng Zhenguo for the numerical simulation of the Zabusky–Kruskal’s example using the spectral symplectic method of Prof Ma Heping and him, the comparison of our numerical results with which verifies the integrity of our method. Finally, the authors wish to thank the referees for

References (26)

  • R.J. LeVeque

    Numerical Methods for Conservation Laws

    (1990)
  • H. Li, Z. Wang, D. Mao, Numerically neither dissipative nor compressive scheme for linear advection equation and its...
  • H. Li, Entropy dissipating scheme for hyperbolic system of conservation laws in one space dimension, Doctoral thesis,...
  • Cited by (0)

    Research is supported by Shanghai Pu Jiang Program [2006] 118.

    View full text