Next Article in Journal
A Common Fixed-Point Theorem for Iterative Contraction of Seghal Type
Next Article in Special Issue
Relations among the Riemann Zeta and Hurwitz Zeta Functions, as Well as Their Products
Previous Article in Journal
An Extended Picture Fuzzy VIKOR Approach for Sustainable Supplier Management and Its Application in the Beef Industry
Previous Article in Special Issue
An Operator Method for the Stability of Inhomogeneous Wave Equations
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Numerical Solution of Nonlinear Schrödinger Equation with Neumann Boundary Conditions Using Quintic B-Spline Galerkin Method

by
Azhar Iqbal
1,2,*,
Nur Nadiah Abd Hamid
2 and
Ahmad Izani Md. Ismail
2
1
Mathematics and Natural Sciences, Prince Mohammad Bin Fahd University, 31952 Al Khobar, Saudi Arabia
2
School of Mathematical Sciences, Universiti Sains Malaysia, 11800 Penang, Malaysia
*
Author to whom correspondence should be addressed.
Symmetry 2019, 11(4), 469; https://doi.org/10.3390/sym11040469
Submission received: 10 March 2019 / Revised: 24 March 2019 / Accepted: 25 March 2019 / Published: 2 April 2019
(This article belongs to the Special Issue Mathematical Analysis, Analytic Number Theory and Applications)

Abstract

:
This paper is concerned with the numerical solution of the nonlinear Schrödinger (NLS) equation with Neumann boundary conditions by quintic B-spline Galerkin finite element method as the shape and weight functions over the finite domain. The Galerkin B-spline method is more efficient and simpler than the general Galerkin finite element method. For the Galerkin B-spline method, the Crank Nicolson and finite difference schemes are applied for nodal parameters and for time integration. Two numerical problems are discussed to demonstrate the accuracy and feasibility of the proposed method. The error norms L 2 , L and conservation laws I 1 ,   I 2 are calculated to check the accuracy and feasibility of the method. The results of the scheme are compared with previously obtained approximate solutions and are found to be in good agreement.

1. Introduction and Governing Equation

