1 Introduction

In 1895, Korteweg and de Vries [1] developed the Korteweg de Vries (KdV) equation to model weakly nonlinear waves. It has been used in several different fields to describe various physical phenomena of interest. The KdV-Burgers (KdVB) equation which is derived by Su and Gardner [2] appears in the study of the weak effects of dispersion, dissipation, and nonlinearity in waves propagating in a liquid-filled elastic tube. Recently, the nonlinear fractional partial differential equations, such as fractional KdV-Burgers equation [3], fractional Schrödinger-Korteweg-de Vries equations [4] and fractional Burgers’ equations [5], were also presented to describe many important phenomena and dynamic processes in physics. Some theoretical issues concerning the KdVB equation, such as the traveling wave solution, have received considerable attention [6]. A number of exact solitary wave solutions to KdVB equations have been found in the past few years. The exact solutions of a compound KdVB equation were obtained by using a homogeneous balance method in [7]. By using the special truncated expansion method, Hassan [8] constructed solitary wave solutions for the compound KdVB equation and discussed the generalized two-dimensional KdVB equation. The Exp-function method is applied to obtain generalized solitary solutions and periodic solutions for the KdVB equation in [9]. In the past several decades, many authors have paid attention to studying the numerical methods for solving KdVB equations. Soliman extended the variational iterations method to solve the KdVB equations [10]. A new decomposition method was presented to find the explicit and numerical solutions of the KdVB equations without any transformations, linearization or weak nonlinearity assumptions in [11]. The element-free Galerkin (EFG) method for numerically solving the compound KdVB equation was discussed by Rong-Jun and Yu-Min in [12]. The explicit restrictive Taylor approximation (RTA) was implemented to find numerical solution of KdV-Burgers in [13]. Nonlinear dispersive wave propagation problems that described the KdVB equations in [14] were simulated by high-order compact finite difference schemes coupled with high-order low-pass filter and the classical fourth-order Runge-Kutta scheme.

In 1992, based on implicit interpolations, high-order compact (HOC) difference schemes for different derivatives were developed by Lele [15]. These implicit schemes were very accurate in smooth regions, and they have spectral-like resolution properties by using the global grid. Li and Visbal applied the compact schemes coupled with high-order low-pass filter for solving KdV-Burgers equations in [14]. In the past few years, it has been popular for using the less diffusive and less oscillating CIP scheme which was developed by Takewaki et al. [16] to solve hyperbolic equation. The classical CIP schemes which were essentially written as the semi-Lagrangian formulation were low-diffusion and stable. The scheme can solve hyperbolic equations with third-order accuracy in space [17]. However, the original CIP method [16, 1820] utilizes auxiliary boundary conditions for the spatial gradient information. Usually, in order to get the values of derivation on the node, it has to differentiate the equation with spatial variable. The procedure is easy while the velocity is constant, but it is difficult for complex equations. By using the compact scheme for the values of derivation on the nodes, we present a new compact scheme based on the characteristic method for solving KdV-Burgers equations.

In this paper, a new numerical method named compact-type CIP schemes based on combination of CIP and high-order compact schemes is advanced to solve the KdV-Burgers equations. The present scheme is mainly based on the idea of characteristic method; as a new ingredient, the high-order compact scheme is employed to obtain the derivatives rather than differentiate the equation with spatial variable to construct a CIP scheme, and then resolution properties can also be obtained. By comparing with the classical compact scheme for solving KdV-Burgers equations, no filter is used to overcome non-physical oscillations.

The remainder of the paper is organized as follows. In Section 2, CIP is described in brief, then high-order compact schemes are given. The numerical algorithm of the present schemes is described in this section. The merit of our present method for KdVB equation is displayed in Section 3, a comparison of numerical solutions with exact solutions is carried out to illustrate the capability of the method for nonlinear dispersive equations. At last, a short discussion of the present method is given in Section 4.

2 Descriptions of methods

In this paper, we consider the following generalized KdV-Burgers equation [8]:

$$ u_{t}+(\alpha+\beta u)uu_{x}+\gamma u_{xx}-\delta u_{xxx}=0, $$
(2.1)

where α, β, γ and δ are real constants. The equation can be split into two parts

$$\begin{aligned}& u_{t}+a(u)u_{x}=0, \end{aligned}$$
(2.2)
$$\begin{aligned}& u_{t}=-\gamma u_{xx}+\delta u_{xxx}, \end{aligned}$$
(2.3)

where \(a(u)=(\alpha+\beta u)u\).

2.1 The CIP method

In this section, we review the CIP method briefly. The CIP method in [19] uses cubic-polynomial interpolation to get the values of function on nodes. The primary goal of the numerical algorithm will be to retrieve the lost information inside the grid cell between these digitized points. We differentiate the advective phase of equation (2.2) with the spatial variable x, then we get [21]

$$ \frac{\partial g}{\partial t}+a(u)\frac{\partial g}{\partial x}=-g\frac{\partial a(u)}{\partial x}, $$
(2.4)

where \(g=\partial u/\partial x\) stands for the spatial derivatives of u. For the computational domain \([a,b]\), we only consider a uniform grid with a space step \(\Delta x=\frac{b-a}{N}\). If both the values of u and g are given at two grid points, the cubic polynomial at the nth step can be written as

$$ U_{i}^{n}(x)=a_{i}X^{3}+b_{i}X^{2}+g_{i}^{n}X+u_{i}^{n}, $$
(2.5)

where \(X=x-x_{i}\), and coefficients \(a_{i}\), \(b_{i}\), \(c_{i}\) and \(d_{i}\) will be obtained with the following constrains:

$$ U_{i}^{n}(x_{i})=u_{i}^{n},\qquad U_{i}^{n}(x_{iup})=u_{iup}^{n}, $$
(2.6)

where \(iup=i-\operatorname{sgn}(a(u_{i}))\), the sign \(\operatorname{sgn}(a(u_{i}))\) stands for the sign of \(a(u_{i})\). Then the coefficients of the cubic polynomial are given

$$ \begin{aligned} &a_{i}=\frac{g_{i}^{n}+g_{iup}^{n}}{\Delta x_{i}^{2}}+ \frac{2(u_{i}^{n}-u_{iup}^{n})}{\Delta x_{i}^{3}}, \\ &b_{i}=\frac{3(u_{iup}^{n}-u_{i}^{n})}{\Delta x_{i}^{2}}-\frac{2g_{i}^{n}+g_{iup}^{n}}{\Delta x_{i}}, \end{aligned} $$
(2.7)

where \(\Delta x_{i}=x_{iup}-x_{i}\). Thus, the profile u and g at the \((n+1)\)th step can be obtained by shifting the profile by \(a(u_{i})\Delta t\)

$$ \begin{aligned} &u_{i}^{n+1}=U_{i}^{n} \bigl(x_{i}-a(u_{i})\Delta t \bigr), \\ &g_{i}^{n+1}=U_{i}^{'n} \bigl(x_{i}-a(u_{i})\Delta t \bigr). \end{aligned} $$
(2.8)

We define \(\xi_{i}=-a(u_{i})\Delta t\), then the formulates are rewritten as

$$ u_{i}^{n+1}=a_{i}\xi_{i}^{3}+b_{i} \xi_{i}^{2}+g_{i}^{n} \xi_{i}+u_{i}^{n},\qquad g_{i}^{n+1}=3a_{i} \xi _{i}^{n}+2b_{i}\xi_{i}^{n}+g_{i}^{n}. $$
(2.9)

It can be seen that we only use two points in CIP schemes to get \(u_{i}^{n+1}\). Then we display the implementation of this method, while the computational boundary is complex and less boundary points need to be handled. The CIP method uses only two neighboring stencils, but keeps third-order precision. In this sense, high-order precision is gained though less computational stencils are used. For more details about CIP schemes, readers can refer to [21].

2.2 High-order compact scheme

Lele developed high-order linear compact difference schemes based on implicit interpolations in [15]. These implicit schemes are very accurate in smooth regions and have spectral-like resolution properties by using the global grid. The finite difference approximation to the derivative of the function is expressed as a linear combination of the given function values, then, by solving a tridiagonal or pentadiagonal system, the derivatives of the function can be obtained. In this section, a review of formulas for first-order, second-order and third-order derivatives is presented. For more details about the high-order compact schemes, readers can refer to [15, 22].

2.2.1 The derivatives at interior nodes

In this paper, the KdVB equation on a uniform mesh is considered, the point values and the derivatives are indicated by \(u_{i}\), \(u_{i}'\), \(i=1,\ldots, N\). For the first-order derivatives at interior nodes, we have the formula [15]

$$ u_{i}^{\prime}+\alpha \bigl(u_{i-1}^{\prime}+u_{i+1}^{\prime} \bigr)+\beta \bigl(u_{i-2}^{\prime}+u_{i+2}^{\prime} \bigr)=c\frac{u_{i+3}-u_{i-3}}{6h}+b\frac {u_{i+2}-u_{i-2}}{4h}+a\frac{u_{i+1}-u_{i-1}}{2h}. $$
(2.10)

If the schemes are restricted to \(\beta\geq0\) and \(c=0\), this provides a one-parameter α-family of fourth-order tridiagonal scheme with

$$ \beta=0,\qquad c=0,\qquad a=\frac{2}{3}(\alpha+2),\qquad b= \frac{1}{3}(4\alpha-1). $$
(2.11)

A simple sixth-order tridiagonal scheme is given by the coefficients

$$ \alpha=\frac{1}{3},\qquad \beta=0,\qquad c=0,\qquad a=\frac{14}{9}, \qquad b=\frac{1}{9}. $$
(2.12)

The scheme can be rewritten as follows:

$$ u_{i}^{\prime}+\frac{1}{3} \bigl(u_{i-1}^{\prime}+u_{i+1}^{\prime} \bigr)= \frac{14}{9}\frac {u_{i+1}-u_{i-1}}{2h} +\frac{1}{9}\frac{u_{i+2}-u_{i-2}}{2h}. $$
(2.13)

For the second-order derivatives at interior nodes, we have the formula [15]

$$ \begin{aligned}[b] &u_{i}^{\prime\prime}+ \alpha \bigl(u_{i-1}^{\prime\prime}+u_{i+1}^{\prime\prime} \bigr)+ \beta \bigl(u_{i-2}^{\prime\prime}+u_{i+2}^{\prime\prime} \bigr) \\ &\quad=c\frac{u_{i+3}-2u_{i}+u_{i-3}}{9h^{2}}+b\frac {u_{i+2}-2u_{i}+u_{i-2}}{4h^{2}}+a\frac{u_{i+1}-2u_{i}+u_{i-1}}{h^{2}}, \end{aligned} $$
(2.14)

which provides a one-parameter α-family of fourth-order tridiagonal schemes with

$$ \beta=0,\qquad c=0,\qquad a=\frac{4}{3}(1-\alpha),\qquad b= \frac{1}{3}(-1+10\alpha). $$
(2.15)

A sixth-order tridiagonal scheme is also given with

$$ \alpha=\frac{2}{11},\qquad \beta=0,\qquad c=0,\qquad a=\frac{12}{11}, \qquad b=\frac{3}{11}, $$
(2.16)

then the sixth-order tridiagonal scheme for (2.14) can be rewritten as follows

$$ u_{i}^{\prime\prime}+\frac{2}{11} \bigl(u_{i-1}^{\prime\prime}+u_{i+1}^{\prime\prime} \bigr) = \frac{3}{11}\frac{u_{i+2}-2u_{i}+u_{i-2}}{4h^{2}}+\frac{12}{11}\frac {u_{i+1}-2u_{i}+u_{i-1}}{h^{2}}. $$
(2.17)

For the third-order derivatives at interior nodes, the following formula is given in [15]:

$$ \alpha \bigl(u_{i-1}^{\prime\prime\prime} +u_{i+1}^{\prime\prime\prime} \bigr)+u_{i}^{\prime\prime\prime} =b\frac {u_{i+3}-3u_{i+1}+3u_{i-1}-u_{i-3}}{8h^{3}}+a\frac {u_{i+2}-2u_{i+1}+2u_{i-1}-u_{i-2}}{2h^{3}}, $$
(2.18)

which provides an α-family of fourth-order tridiagonal schemes with \(a=2\), \(b=2\alpha-1\). The simple sixth-order tridiagonal scheme is given with \(\alpha=\frac{7}{16}\), \(a=2\), \(b=-\frac{1}{8}\).

2.2.2 Non-periodic boundaries

For those near boundary nodes, approximation formulas for the first-order derivatives of non-periodic boundary problems are given by one-side formulation as follows [15]:

$$ \begin{aligned} &u_{1}^{\prime}+\alpha u_{2}^{\prime}=\frac{1}{h}(au_{1}+bu_{2}+cu_{3}+du_{4}), \\ &u_{N}^{\prime}+\alpha u_{N-1}^{\prime}=- \frac{1}{h}(au_{N}+bu_{N-1}+cu_{N-2}+du_{N-3}). \end{aligned} $$
(2.19)

The coefficients for the schemes of third- and fourth-order derivatives are given by

$$ \begin{aligned} &a=-\frac{11+2\alpha}{6},\qquad b=\frac{6-\alpha}{2}, \qquad c=\frac{2\alpha -3}{2},\qquad d=\frac{2-\alpha}{6}\quad(\mbox{third order}), \\ &\alpha=3,\qquad a=-\frac{17}{6},\qquad b=\frac{3}{2}, \qquad c= \frac{3}{2},\qquad d=-\frac{1}{6} \quad(\mbox{fourth order}). \end{aligned} $$
(2.20)

The sixth-order scheme is also given, where the first and second points need to be handled. For the first point, the formula is

$$ u_{1}^{\prime}+\alpha u_{2}^{\prime}= \frac{1}{h} (a_{1}u_{1}+a_{2}u_{2}+a_{3}u_{3}+a_{4}u_{4}+a_{5}u_{5}+a_{6}u_{6}), $$
(2.21)

where

$$ \begin{aligned} &\alpha=5,\qquad a_{1}=-\frac{197}{60},\qquad a_{2}=- \frac{12}{5},\qquad a_{3}=5,\\ & a_{4}=- \frac{5}{3},\qquad a_{5}=\frac{5}{12},\qquad a_{6}=-\frac{1}{20}. \end{aligned} $$
(2.22)

For the second point, the formula is

$$ \alpha u_{1}^{\prime}+u_{2}^{\prime}+\alpha u_{3}^{\prime}=\frac{1}{h}(b_{1}u_{1}+b_{2}u_{2}+b_{3}u_{3}+b_{4}u_{4}+b_{5}u_{5}+b_{6}u_{6}), $$
(2.23)

where

$$ \begin{aligned} &\alpha=\frac{2}{11},\qquad b_{1}=-\frac{20}{33}, \qquad b_{2}=-\frac{35}{132},\qquad b_{3}=\frac{34}{33}, \\ & b_{4}=-\frac{7}{33},\qquad b_{5}= \frac{2}{33},\qquad b_{6}=-\frac{1}{132}. \end{aligned} $$
(2.24)

The dissymmetry condition is used for the Nth and \((N-1)\)th points.

The boundary formulations for the second-order derivatives also were constructed in [15].

$$ \begin{aligned} &u_{1}^{\prime\prime}+\alpha u_{2}^{\prime\prime} =\frac{1}{h^{2}}(au_{1}+bu_{2}+cu_{3}+du_{4}+eu_{5}), \\ &u_{N}^{\prime\prime}+\alpha u_{N-1}^{\prime\prime}=- \frac{1}{h^{2}}(au_{N} +bu_{N-1}+cu_{N-2}+du_{N-3}+eu_{N-4}). \end{aligned} $$
(2.25)

For the third-order accuracy, the coefficients are given as follows:

$$ \begin{aligned} &a=\frac{11\alpha+35}{12},\qquad b=-\frac{5\alpha+26}{3}, \qquad c=\frac{\alpha+19}{2},\\ & d=\frac{\alpha-14}{3},\qquad e=\frac{11-\alpha}{12}. \end{aligned} $$
(2.26)

2.3 The proposed compact-type CIP method

In this section, a new compact-type CIP scheme is proposed for equation (2.1). The present scheme is mainly based on the idea of characteristic method; as a new ingredient, the high-order compact scheme is employed to obtain the derivatives rather than differentiate the equation with spatial variable to construct a CIP scheme. To explain the present scheme, we consider the KdVB equations as follows:

$$ u_{t}+\alpha uu_{x}+\gamma u_{xx}- \delta u_{xxx}=0 , $$
(2.27)

where α and δ are constants. We split the solution of equation into two phases

$$\begin{aligned}& \frac{\partial u}{\partial t}+\alpha u\frac{\partial u}{\partial x}=0, \end{aligned}$$
(2.28)
$$\begin{aligned}& \frac{\partial u}{\partial t}=\delta u_{xxx}-\gamma u_{xx}. \end{aligned}$$
(2.29)

We consider a 1-D grid with \(x_{0}, x_{1}, x_{2},\ldots, x_{N-1},x_{N}\). At the nth step, the point values of u are denoted by \(u_{0}^{n}, u_{1}^{n} ,\ldots, u_{N-1}^{n},u_{N}^{n}\). At first, CIP method is applied to the advective equation (2.28). If both the values of \(u_{i}\) and \(u_{i}^{\prime n}\) are given at two grid points, the cubic polynomial at the nth time stage can be written as follows:

$$ U_{i}^{n}(X)=a_{i}^{n}X^{3}+b_{i}^{n}X^{2}+c_{i}^{n}X+u_{i}^{n}, $$
(2.30)

where \(X=x_{i}-x\), the coefficients \(a_{i}^{n}\), \(b_{i}^{n}\), \(c_{i}^{n}\) are given by (2.7). The predictor-corrector scheme is employed to calculate the value \(u^{*}\).

To formulate the classical CIP scheme, equation (2.4) was used to get the values of \(u_{i}^{\prime n}\). In the present method, the high-order compact scheme (2.10) is employed to evaluate the derivatives \(u_{i}^{\prime n}\), \(0\leq i\leq N\). In this paper, we use a simple sixth-order tridiagonal scheme for interior points and boundary points, then the coefficients \(a_{i}^{n}\), \(b_{i}^{n}\), \(c_{i}^{n}\) in (2.7) can be obtained. Temporal discretization for equation (2.29) can be solved by using a third-order Runge-Kutta method as follows:

$$ \begin{aligned} &u^{(1)}=u^{n}+\Delta tL \bigl(u^{*} \bigr), \\ &u^{(2)}=\frac{3}{4}u^{n}+\frac{1}{4}u^{(1)}+ \frac{1}{4}\Delta tL \bigl(u^{(1)} \bigr), \\ &u^{n+1}=\frac{1}{3}u^{n}+\frac{2}{3}u^{(2)}+ \frac{2}{3}\Delta tL \bigl(u^{(2)} \bigr), \end{aligned} $$
(2.31)

where \(L(u)=-\gamma u_{xx}+\delta u_{xxx}\). The high-order compact formulas (2.17) and (2.18) are used to solve the second- and third-order derivatives in equation (2.31). In this paper, we use the sixth-order tridiagonal scheme with the periodic boundary condition.

Supposing the values \(u_{i}^{n}\) have been obtained, the essential ingredients of the computational algorithm for equation (2.27) consist of the following steps:

  1. 1.

    CIP method is used to obtain \(u^{*}\)

    1. a.

      The values of the first-order derivative on all the nodes are obtained by using the HOC scheme (2.13).

    2. b.

      Predictor-corrector CIP scheme:

      1. (a)

        Predictor step

        $$u_{i}^{**}=U_{i}^{n} \bigl(x_{i}-\alpha u_{i}^{n}\Delta t \bigr)=a_{i}^{n}{\xi_{i}}^{3}+b_{i}^{n}{ \xi_{i}}^{2}+c_{i}^{n} \xi_{i}+u_{i}^{n}, $$

        where \(\xi_{i}=-\alpha u_{i}^{n}\Delta t\). We also get \(u^{***}\) at the (n+\(\frac{1}{2}\))th time stage by using linear interpolation or QUICK scheme based on the value \(u^{n}_{i}\).

      2. (b)

        Corrector step (CIP method)

        $$\hat{u}_{i}^{*}=U_{i}^{n} \bigl(x_{i}-\alpha u_{i}^{\diamond}\Delta t \bigr)=a_{i}^{n}{\xi_{i}}^{3}+b_{i}^{n}{ \xi_{i}}^{2}+c_{i}^{n} \xi_{i}+u_{i}^{n}, $$

        where \(u^{\diamond}=\frac{1}{2}(u^{**}+u^{***})\).

      3. (c)

        The predictor and corrector steps are employed again to get \(u^{*}\).

  2. 2.

    High-order compact schemes and Runge-Kutta method for solving equation (2.29)

    1. (a)

      High-order formulas (2.17) and (2.18) are used to get second- and third-order derivatives, respectively.

    2. (b)

      The third-order SSP Runge-Kutta method (2.31) is used to get the value \(u_{i}^{n+1}\).

3 Numerical results

In this section, we provide a numerical example with two different initial conditions for the present compact-CIP scheme with the third-order SSP Runge-Kutta time discretization. The non-periodic boundary formulation is applied to (2.28) (HOC approximation formulas for first- and second-order derivatives are used) and periodic boundary conditions for third-order derivatives in the following example.

Example 3.1

We consider the KdVB equation

$$ u_{t}+(\alpha+\beta u)uu_{x}+\gamma u_{xx}-\delta u_{xxx}=0 $$
(3.1)

with the initial solution for \(\gamma=0\), \(\delta=-1\)

$$ u(x,0)=-\frac{\alpha}{2\beta} \biggl(1+\operatorname{tanh} \biggl( \frac{\alpha}{2\sqrt{(-6\beta)}}(x) \biggr) \biggr). $$
(3.2)

We show the numerical solutions for different values of α and β in Figure 1. If we let \(\beta=0\), \(\alpha=2\), \(\gamma=-5\), \(\delta=-3\). The exact solution for this case is [14]

$$ u(x,t)=\frac{1}{3} \bigl(\operatorname{sech}^{2}(\theta/2) +2 \operatorname{tanh}(\theta/2)+2 \bigr), $$
(3.3)

where \(\theta=-\frac{1}{3}x+\frac{2}{3}t\). The numerical and analytical solutions are shown in Figure 2. The numerical solutions are identical to the exact solution.

Figure 1
figure 1

Numerical solutions of Example 3.1 for the equation \(\pmb{u_{t}+(\alpha-\beta u)uu_{x}+u_{xxx}=0}\) with different α and β .

Figure 2
figure 2

Numerical and analytical solutions of Example 3.1 at various time stages.

4 Conclusions

In this paper, a high-order compact-CIP scheme is applied to simulate Korteweg-de Vries Burgers equations. The proposed scheme is mainly based on the idea of characteristic method; as a new ingredient, the high-order compact scheme is employed to obtain the derivatives rather than differentiate the equation with spatial variable to construct a CIP scheme, and then resolution properties can also be obtained. The numerical results show the good performance and high resolution property of the proposed scheme.