• No results found

A novel approach via mixed Crank–Nicolson scheme and differential quadrature method for numerical solutions of solitons of mKdV equation

N/A
N/A
Protected

Academic year: 2022

Share "A novel approach via mixed Crank–Nicolson scheme and differential quadrature method for numerical solutions of solitons of mKdV equation"

Copied!
17
0
0

Loading.... (view fulltext now)

Full text

(1)

https://doi.org/10.1007/s12043-019-1751-1

A novel approach via mixed Crank–Nicolson scheme

and differential quadrature method for numerical solutions of solitons of mKdV equation

ALI BA ¸SHAN

Department of Mathematics, Science and Art Faculty, Zonguldak Bulent Ecevit University, 67100 Zonguldak, Turkey

E-mail: alibashan@gmail.com

MS received 28 June 2018; revised 5 November 2018; accepted 16 November 2018;

published online 30 March 2019

Abstract. The purpose of the present study is to obtain numerical solutions of the modified Korteweg–de Vries equation (mKdV) by using mixed Crank–Nicolson scheme and differential quadrature method based on quintic B-spline basis functions. In order to control the effectiveness and accuracy of the present approximation, five well- known test problems, namely, single soliton, interaction of double solitons, interaction of triple solitons, Maxwellian initial condition and tanh initial condition, are used. Furthermore, the error norms L2andLare calculated for single soliton solutions to measure the efficiency and the accuracy of the present method. At the same time, the three lowest conservation quantities are calculated and also used to test the efficiency of the method. In addition to these test tools, relative changes of the invariants are calculated and presented. After all these processes, the newly obtained numerical results are compared with results of some of the published articles.

Keywords. Partial differential equations; differential quadrature method; mKdV equation; solitons; quintic B-splines.

PACS Nos 02.30.Jr; 02.30.Mv; 02.60.x; 02.60.Cb 1. Introduction

Many physical phenomena are described via partial differential equations (PDEs). For this reason, a lot of researchers have investigated the solution of PDEs [1–5].

One of the most famous nonlinear differential equa- tion known as the Korteweg–de Vries equation (KdV) equation in its simplest form is given by

Ut +εU Ux+μUx x x =0, (1)

where subscriptsx andtdenote partial derivatives with respect to space and time, respectively, andεandμare constant parameters.

The KdV equation stems from the study of shallow water waves [6] derived by Korteweg and de Vries to describe shallow water waves of long-wavelength and small-amplitude travelling in canals. It has been proved earlier that this equation has solitary waves as solu- tions, and hence it can have any number of solitons [7].

The equation has been the simplest nonlinear equation describing two important effects: nonlinearity which

is represented byU Ux and linear dispersion which is represented byUx x x.The nonlinearity ofU Ux tends to localise the wave whereas dispersion spreads the wave out. The stability of solitons is a result of the delicate equilibrium between the two effects of nonlinearity and dispersion [8–11].

One of the most important KdV-type equation is known as modified KdV (mKdV) equation which was first introduced by Miura [12] and is given as follows:

Ut +εU2Ux+μUx x x =0. (2)

The mKdV equation has many physical applications in a wide range of areas such as electrodynamics, elec- tromagnetic waves, elastic media, traffic flow [13,14], fluid dynamics [15,16] and plasma physics [17]. Various methods are used to obtain solutions of the KdV equa- tion [18–21]. Both numerical and analytical solutions of the mKdV equation have been investigated by many researchers [22–30].

Differential quadrature method (DQM) was first introduced by Bellmanet al [31] to obtain the numer- ical solution of PDEs. Many researchers have developed

(2)

different types of DQMs utilising various base functions such as Legendre polynomials and spline functions [31,32], Hermite polynomials [33], radial basis functions [34], harmonic functions [35], Sinc func- tions [36,37], B-spline functions [38–40] and modified B-spline functions [41–43].

In this work, quintic B-spline-based Crank–Nicolson DQM (QCN-DQM) is going to be applied to obtain numerical solutions of the mKdV equation.

2. Quintic B-spline DQM

Let us take the grid distributiona = x1 < x2 <· · · <

xN = b of a finite interval [a,b] into consideration.

Provided that any given functionU(x)is smooth enough over the solution domain, its derivatives with respect to x at a grid point xi can be approximated by a linear summation of all the functional values in the solution domain, i.e.

Ux(r)(xi)= d(r)U dx(r)|xi =

N j=1

wi j(r)U(xj),

i=1,2, . . . ,N, r =1,2, . . . ,N −1, (3) where r denotes the order of the derivative, wi j(r) represent the weighting coefficients of the rth-order derivative approximation and N denotes the number of grid points in the solution domain. Here, the index j

represents the fact that w(i jr) is the corresponding weighting coefficient of the functional valueU(xj). We need the first- and the third-order derivatives of the func- tionU(x). Therefore, we are going to find the value of eq. (3) forr =1 and 3.

Let Qm(x) be the quintic B-splines with knots at points xi where the uniformly distributed N grid points are taken as a = x1 < x2 < · · · <

xN = b on the ordinary real axis. In that case, the B-splines{Q1,Q0, . . . ,QN+2}form a basis for func- tions defined over[a,b]. The quintic B-splines Qm(x) are defined by the following relationships:

Qm(x)= 1 h5

⎧⎪

⎪⎪

⎪⎪

⎪⎪

⎪⎪

⎪⎪

⎪⎪

⎪⎨

⎪⎪

⎪⎪

⎪⎪

⎪⎪

⎪⎪

⎪⎪

⎪⎪

(xxm3)5, x ∈ [xm3,xm2], (xxm3)5−6(xxm2)5, x ∈ [xm2,xm1], (xxm3)5−6(xxm2)5+15(xxm1)5, x ∈ [xm1,xm],

(xxm3)5−6(xxm2)5+15(xxm1)5

−20(xxm)5, x ∈ [xm,xm+1], (xxm3)5−6(xxm2)5+15(xxm1)5

−20(x−xm)5+15(x−xm+1)5, x ∈ [xm+1,xm+2], (xxm3)5−6(xxm2)5+15(xxm1)5

−20(xxm)5+15(xxm+1)5−6(xxm+2)5, x ∈ [xm+2,xm+3],

0, otherwise,

whereh =xmxm1for allm[44].

Using the quintic B-splines as test functions in the fundamental DQM, eq. (3) leads to the equation

(r)Qm(xi)

∂x(r) =

m+2 j=m2

w(i,rj)Qm(xj),

m= −1,0, . . . ,N +2,i =1,2, . . . ,N. (4) An arbitrary choice ofileads to an algebraic equation system

M1W1=1, (5)

whereQi,j denotesQi(xj),

M1 =

⎢⎢

⎢⎢

Q1,−3 Q1,−2 Q1,−1 Q1,0 Q1,1

Q0,−2 Q0,−1 Q0,0 Q0,1 Q0,2

... ... ... ... ...

QN+1,N−1 QN+1,N QN+1,N+1 QN+1,N+2 QN+1,N+3

QN+2,N QN+2,N+1 QN+2,N+2 QN+2,N+3 QN+2,N+4

⎥⎥

⎥⎥

,

W1 =

w(i,−r)3 wi(,−r)2 · · · wi(,rN)+3 w(i,rN)+4T

(6)

(3)

and 1 =

(r)Q1(xi)

∂x(r)

(r)Q0(xi)

∂x(r) · · ·

(r)QN+1(xi)

∂x(r)

(r)QN+2(xi)

∂x(r) T

. (7)

The weighting coefficientswi(,rj) related to the ith grid points are determined by solving system (5). System (5) consists of N +8 unknowns and N +4 equations. To have a unique solution for the system, it is necessary to eliminate four unknown terms from the equation system.

By adding the following equations

(r+1)Q1(xi)

∂x(r+1) = 1 j=−3

w(ir,j)Q1(xj), (8)

(r+1)Q0(xi)

∂x(r+1) = 2 j=−2

w(i,rj)Q0(xj), (9)

(r+1)QN+1(xi)

∂x(r+1) =

N+3 j=N1

w(i,rj)QN+1(xj),

(r+1)QN+2(xi)

∂x(r+1) =

N+4 j=N

w(i,rj)QN+2(xj), (10)

to system (5), we easily obtain

M2W1 =2, (11)

where

M2 =

⎢⎢

⎢⎢

⎢⎢

⎢⎢

⎢⎢

⎢⎢

⎢⎢

⎢⎢

⎢⎢

⎢⎢

Q1,−3 Q1,−2 Q1,−1 Q1,0 Q1,1

Q−1,−3 Q−1,−2 Q−1,−1 Q−1,0 Q−1,1

Q0,−2 Q0,−1 Q0,0 Q0,1 Q0,2

Q0,−2 Q0,−1 Q0,0 Q0,1 Q0,2

Q1,−1 Q1,0 Q1,1 Q1,2 Q1,3

... ... ... ... ...

QN+1,N1 QN+1,N QN+1,N+1 QN+1,N+2 QN+1,N+3

QN+1,N1 QN+1,N QN+1,N+1 QN+1,N+2 QN+1,N+3

QN+2,N QN+2,N+1 QN+2,N+2 QN+2,N+3 QN+2,N+4

QN+2,N QN+2,N+1 QN+2,N+2 QN+2,N+3 QN+2,N+4

⎥⎥

⎥⎥

⎥⎥

⎥⎥

⎥⎥

⎥⎥

⎥⎥

⎥⎥

⎥⎥

⎥⎥

⎦ and

2=

(r)Q1(xi)

∂x(r)

(r+1)Q1(xi)

∂x(r+1)

(r)Q0(xi)

∂x(r)

(r+1)Q0(xi)

∂x(r+1)

(r)Q1(xi)

∂x(r) · · · (r)QN+1(xi)

∂x(r)

(r+1)QN+1(xi)

∂x(r+1)

(r)QN+2(xi)

∂x(r)

(r+1)QN+2(xi)

∂x(r+1) T

.

After using values of quintic B-splines at the grid points and eliminatingwi(,−r)3, wi(,−r)2, wi(,rN)+3andwi(,rN)+4from the system, we obtain an algebraic equation system hav- ing a five-banded coefficient matrix of the form

M3W2 =3, (12)

where

M3=

⎢⎢

⎢⎢

⎢⎢

⎢⎢

⎢⎢

⎢⎢

⎢⎢

37 82 21

8 33 18 1

1 26 66 26 1

1 26 66 26 1

... ... ... ... ...

1 26 66 26 1

1 26 66 26 1

1 18 33 8

21 82 37

⎥⎥

⎥⎥

⎥⎥

⎥⎥

⎥⎥

⎥⎥

⎥⎥

⎦ and

(4)

W2 =

⎢⎢

⎢⎢

⎢⎢

⎢⎢

⎢⎢

⎢⎢

⎢⎢

⎢⎢

⎢⎢

⎢⎢

⎢⎢

⎢⎢

⎢⎢

⎢⎣ w(i,−r)1

wi(,r0) ...

wi(,ri)2 wi(,ri)1 wi(r),i wi(,ri)+1 wi(,ri)+2

...

wi(,rN)+1 wi(,rN)+2

⎥⎥

⎥⎥

⎥⎥

⎥⎥

⎥⎥

⎥⎥

⎥⎥

⎥⎥

⎥⎥

⎥⎥

⎥⎥

⎥⎥

⎥⎥

⎥⎦ .

The non-zero entries of the load vector3are given as

1 = 1 30

−5Q(r)1(xi)+h Q(r1+1)(xi)

+40Q(0r)(xi)+8h Q(0r+1)(xi) , 0 = 1

10

5Q(0r)(xi)h Q(0r+1)(xi) , i2= Qi(r)2(xi),

i1= Qi(r)1(xi), i = Qi(r)(xi), i+1= Qi(r+)1(xi), i+2= Qi(r)2(xi), N+1= 1

10

5Q(Nr)+1(xi)+h Q(Nr++11)(xi) , N+2= −1

30

−40Q(Nr)+1(xi)+8h Q(Nr++11)(xi)

+5Q(Nr)+2(xi)+h Q(Nr++12)(xi)

. (13)

For example, if we apply the test functions Qm,m =

−1,0, . . . ,N+2, at the first grid pointx1for first-order derivative approximation by the selection ofi =1 and r =1 in eq. (13)

1 = 1 30

−5Q(1)1(x1)+h Q(2)1(x1)

+40Q(01)(x1)+8h Q(02)(x1) ,

−1= 1 30

−5 −5

h

+h 20

h2

+40 −50

h

+8h 40

h2

= −109 2h , 0 = 1

10

5Q(01)(x1)h Q(02)(x1) , 0 = 1

10

5 −50

h

h 40

h2

= −29 h , 1 =Q(11)(x1)=0,

2 =Q(21)(x1)= 50 h , 3 =Q(31)(x1)= 5

h, N+1 = 1

10

5Q(N1)+1(x1)+h Q(N2)+1(x1) , N+1 = 1

10[5.0+h.0]=0, N+2 = −1

30

−40Q(Nr)+1(xi)+8h Q(Nr++11)(xi)

+5Q(r)N+2(xi)+h Q(rN+1)+2 (xi) , N+2 = −1

30 [−40.0+8h.0+5.0+h.0]=0 is obtained and written in the matrix form as

M3

⎢⎢

⎢⎢

⎢⎢

⎢⎢

⎢⎢

⎢⎢

⎢⎢

⎢⎢

⎢⎢

⎢⎢

⎢⎣ w1(1,−)1

w(11,0) w1(1,1) w1,2(1) w1(1,3) w1(1,4) ...

w(11,)N+1 w(11,)N+2

⎥⎥

⎥⎥

⎥⎥

⎥⎥

⎥⎥

⎥⎥

⎥⎥

⎥⎥

⎥⎥

⎥⎥

⎥⎦

=

⎢⎢

⎢⎢

⎢⎢

⎢⎢

⎢⎢

⎢⎢

⎢⎢

−109/2h

−29/h 0 50/h

5/h 0 ...

0 0

⎥⎥

⎥⎥

⎥⎥

⎥⎥

⎥⎥

⎥⎥

⎥⎥

. (14)

By following the same idea used before to determine the weighting coefficientswk(1,)j, j= −1,0, . . . ,N +2, at grid pointsxk, 2 ≤ kN −1, we have obtained the following algebraic equation system:

(5)

M3

⎢⎢

⎢⎢

⎢⎢

⎢⎢

⎢⎢

⎢⎢

⎢⎢

⎢⎢

⎢⎢

⎢⎢

⎢⎢

⎢⎢

⎢⎢

⎢⎣ w(k1,−)1

...

w(k,k−31) w(k1,k)2 w(k1,k)1 w(k1,k) w(k1,k)+1 w(k1,k)+2 w(k1,k)+3

...

wk(1,)N+2

⎥⎥

⎥⎥

⎥⎥

⎥⎥

⎥⎥

⎥⎥

⎥⎥

⎥⎥

⎥⎥

⎥⎥

⎥⎥

⎥⎥

⎥⎥

⎥⎦

=

⎢⎢

⎢⎢

⎢⎢

⎢⎢

⎢⎢

⎢⎢

⎢⎢

⎢⎢

⎢⎢

⎢⎢

⎣ 0

...

0

−5/h

−50/h 0 50/h

5/h 0

...

0

⎥⎥

⎥⎥

⎥⎥

⎥⎥

⎥⎥

⎥⎥

⎥⎥

⎥⎥

⎥⎥

⎥⎥

. (15)

For the last grid point of the domain xN with the same idea, we determine the weighting coefficients w(N1,)j, j = −1,0, . . . ,N+2, and obtain the algebraic equation system as

M3

⎢⎢

⎢⎢

⎢⎢

⎢⎢

⎢⎢

⎢⎢

⎢⎢

⎢⎢

⎢⎢

⎢⎢

⎢⎣ w(N1,−) 1

w(N1,)0 ...

w(N1,)N3 w(N1,)N2 w(N1,)N1 w(N1,)N w(N1,)N+1 w(N1,N) +2

⎥⎥

⎥⎥

⎥⎥

⎥⎥

⎥⎥

⎥⎥

⎥⎥

⎥⎥

⎥⎥

⎥⎥

⎥⎦

=

⎢⎢

⎢⎢

⎢⎢

⎢⎢

⎢⎢

⎢⎢

⎢⎢

⎣ 0 0 ...

0

−5/h

−50/h 0 29/h 109/2h

⎥⎥

⎥⎥

⎥⎥

⎥⎥

⎥⎥

⎥⎥

⎥⎥

. (16)

We can obtain the third-order derivative approximations with similar calculation. Hence, system (12) is solved by the pentadiagonal Thomas algorithm.

3. Numerical discretisation

We have discretised eq. (2) using the forward finite dif- ference and Crank–Nicolson-type schemes. First, eq. (2) is discretised as

Un+1Un

t +μU3xn+1+U3xn 2 +ε

U2Ux

n+1

+ U2Ux

n

2 =0. (17)

Equation (17) is rewritten as follows:

2Un+1+t

μU3xn+1+ε U2Ux

n+1

=2Un+t

−μU3xnε

U2Uxn

. (18)

Then, the Rubin and Graves-type linearisation tech- nique [45] is used on the left-hand side of eq. (18) to linearise the nonlinear terms as given below:

(U Ux)n+1=

Un+1Uxn+UnUxn+1UnUxn

, (19)

(U Ux)n =UnUxn. (20)

Accordingly, we have obtained 2Un+1

+t

μU3xn+1U2n

Uxn+1+2UnUxnUn+1

=2Un+t

−μU3xn +ε U2n

Uxn

. (21)

Let us define some terms used in eq. (21) as Ani =

N j=1

wi j(1)Unj =Uxni,

Bin = N

j=1

w(i j3)Unj =U3xni, (22) whereAni andBinare the first- and third-order derivative approximations of theU functions at thenth time level on pointsxi, respectively. By substituting definition (22) in eq. (21), we obtain

2Uin+1+t

μ N

j=1

w(i j3)Unj+1

+ε

⎝Uin2

N j=1

w(i j1)Unj+1+2UinAniUin+1

=φin, (23)

where

φin =2Uin+t

−μBin+ε Uin2

Ani , for i =1(1)N.

Then we have reorganised eq. (23) for each grid point as follows:

2+t

μw(i i3)+ε Uin2

w(1)i i +2UinAni

Uin+1

+

N

j=1,i=j

t

μw(i j3)+ε Uin2

wi j(1) Unj+1

=φin. (24)

(6)

By implementing the system of eq. (24) on xi, i = 1(1)N grid points, N equations consisting of N unknowns which are denoted byUn+1will be obtained.

The equation system is shown in the matrix form below:

⎢⎢

⎢⎢

⎢⎢

⎢⎢

K1,1 K1,2 · · · K1,N K2,1 K2,2 · · · K2,N

... ... ... ...

KN1,1 KN1,2 · · · KN1,N

KN,1 KN,2 · · · KN,N

⎥⎥

⎥⎥

⎥⎥

⎥⎥

⎢⎢

⎢⎢

⎢⎢

⎢⎢

⎢⎣ U1n+1 U2n+1

...

UN−1n+1 UNn+1

⎥⎥

⎥⎥

⎥⎥

⎥⎥

⎥⎦

=

⎢⎢

⎢⎢

⎢⎢

⎢⎢

φn1 φn2 ...

φnN1 φnN

⎥⎥

⎥⎥

⎥⎥

⎥⎥

. (25)

Then the boundary conditions are applied to the system of eq. (25) and the first and last equations are eliminated from the systems. Hence,

⎢⎢

⎢⎢

⎢⎣

K2,2 K2,3 · · · K2,N1

K3,2 K3,3 · · · K3,N1

... ... ... ...

KN1,2 KN1,3 · · · KN1,N1

⎥⎥

⎥⎥

⎥⎦

⎢⎢

⎢⎢

⎢⎢

U2n+1 U3n+1

...

UNn+11

⎥⎥

⎥⎥

⎥⎥

=

⎢⎢

⎢⎢

⎢⎣

φ2nK2,1U1n+1K2,NUNn+1 φ3nK3,1U1n+1K3,NUNn+1

...

φnN1KN1,1U1n+1KN1,NUNn+1

⎥⎥

⎥⎥

⎥⎦ (26)

is obtained and solved by the Gauss elimination method easily.

4. Numerical examples

In this section, the five well-known test problems are investigated. The accuracy of the numerical method is checked by using the error norms L2 and L, respectively:

L2= h

N J=1

Uexactj(UN)j2, L=max

j

Ujexact(UN)j. (27)

Moreover, the following lowest three invariants corre- sponding to the conservation of mass, momentum and energy are computed:

I1= b

a

Udx, I2 = b

a

U2dx, I3=

b

a

U4−6μ ε

U2

dx. (28)

4.1 Single soliton

The mKdV equation has an analytic solution given in the following form:

U(x,t)=kpsech

kxkx0k3μt

, (29)

where p=

ε

1/2

, (30)

which represents a single soliton originally located at x0 moving to the right with velocity k2μ. Solitons may have positive or negative amplitudes depending on the sign of k but all of them have positive velocities.

We take eq. (29) as initial condition at t = 0 of the form

U(x,0)=kpsech(kxkx0), (31) and to allow comparison with earlier works [29,30], we use ε = 3, μ = 1, kp = c = 1.3, x0 = 15 and 0 ≤ x ≤ 200. For the present case, the obtained solution is going to move towards the right, having a con- stant speed with unchanged amplitude. We have plotted the graphs of the numerical solution of a single soli- ton with t = 0.025 and N = 1001 fromt = 0 to 100 in figure 1. To make a quantitative comparison, the error norms L2 and L have been computed and compared with earlier works [29,30] in table 1 until t =10, respectively. It is clearly seen from table1that by using the same parameters (t = 0.025) and less number of grid points(N = 761),the present results are superior. Besides this, by decreasing the time step size fromt=0.025 to 0.001, the error normsL2and Ldecrease to 1.6×105and 1.0×105, respectively att =10. After that, three lowest invariants,I1, I2 and I3, are computed with the same parameterst=0.025 andN =1001 and compared with earlier works [29,30]

in table2untilt =100.It is seen from table2that the present results are superior, again. It is obviously seen from table2that the three lowest invariants,I1,I2andI3, are changed by less than 2.7×106,−4.4×105and

−1.3×10−4, respectively, with respect to their original values during the long run t = 100 and so are small enough to accept. To show the accuracy of the present method for a long time, i.e.t =100 with a small time

References

Related documents

The modified extended mapping method was introduced to find different kinds of ion- acoustic solitary wave solutions of three-dimensional modified Korteweg–de

Korteweg–de Vries Burgers equation [16,20], modified Korteweg–de Vries (mKdV) equation [18], modified Korteweg–de Vries Kadomtsev–Petviashvili (mKdV- KP) equation [39],

A numerical method based on Crank–Nicolson scheme was put forward by Kadalbajoo and Awasthi [93], where they first reduced the Burgers’ equation to a linear heat equation

In this study, we propose a nonstandard finite differ- ence (NSFD) scheme for the numerical solution of the modified Korteweg–de Vries (mKdV) equation.. In the numerical experiments,

In this article, the novel (G /G) -expansion method is successfully applied to construct the abundant travelling wave solutions to the KdV–mKdV equation with the aid of

The aim of this work is to use the HB method to solve the evolution equation describing the present model namely, the extended Korteweg–de Vries (EKdV) equation, and obtain a class

Exact travelling wave solutions of the (3+1)-dimensional mKdV-ZK equation and the (1+1)-dimensional compound KdVB equation using the new approach of generalized G /G.

Exact travelling wave solutions of the (3+1)- dimensional mKdV-ZK equation and the (1+1)-dimensional compound KdVB equation using the new approach of generalized (G