In this article, quintic B-spline Galerkin finite element method is applied to find the numerical solution of nonlinear Schrödinger (NLS) equation:
i u t = u x x α | u | 2 u
Equation (1) is called a self- focusing NLS equation ( α > 0 ) and allows for bright soliton solutions, as well as the defocusing NLS equation ( α < 0 ). u = u ( x , t ) is a complex-valued function over the real line, α is a positive number and i = 1 . The initial and boundary conditions are as follows:
u ( x , 0 ) = f ( x ) , a x b ,
u ( a , t ) = u ( b , t ) = u x ( a , t ) = u x ( b , t ) = u x x ( a , t ) = u x x ( b , t ) = 0 .
Let
u ( x , t ) = r ( x , t ) + i s ( x , t )
where r ( x , t ) and s ( x , t ) are real functions. Substituting Equation (4) into Equation (1), we obtain the coupled partial differential equations
{ s t r x x = α ( r 2 + s 2 ) r , r t + s x x = α ( r 2 + s 2 ) s .      
Finite element method is a powerful and established method used to approximate the solution of the partial differential equation. Besides finite element method, splines are also very useful to approximate the solution of partial differential equation with piecewise polynomial approximation. A finite element method with B-splines defines a new weighting approximate method and possesses computational advantages of B-splines and finite elements. Spline functions have been applied to develop numerical methods for the solution of nonlinear differential equations [1,2]. The analytical solution of the NLS equation is solved by using the inverse scattering method by Zakharov and Shabat [3]. In 1974, Zakharov and Manakov proved that the NLS equation is completely integrable [4]. Many researchers have worked on the solution of the partial differential equations by using collocation finite element method based on splines.
Spline-based numerical methods have been proposed by many researchers to obtain the numerical solution of nonlinear evolutionary problems. Mittal [5] obtained the numerical solutions of the extended Fisher–Kolmogorov equation using the quintic B-spline collocation method. Saka and Dag [6] presented the Galerkin finite element method based on quartic B-spline functions to obtain the numerical solution of the regularized long-wave (RLW) equation. Gardner [7] proposed the Galerkin finite element method based on cubic B-spline to find the numerical solution of the RLW equation. Dogan [8] presented the Galerkin method based on linear space finite elements to the numerical solution of the RLW equation. Kutluay and Ucar [9] and Saka and Dag [10] found the numerical solution of the coupled Korteweg–de-Vries (KdV) and Korteweg–de-Vries–Burgers (KdVB) equations using the Galerkin finite element method based on quadratic and quartic B-spline functions, respectively.
Gorgulu et al. [11] used exponential B-splines Galerkin finite element method for solving the advection–diffusion equation. They developed a new algorithm by incorporating exponential B-spline functions with the Galerkin finite element method. This method gives satisfactory results. The exponential B-splines Galerkin method is also applied to solve the Burger’s equation and the results are comparable with the quartic B-spline collocation method [2].
There are many non-spline numerical methods developed to solve the NLS equation; some of them are discussed here. Wang et al. [12] proposed a finite difference method using an artificial boundary conditions on an unbounded domain. In this scheme, extrapolation operator is applied to deal with the nonlinear term. Moreover, Barletti et al. [13] presented energy-conserving methods that can confer robustness on the numerical solution. Taleei and Dehghan [14] presented a time-splitting pseudo-spectral domain decomposition method, whereby the original equation is split into linear and nonlinear equations. The Chebyshev pseudo-spectral collocation method is used to solve the linear equation in the spatial dimension and Crank–Nicolson scheme in the temporal dimension. In this study, overlapping multi-domain scheme is chosen. Univariate multi-quadrics (MQ) quasi-interpolation method is developed where the spatial derivatives are calculated from the derivative of the quasi-interpolation.
Some spline-based numerical methods are proposed to solve the NLS equation. Quartic spline approximation and semidiscretization were applied using finite difference method by Sheng et al. [15]. Zlotnik and Zlotnik [16] were the first to implement the finite element method using non-discrete transparent boundary conditions. Naturally, higher-order finite element method is observed to converge faster. The exponential B-spline with collocation method was presented by Ersoy et al. [17]. The Crank–Nicolson scheme is used for time integration and exponential cubic B spline functions for the space integration. Dag [18] proposed a Galerkin finite element method based on quadratic B-spline functions.
In this paper, numerical scheme for the Galerkin method with quintic B-spline is developed to solve the NLS equation. Numerical results are generated and compared with some of the afore-mentioned methods.
This paper is organized as follows. In Section 2, the fundamentals of quintic B-spline Galerkin method are introduced. In Section 3, the initial parameters to find the solutions of the system are calculated. Numerical results and test problems are discussed in Section 4 followed by the conclusion in Section 5.

2. Quintic B-spline Galerkin Method

We consider a mesh Π over the finite domain [ a , b ] divided uniformly by grid points   x k with h = x k x k 1 ,   k = 1 , , N . Quintic B-spline function is chosen as the weight and trial function. The quintic B-splines, B k ( x ) , k = 2 , , N + 2 at the grid points x k forms a basis over the interval [ a , b ] as follows [19]:
B k ( x )   = 1 h 5 { p 1 = ( x x k 3 ) 5 , x [ x k 3 , x k 2 ] , p 2 = p 1 6 ( x x k 2 ) 5 , x [ x k 2 , x k 1 ] , p 3 = p 2 + 15 ( x x k 1 ) 5 , x [ x k 1 , x k ] , p 4 = p 3 20 ( x x k ) 5 , x [ x k , x k + 1 ] , p 5 = p 4 + 15 ( x x k + 1 ) 5 , x [ x k + 1 , x k + 2 ] , p 6 = p 5 6 ( x x k + 2 ) 5 , x [ x k + 2 , x k + 3 ] , 0 otherwise .
The global approximate solution, u N ( x , t ) , for the NLS equation in Equation (1) is written in terms of the quintic B-spline function as
u N ( x , t ) = s N ( x , t ) + r N ( x , t ) = k = 2 N + 2 δ k ( t ) B k ( x ) ,
where
δ k ( t ) = ρ k ( t ) + ψ k ( t ) = { s N ( x , t ) = k = 2 N + 2 ρ k ( t ) B k ( x ) , r N ( x , t ) = j = 2 N + 2 ψ k ( t ) B k ( x ) .
The functions ρ k ( t ) and ψ k ( t ) are time-dependent parameters that are determined from the boundary and residual conditions. We make use of a local coordinate transformation
η = x x k ,   η [ 0 , h ] ,
The quintic B-spline shape functions in Equation (6) can be defined in term of η ,
B k = 1 h 5 { h 5 5 h 4 η + 10 h 3 η 2 10 h η 4 η 5 26 h 5 50 h 4 η + 20 h 3 η 2 + 20 h 2 η 3 20 h η 4 + 5 η 5 66 h 5 60 h 3 η 2 + 30 h η 4 10 η 5 26 h 5 + 50 h 4 η + 20 h 3 η 2 20 h 2 η 3 20 h η 4 + 10 η 5 η 5 + 5 h 4 η + 10 h 3 η 2 + 10 h 2 η 3 + 5 h η 4 5 η 5 η 5
Since all other quintic B-spline functions are zero over the interval [ x k ,   x k + 1 ] except for B k 2 ,   B k 1 , , B k + 3 , the approximation function in Equation (8) over the typical interval [ x k ,   x k + 1 ] can be written as
s N ( x , t ) = j = k 2 k + 3 ρ j ( t ) B j ( x ) , r N ( x , t ) = j = k 2 k + 3 ψ j ( t ) B j ( x ) .
Applying the quintic B-splines definition in Equations (6)–(8), the nodal values of   s k , r k , and its first and second derivatives at the knots x k are found to be
s k = s ( x k ) = ρ k 2 + 26 ρ k 1 + 66 ρ k + 26 ρ k + 1 + ρ k + 2 , r k = r ( x k ) = ψ k 2 + 26 ψ k 1 + 66 ψ k + 26 ψ k + 1 + ψ k + 1 , h s k = h s ( x k ) = 5 ( ρ k + 2 + 10 ρ k + 1 10 ρ k 1 ρ k 2 ) , h r k = h r ( x k ) = 5 ( ψ k + 2 + 10 ψ k + 1 10 ψ k 1 ψ k 2 ) , h 2 s k = h 2 s ( x k ) = 20 ( ρ k + 2 + 2 ρ k + 1 6 ρ k + 2 ρ k 1 + ρ k 2 ) , h 2 r k = h 2 r ( x k ) = 20 ( ψ k + 1 + 2 ψ k 6 ψ k + 2 ψ k 1 + ψ k 2 ) .
When using the Galerkin method on Equation (5) with weight function W ( x ) , the weak form of Equation (5) over the finite interval [ x k ,   x k + 1 ] [ x k , x k + 1 ] is written as
{ x k x k + 1 [ W s t + W x r x α ( r 2 + s 2 ) W r ] d x = 0 , x k x k + 1 [ W r t W x s x + α ( r 2 + s 2 ) W s ] d x = 0 ,      
where
z L = α ( r 2 + s 2 ) .
By using the weight function W ( x ) as quintic B-spline shape functions B k and inserting the quantities r N ( x ,   t ) and s N ( x ,   t ) in Equation (10) into the integral Equation (12) instead of r ( x ,   t ) and s ( x ,   t )
{ j = k 2 k + 3 [ ( 0 h B i B j d η ) ρ j ˙ + ( 0 h B i B j d η ) ψ j ( z L 0 h B i B j d η ) ψ j ] = 0 , j = k 2 k + 3 [ ( 0 h B i B j d η ) ψ j ˙ ( 0 h B i B j d η ) ρ j + ( z L 0 h B i B j d η ) ρ j ] = 0 ,
where i = j = k 2 ,   k 1 , k , k + 1 , k + 2 ,   k + 3   and   the   dot   · represents the derivative with respect to time t.
The finite element in Equation (14) can be written in matrix form as
{ A e ρ j ˙ e + M e ψ j e z L C e ψ j e = 0 , A e ψ j ˙ e M e ρ j e + z L C e ρ j e = 0 ,      
where ρ j = ( ρ k 2 , ρ k 1 , ρ k , ρ k + 1 , ρ k + 2 ,   ρ k + 3 ) T and ψ j = ( ψ k 2 , ψ k 1 , ψ k , ψ k + 1 , ψ k + 2 ,   ψ k + 3 ) T are the element parameters. The element matrices A i j e ,   M i j e and C i j e are given by integrals
A i j e = 0 h B i B j d η , M i j e = 0 h B i B j d η , C i j e = 0 h B i B j d η ,
where i ,   j = k 2 ,   k 1 , k ,   k + 1 ,   k + 2 ,   k + 3 . The element matrices in Equation (16) are calculated as
A i j e = h 2772 [ 5246 8937 6588 79168 33258 1077 8937 397416 1558706 1072186 121641 1018 6588 1558706 7464456 6602476 1072186 15498 79168 1072186 6602476 7464456 1558706 29558 33258 121641 1072186 1558706 397416 9113 1077 1018 15498 29558 9113 252 ] M i j e = 1 126 h [ 12140 9710 36590 14840 29735 2030 9710 103190 98630 151100 54725 1250 36590 98630 236240 179420 151100 6650 14840 151100 179420 236240 98630 2300 29735 54725 151100 98630 103190 5255 2030 1250 6650 2300 5255 350 ] C i j e = h 2772 [ 5246 8937 6588 79168 33258 1077 8937 397416 1558706 1072186 121641 1018 6588 1558706 7464456 6602476 1072186 15498 79168 1072186 6602476 7464456 1558706 29558 33258 121641 1072186 1558706 397416 9113 1077 1018 15498 29558 9113 252 ]
The values of z L are obtained by writing s = s k + s k + 1 2 and r = r k + r k + 1 2 in Equation (13). Using the values of s N and r N at the grid points x k , we obtain
z L = α 4 [ ( ρ k 2 + 27 ρ k 1 + 92 ρ k + 92 ρ k + 1 + 27 ρ k + 2 + ρ k + 3 ) 2 + ( ψ k 2 + 27 ψ k 1 + 92 ψ k + 92 ψ k + 1 + 27 ψ k + 2 + ψ k + 3 ) 2   ] .
Assembling all the elements in Equation (15) leads to the following system:
{ A ρ ˙ + M ψ C ( z L ) ψ = 0 , A ψ ˙ M ρ + C ( z L ) ρ = 0 ,
where ρ = ( ρ 2 , ρ 1 ,   ,   ρ k , ρ k + 1 ) T and ψ = ( ψ 2 , ψ 1 , ,   ψ k , ψ k + 1 ) T are the global element parameters, and A ,   M and C ( z L ) are the global matrices with generalized kth row given by:
A = h 2772 ( 1077 ,   32240 ,   57971 ,   2167342 ,   9737938 ,   15729242 ,   9737938 ,   2167342 ,     57971 ,   32240 ,   1077 ) , M = 1 126 h ( 2030 , 30985 , 76215 , 263310 ,   32805 , 691350 , 32805 , 263310 , 76215 ,     30985 ,   2030 ) C ( z L ) = h 2772 ( 1077 z 1 L ,   33258 z 1 L + 1018 z 2 L ,   79168 z 1 L + 121641 z 2 L + 15498 z 3 L ,   6588 z 1 L + 1072186 z 2 L + 1072186 z 3 L + 29558 z 4 L ,   8937 z 1 L + 1558706 z 2 L + 6602476 z 3 L + 1558706 z 4 L + 9113 z 5 L , 5246 z 1 L + 397416 z 2 L +   7464456 z 3 L + 7464456 z 4 L + 397416 z 5 L + 252 z 6 L ,   8937 z 2 L + 1558706 z 3 L +   6602476 z 4 L + 1558706 z 5 L + 9113 z 6 L ,   6588 z 3 L + 1072186 z 4 L +     1072186 z 5 L + 29558 z 6 L , 79168 z 4 L + 121641 z 5 L + 15498 z 6 L ,   33258 z 5 L + 1018 z 6 L ,   1077   z 6 L ) ,
where
z 1 L = α 4 [ ( ρ k 4 + 27 ρ k 3 + 92 ρ k 2 + 92 ρ k 1 + 27 ρ k + ρ k + 1 ) 2 + ( ψ k 4 + 27 ψ k 3 + 92 ψ k 2 + 92 ψ k 1 + 27 ψ k + ψ k + 1 ) 2   ] , z 2 L = α 4 [ ( ρ k 3 + 27 ρ k 2 + 92 ρ k 1 + 92 ρ k + 27 ρ k + 1 + ρ k + 2 ) 2 + ( ψ k 3 + 27 ψ k 2 + 92 ψ k 1 + 92 ψ k + 27 ψ k + 1 + ψ k + 2 ) 2   ] , z 3 L = α 4 [ ( ρ k 2 + 27 ρ k 1 + 92 ρ k + 92 ρ k + 1 + 27 ρ k + 2 + ρ k + 3 ) 2 + ( ψ k 2 + 27 ψ k 1 + 92 ψ k + 92 ψ k + 1 + 27 ψ k + 2 + ψ k + 3 ) 2 ] , z 4 L = α 4 [ ( ρ k 1 + 27 ρ k + 92 ρ k + 1 + 92 ρ k + 2 + 27 ρ k + 3 + ρ k + 4 ) 2 + ( ψ k 1 + 27 ψ k + 92 ψ k + 1 + 92 ψ k + 2 + 27 ψ k + 3 + ψ k + 4 ) 2 ] , z 5 L = α 4 [ ( ρ k + 27 ρ k + 1 + 92 ρ k + 2 + 92 ρ k + 3 + 27 ρ k + 4 + ρ k + 5 ) 2 + ( ψ k + 27 ψ k + 1 + 92 ψ k + 2 + 92 ψ k + 3 + 27 ψ k + 4 + ψ k + 5 ) 2 ] , z 6 L = α 4 [ ( ρ k + 1 + 27 ρ k + 2 + 92 ρ k + 3 + 92 ρ k + 4 + 27 ρ k + 5 + ρ k + 6 ) 2 + ( ψ k + 1 + 27 ψ k + 2 + 92 ψ k + 3 + 92 ψ k + 4 + 27 ψ k + 5 + ψ k + 6 ) 2 ] .
Substituting the time derivatives of the parameters ρ ˙ and ψ ˙ by the finite difference approximation, ρ ˙ = ρ n + 1 ρ n Δ t and ψ ˙ = ψ n + 1 ψ n Δ t and parameters ρ and ψ by the Crank–Nicolson method, ρ = ρ n + ρ n + 1 2 and ψ = ψ n + ψ n + 1 2 into Equation (18) yields Equation (21).
{ A ρ n + 1 + 0.5 Δ t ( M C ( z L ) )   ψ n + 1 = A ρ n 0.5 Δ t ( M C ( z L ) )   ψ n A ψ n + 1 0.5 Δ t ( M C ( z L ) )   ρ n + 1 = A ψ n + 0.5 Δ t ( M C ( z L ) ) ρ n      
where ρ n + 1 = ( ρ 2 ,   ρ 1 ,   ,   ρ N + 2   ) T   and ψ n + 1 = ( ψ 2 ,   ψ 1 ,   ,   ψ N + 2   ) T are unknown parameters. This final system consists of ( 2 N + 2 ) equations and ( 2 N + 10 ) unknown’s parameters. To find the unique solution of this system, we need to eliminate parameters ρ 2 ,   ρ 1 ,   ρ N + 1 ,   ρ N + 2 , ψ 2 ,   ψ 1 ,   ψ N + 1 and ψ N + 2 . Using the following boundary conditions
u x ( a , t ) = u x ( b , t ) = u x x ( a , t ) = u x x ( b , t ) = 0 ,
we obtain
ρ 2 = 3 2 ρ 2 5 ρ 1 + 15 2 ρ 0 , ρ 1 = ρ 2 4 + 3 2 ρ 1 3 4 ρ 0 , ρ N + 1 = 1 4 ρ N 2 3 2 ρ N 1 3 4 ρ N , ρ N + 2 = 3 2 ρ N 2 5 ρ N 1 + 15 2 ρ N , ψ 2 = 3 2 ψ 2 5 ψ 1 + 15 2 ψ 0 , ψ 1 = ψ 2 4   + 3 2 ψ 2 1 3 4 ψ 2 , ψ N + 1 = 1 4 ψ N 2 3 2 ψ N 1 3 4 ψ N , ψ N + 2 = 3 2 ψ N 2 5 ψ N 1 + 15 2 ψ N .

3. The Initial Vectors

The initial parameters ρ 0 and ψ 0 can be determined using initial and boundary conditions to solve the system in Equation (21). The approximation can be re-written over the interval [ a , b ] at t = 0 as
s N ( x , 0 ) = j = 2 N + 2 B j ( x ) ρ j o   and   r N ( x , 0 ) = j = 2 N + 2 B j ( x ) ψ j o ,
where all parameters ρ 0 and ψ 0 are determined. The functions s N and r N are required to satisfy the following relations at the nodal points x k :
s N ( x k , 0 ) = s ( x k , 0 ) , and   r N ( x k , 0 ) = r ( x k , 0 ) , k = 0 , 1 , ,   N .
A pentadiagonal matrix system is obtained using the conditions in Equation (24). The initial vectors ρ 0 and ψ 0 can be calculated from the following matrix equations:
[ 54.00 60.00 6.00 25.25 67.50 26.25 1.00 1.00 26.00 66.00 26.00 1.00 1.00 26.00 66.00 26.00 1.00 1.00 26.25 67.50 25.25 6.00 60.00 54.00 ] [ ρ 0 0 ρ 0 1 ρ 0 2 ρ 0 N 1 ρ 0 N ] = [ s 0 0 s 0 1 s 0 2 s 0 N 2 s 0 N 1 s 0 N ]
[ 54.00 60.00 6.00 25.25 67.50 26.25 1.00 1.00 26.00 66.00 26.00 1.00 1.00 26.00 66.00 26.00 1.00 1.00 26.25 67.50 25.25 6.00 60.00 54.00 ] [ ψ 0 0 ψ 0 1 ψ 0 2 ψ 0 N 1 ψ 0 N ] = [ r 0 0 r 0 1 r 0 2 r 0 N 2 r 0 N 1 r 0 N ]
The above system can be solved by inverting the matrices in MATLAB. The approximate solution of s N ( x , t ) and r N ( x , t ) can be calculated from ρ n and ψ n using Equation (21).

4. Numerical Experiments and Results

Two physical problems, single solitary wave and interaction of two solitary waves, were considered to assess the performance of the proposed method summarized in Equation (22). The performance and accuracy of the approach were tested using the L 2   and   L norms defined as
L 2 = u e x a c t u N 2 = h k = 0 N | u k e x a c t ( u N ) k | 2 ,
and
L = u e x a c t u N = max 0 k N | u k e x a c t ( u N ) k | ,
where u e x a c t   and   u N denote the exact and numerical solutions, respectively. Moreover, Equation (1) must satisfy the two conservation laws,
I 1 = a b | u | 2 d x ,   I 2 = a b ( | u x | 2 1 2 α | u | 4 ) d x .

4.1. Problem 4.1 (Single Solitary Wave Solution)

A single solitary wave solution to the NLS equation is given as in [20]:
u ( x , t ) = β ( 2 α ) e x p i [ 1 2 S x 1 4 ( S 2 β 2 ) t ] s e c h β ( x S t ) .
The initial and boundary conditions are taken as u ( 20 ,   0 ) = u ( 20 ,   0 ) = u x ( 20 ,   0 ) = u x ( 20 ,   0 ) = u x x ( 20 ,   0 ) = u x x ( 20 ,   0 ) = 0 .
The values of the initial parameters from Equations (25) and (26) are calculated by using the initial and boundary conditions. The values of all parameters were chosen to be α = 2 ,   S = 4 ,   β = 1 ,   h = 0.05 , and Δ t = 0.002 ,   0.001 . The parameter S represents the speed of the solitary wave whose magnitude depends on the real parameter β . The L 2   and   L norms and conservation laws I 1 and I 2 are tabulated in Table 1 for Δ t = 0.002 and Table 2 for Δ t = 0.001 . It is observed that the norms remain very small. The numerical results obtained by the present scheme are more accurate than the explicit, implicit, and split-step Fourier and other methods [19,21,22].
The norms naturally decrease with the increase in number of partitions. We found a good result even for large step size, as displayed in Table 3. The L   and L 2 norms converge to zero as the number of nodes increases. The numerical simulations are shown at different times over the region [ 20 ,   20 ] in Figure 1.
Furthermore, numerical results for different values of Δ t were generated to calculate the rate of convergence using the following formula [23]:
Order   of   convergence l o g 2 E ( 2 h ,   2 Δ t ) E ( h ,   Δ t ) ,
where E ( 2 h ,   2 Δ t ) is either the   L   error norm or the   L 2 error norm in spatial and temporal directions. The error norms   L ,   L 2 and order of convergence rate at time t = 1 is shown in Table 4. In Table 4, we see that this method is nearly of second-order convergence.
Table 5 presents comparison between our proposed method with other methods. The proposed scheme gave satisfactory results.
Table 6 displays numerical results of present method compared to those of Taha et al. [21]. In general, the present method generated more accurate results for the specific values of parameters. The simulation of the single soliton with amplitude equal to 2 is presented in Figure 2.

4.2. Problem 4.2 (The Interaction of Two Solitary Waves)

In this problem we considered the behavior of two solitons moving in opposite directions using the following initial conditions [18,20,21]:
u ( x , 0 ) = k = 1 2 u k ( x , 0 ) , u k ( x , 0 ) = β k ( 2 α ) e x p ( i [ 1 2 S ( x x k ) ] ) s e c h ( β k ( x x k ) ) .
where β k ,   α and x k are constants.
The values of all parameters were chosen to be x 1 = 10 ,   x 2 = 10 ,   α = 2 ,   β 1 = 1 ,   β 2 = 1 ,   S 1 = 4 ,   S 2 = 4 , h = 0.05 and Δ t = 0.05 . Two solitary waves were traveling in opposite direction with the same magnitude 1 and speed 10. One of the solitary waves placed at x = 10 was traveling to the left side with speed 4 and the second wave on the other side placed at x = 10 was traveling to the right side with speed 4. As we know, solitons move in opposite direction and they collide and separate. We noticed that the shape of the solitons did not change after the collision of both solitons as expected. The two solitary waves collided at times t = 1 ,   2 , 3 and then separated at t = 4 ,   5 ,   6 . We see that the solitons preserved the original shapes after the collision. The interactions of two solitons at different times t = 0 , 1 ,   2 , 2.8 ,   3 ,   4 , 5 and 6 can be seen in Figure 3.
The L   and L 2   norms and I 1 conservation law were calculated at various times with Δ t = 0.005 ,   0.002 , as shown in Table 7 and Table 8.
Furthermore, Table 9 presents numerical results of our proposed method compared with previous methods (e.g., [21]). The present method gives accurate results for the specific values of parameters.

5. Conclusions

In this paper, the numerical solution of the NLS equation with Neumann boundary conditions is obtained by the Galerkin finite element method with quintic B-spline shape function. The accuracy and feasibility of the method was evaluated by two test problems related to single solitary wave and interaction of two solitary waves. The accuracy of numerical method was examined by showing reasonably small error norms L 2 and L . The interaction of two solitary waves was investigated and observed that the shape of the solitons did not change after the collision of both solitons as expected. The proposed method successfully simulated the soliton picture by choosing different parameters in the case of motion of single soliton and interaction of two soliton. The obtained results were compared with published results [17,19,21,22] and it was observed that the all results are acceptable and reflect the analytical solution. The rate of convergence was calculated and found to be almost of second-order convergence. In conclusion, the present Galerkin finite element scheme with quintic B-spline presents an acceptable soliton solution method for solving NLS equation. The simplicity of the quintic B-spline Galerkin finite element method is an advantage over the general Galerkin finite element method to obtain the numerical solution of NLS equation. The proposed scheme can easily be applied to solve various nonlinear differential equations.

Author Contributions

N.N.A.H. and A.I.M.I. were involved in planning and supervised the work. A.I. established the computational framework and data analysis. All authors discussed the results and contributed to the final version of the manuscript.

Funding

We acknowledge the financial support from USM RUI Grant of account number 1001/PMATHS/8011073.

Acknowledgments

The authors are grateful to the anonymous reviewers for their valuable comments and suggestions to improve the quality of this manuscript.

Conflicts of Interest

The authors declare that they have no competing interests.

References

  1. Krowiak, A. Symbolic computing in spline-based differential quadrature method. Commun. Numer. Meth. Eng. 2006, 22, 1097–1107. [Google Scholar] [CrossRef]
  2. Saka, I.D. Quartic B-spline collocation method to the numerical solutions of the Burgers equation. Chaos Solitons Fracts 2007, 32, 1125–1137. [Google Scholar] [CrossRef]
  3. Zakharov, V.E.; Shabat, A.B. Exact theory of two dimensional two dimensional self focusing and one dimensional self waves in nonlinear media. Sov. J. Exp. Theor. Phys. 1972, 34, 62–69. [Google Scholar]
  4. Zakharov, V.E.; Manakov, S.V. On the complete integrability of a nonlinear Schrödinger equation. Theor. Math. Phys. 1974, 19, 332–343. [Google Scholar] [CrossRef]
  5. Mittal, R.C.; Arora, G. Quintic B-spline collocation method for numerical solution of the extended fisher-kolmogorov equation. Int. J. Appl. Math. Mech. 2010, 6, 74–85. [Google Scholar]
  6. Saka, I.D. A numerical solution of the RLW equation by Galerkin method using quartic B-splines. Commun. Numer. Methods Eng. 2008, 24, 1339–1361. [Google Scholar] [CrossRef]
  7. Gardner, L.R.T.; Gardner, G.A. Solitary waves of the regularized long wave equation. J. Comput. Phys. 1990, 91, 441–459. [Google Scholar] [CrossRef]
  8. Dogan, A. Numerical solution of RLW equation using linear finite elements within Galerkin’s method. Appl. Math. Model. 2002, 26, 771–783. [Google Scholar] [CrossRef]
  9. Kutluay, S.; Ucar, Y. A quadratic B-spline galerkin approach for solving a coupled KDV equation. Math. Model. Anal. 2013, 18, 103–121. [Google Scholar] [CrossRef]
  10. Saka, B.; Dag, I. Quartic B-spline Galerkin approach to the numerical solution of the KDVB equation. Appl. Math. Comput. 2009, 215, 746–758. [Google Scholar] [CrossRef]
  11. Gorgulu, M.Z.; Dag, I. Galerkin method for the numerical solution of the advection-diffusion equation by using exponential B-splines. arXiv, 2016; arXiv:1604.04267v1. [Google Scholar]
  12. Wang, B.; Liang, D. The finite difference scheme for nonlinear Schrödinger equations on unbounded domain by artificial boundary conditions. Appl. Numer. Math. 2018, 128, 183–204. [Google Scholar] [CrossRef]
  13. Barletti, L.; Brugnano, L.; Caccia, G.F.; Iavernaro, F. Energy-conserving methods for the nonlinear Schrödinger equation. Appl. Math. Comput. 2018, 318, 3–18. [Google Scholar] [CrossRef]
  14. Taleei, M.D. Time-splitting pseudo-spectral domain decomposition method for the soliton solutions of the one- and multi-dimensional nonlinear Schrödinger equations. Comput. Phys. Commun. 2014, 185, 1515–1528. [Google Scholar] [CrossRef]
  15. Sheng, Q.; Khaliq, A.Q.M.; Al-Said, E.A. Solving the generalized nonlinear Schrodinger equation via quartic spline approximation. J. Comput. Phys. 2001, 166, 400–417. [Google Scholar] [CrossRef]
  16. Zlotnik, A.; Zlotnik, I.A. Finite element method with discrete transparent boundary conditions for the time-dependent 1D schrödinger equation. Kinet. Relat. Models 2012, 5, 639–663. [Google Scholar] [CrossRef]
  17. Ersoy, I.D.; Sahin, A. Numerical investigation of the solution of Schrodinger equation with exponential cubic B-spline finite element method. arXiv, 2016; arXiv:1607.00166v1. [Google Scholar]
  18. Dag, I. A quadratic B-spline finite element method for solving nonlinear Schrodinger equation. Comput. Methods Appl. Mech. End Eng. 1999, 174, 247–258. [Google Scholar]
  19. Saka, B. A quintic B-spline finite-element method for solving the nonlinear Schrödinger equation. Phys. Wave Phenom. 2012, 20, 107–117. [Google Scholar] [CrossRef]
  20. Gardner, L.R.T.; Gardner, G.A.; Zaki, S.I.; Sahrawi, Z.E. B-spline finite element studies of the non-linear Schriidinger equation. Comput. Methods Appl. Mech. Eng. 1993, 108, 303–318. [Google Scholar] [CrossRef]
  21. Taha, T.R.; Ablowitz, M.J. Analytical and numerical aspects of certain nonlinear evolution equations II: Numerical, nonlinear Schrodinger equations. J. Comput. Phys. 1984, 55, 203–230. [Google Scholar] [CrossRef]
  22. Prenter, P. Splines and Variational Methods; Wiley: New York, NY, USA, 1975. [Google Scholar]
  23. Qu, W.; Liang, Y. Stability and convergence of the Crank-Nicolson scheme for a class of variable-coefficient tempered fractional diffusion equations. Adv. Differ. Equ. 2017, 2017, 108. [Google Scholar] [CrossRef]
Figure 1. Single solitary wave solution with amplitude 1 and Δ t = 0.002 .
Figure 1. Single solitary wave solution with amplitude 1 and Δ t = 0.002 .
Symmetry 11 00469 g001
Figure 2. Single solitary wave solution with amplitude 2 and Δ t = 0.0002 .
Figure 2. Single solitary wave solution with amplitude 2 and Δ t = 0.0002 .
Symmetry 11 00469 g002
Figure 3. Interaction of two-solitons at different times with amplitude = 1, α = 2 and Δ t = 0.0005 .
Figure 3. Interaction of two-solitons at different times with amplitude = 1, α = 2 and Δ t = 0.0005 .
Symmetry 11 00469 g003
Table 1. Norms and conservation laws for Problem 4.1. with Δ t = 0.002 ,   α = 2 ,   S = 4   and   β = 1 .
Table 1. Norms and conservation laws for Problem 4.1. with Δ t = 0.002 ,   α = 2 ,   S = 4   and   β = 1 .
t L L 2 I 1 I 2
0.5 1.9568 × 10 4 2.7670 × 10 4 1.99983872 7.33354808
1.0 1.9568 × 10 4 2.7670 × 10 4 1.99983872 7.33354808
1.5 1.9568 × 10 4 2.7670 × 10 4 1.99983872 7.33354808
2.0 1.9568 × 10 4 2.7670 × 10 4 1.99983872 7.33354808
2.5 1.9568 × 10 4 2.7725 × 10 4 1.99983871 7.33354806
3.0 6.4457 × 10 4 3.0534 × 10 4 1.99983850 . 7.33354709
3.5 4.7627 × 10 3 9.9330 × 10 4 1.99982692 7.33349360
Table 2. Norms and conservation laws for Problem 4.1 with Δ t = 0.001 ,   α = 2 ,   S = 4   and   β = 1 .
Table 2. Norms and conservation laws for Problem 4.1 with Δ t = 0.001 ,   α = 2 ,   S = 4   and   β = 1 .
t L L 2 I 1 I 2
0.5 9.78400 × 10 5 1.3835 × 10 4 1.99991936 7.33344071
1.0 9.78400 × 10 5 1.3835 × 10 4 1.99991936 7.33344071
1.5 9.78400 × 10 5 1.3835 × 10 4 1.99991936 7.33344071
2.0 9.78400 × 10 5 1.3837 × 10 4 1.99991936 7.33344071
2.5 9.78400 × 10 5 1.3945 × 10 4 1.99991935 7.33344069
3.0 6.44590 × 10 4 1.8914 × 10 4 1.99991914 7.33343971
3.5 4.76289 × 10 3 9.6293 × 10 4 1.99990755 7.33338623
Table 3. Norms and conservation laws for Problem 4.1. with Δ t = 0.005 ,   α = 2 ,   S = 4   and   β = 1   and   t = 1 .
Table 3. Norms and conservation laws for Problem 4.1. with Δ t = 0.005 ,   α = 2 ,   S = 4   and   β = 1   and   t = 1 .
h L L 2 I 1 I 2
0.4000 3.15055 × 10 3 4.36807 × 10 3 1.99889027 7.32694758
0.3000 1.93900 × 10 3 2.70993 × 10 3 1.99828775 7.32875439
0.2667 1.62336 × 10 3 2.28584 × 10 3 1.99826101 7.32850737
0.2500 1.48026 × 10 3 2.09864 × 10 3 1.99827987 7.32841934
0.2000 1.11080 × 10 3 1.60406 × 10 3 1.99845175 7.32849099
0.1600 8.72850 × 10 4 1.27057 × 10 3 1.99869795 7.32900596
0.1333 7.38540 × 10 4 1.07534 × 10 3 1.99890569 7.32957727
0.1000 5.95490 × 10 4 8.59430 × 10 4 1.99920350 7.33051338
0.0800 5.19280 × 10 4 7.42820 × 10 4 1.99939758 7.33117069
0.0667 4.69970 × 10 4 6.68230 × 10 4 1.99953162 7.33163940
0.0500 4.04610 × 10 4 5.72190 × 10 4 1.99970290 7.33225097
0.0400 3.58160 × 10 4 5.05630 × 10 4 1.99980701 7.33262780
Table 4. Norms and order of convergence at t = 1   with h = Δ t ,   α = 2 ,   S = 4   and   β = 1 .
Table 4. Norms and order of convergence at t = 1   with h = Δ t ,   α = 2 ,   S = 4   and   β = 1 .
h L Order L 2 Order
0.040 3.02045 × 10 3 - 3.0881 × 10 3 -
0.020 7.61510 × 10 4 1.989 7.7753 × 10 4 1.9897
0.010 1.90750 × 10 4 1.997 1.9473 × 10 4 1.9974
0.005 4.77100 × 10 5 1.999 4.8700 × 10 5 1.9994
Table 5. Comparison of present results for Problem 4.1 with different methods ( α = 2 ,   S = 4 ,   β = 1 ,   t = 1 ) .
Table 5. Comparison of present results for Problem 4.1 with different methods ( α = 2 ,   S = 4 ,   β = 1 ,   t = 1 ) .
h Δ t L ( Galerkin   Quintic   B - spline   Method ) L [17,18,19,21,22]
0.03000.0050 4.80 × 10 4 3.00 × 10 4
0.05000.0010 1.00 × 10 4 5.77 × 10 3
0.05000.0050 5.10 × 10 4 3.00 × 10 4
0.06000.0165 1.74 × 10 3 1.50 × 10 3
0.31250.0200 8.23 × 10 3 2.00 × 10 3
0.31250.0026 1.07 × 10 3 5.13 × 10 3
Table 6. Comparison of present results for Problem 4.1 with those of Taha et al. [21] ( α = 2 ,   S = 4 ,   β = 2 ,   t = 1 ) .
Table 6. Comparison of present results for Problem 4.1 with those of Taha et al. [21] ( α = 2 ,   S = 4 ,   β = 2 ,   t = 1 ) .
h Δ t L ( Galerkin   Quintic   B - spline   Method ) L [21]
0.0300 0.00022 4.00 × 10 5 7.59 × 10 3
0.1563 0.00480 1.62 × 10 3 4.64 × 10 3
0.0700 0.01200 2.31 × 10 3 9.37 × 10 3
0.0600 0.03000 5.70 × 10 3 6.95 × 10 3
0.02000.00040 7.00 × 10 5 9.63 × 10 3
0.02000.00010 2.00 × 10 5 9.31 × 10 3
Table 7. Norms and conservation laws for Problem 4.2 with h = 0.05   and   Δ t = 0.005 .
Table 7. Norms and conservation laws for Problem 4.2 with h = 0.05   and   Δ t = 0.005 .
t L L 2 I 1
0.5 4.7310 × 10 4 6.8455 × 10 4 4.00001440
1.0 4.7310 × 10 4 6.8455 × 10 4 4.00058985
1.5 4.7277 × 10 4 6.8398 × 10 4 4.02146973
2.0 4.5716 × 10 4 6.5569 × 10 4 4.58630524
2.5 9.4000 × 10 7 8.5000 × 10 7 7.99999602
3.0 4.5739 × 10 4 6.5569 × 10 4 4.58628884
3.5 4.7280 × 10 4 6.8398 × 10 4 4.02146948
4.0 4.7310 × 10 4 6.8454 × 10 4 4.00058984
4.5 4.7310 × 10 4 6.8455 × 10 4 4.00001440
5.0 4.7310 × 10 4 6.8455 × 10 4 4.00000032
Table 8. Norms and conservation laws for Problem 4.2 with h = 0.05   and   Δ t = 0.002 .
Table 8. Norms and conservation laws for Problem 4.2 with h = 0.05   and   Δ t = 0.002 .
t L L 2 I 1
0.5 1.8921 × 10 4 2.7382 × 10 4 4.00001440
1.0 1.8921 × 10 4 2.7382 × 10 4 4.00058985
1.5 1.8908 × 10 4 2.7359 × 10 4 4.02146966
2.0 1.8289 × 10 4 2.6227 × 10 4 4.58630039
2.5 1.5000 × 10 7 1.4000 × 10 4 7.99999936
3.0 1.8293 × 10 4 2.6227 × 10 4 4.58629383
3.5 1.8909 × 10 4 2.7359 × 10 4 4.02146956
4.0 1.8921 × 10 4 2.7382 × 10 4 4.00058984
4.5 1.8921 × 10 4 2.7382 × 10 4 4.00001440
5.0 1.8921 × 10 4 2.7382 × 10 4 4.00000032
Table 9. Comparison of present results for Problem 4.2 with those of Taha et al. [21]. ( a m p l i t u d e = 1 ) .
Table 9. Comparison of present results for Problem 4.2 with those of Taha et al. [21]. ( a m p l i t u d e = 1 ) .
t h Δ t L ( Galerkin   Quintic   B - spline   Method ) L [21]
1.0 0.0500 0.0025 2.36520 × 10 4 9.60 × 10 4
1.0 0.0500 0.0010 9.46000 × 10 5 1.41 × 10 3
1.0 0.6250 0.0071 3.85612 × 10 3 1.22 × 10 3
1.0 0.1300 0.0036 8.44010 × 10 4 1.41 × 10 3
1.6 0.0500 0.0010 9.4460 × 10 5 1.73 × 10 4
1.8 0.0700 0.0700 9.15408 × 10 3 1.58 × 10 3

Share and Cite

MDPI and ACS Style

Iqbal, A.; Abd Hamid, N.N.; Md. Ismail, A.I. Numerical Solution of Nonlinear Schrödinger Equation with Neumann Boundary Conditions Using Quintic B-Spline Galerkin Method. Symmetry 2019, 11, 469. https://doi.org/10.3390/sym11040469

AMA Style

Iqbal A, Abd Hamid NN, Md. Ismail AI. Numerical Solution of Nonlinear Schrödinger Equation with Neumann Boundary Conditions Using Quintic B-Spline Galerkin Method. Symmetry. 2019; 11(4):469. https://doi.org/10.3390/sym11040469

Chicago/Turabian Style

Iqbal, Azhar, Nur Nadiah Abd Hamid, and Ahmad Izani Md. Ismail. 2019. "Numerical Solution of Nonlinear Schrödinger Equation with Neumann Boundary Conditions Using Quintic B-Spline Galerkin Method" Symmetry 11, no. 4: 469. https://doi.org/10.3390/sym11040469

APA Style

Iqbal, A., Abd Hamid, N. N., & Md. Ismail, A. I. (2019). Numerical Solution of Nonlinear Schrödinger Equation with Neumann Boundary Conditions Using Quintic B-Spline Galerkin Method. Symmetry, 11(4), 469. https://doi.org/10.3390/sym11040469

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop