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 , and conservation laws 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:
Equation (1) is called a self- focusing NLS equation () and allows for bright soliton solutions, as well as the defocusing NLS equation (). is a complex-valued function over the real line, is a positive number and = . The initial and boundary conditions are as follows:
Let
where and are real functions. Substituting Equation (4) into Equation (1), we obtain the coupled partial differential equations
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 divided uniformly by grid points with . Quintic B-spline function is chosen as the weight and trial function. The quintic B-splines, , at the grid points forms a basis over the interval as follows [19]:
The global approximate solution, , for the NLS equation in Equation (1) is written in terms of the quintic B-spline function as
where
The functions and are time-dependent parameters that are determined from the boundary and residual conditions. We make use of a local coordinate transformation
The quintic B-spline shape functions in Equation (6) can be defined in term of ,
Since all other quintic B-spline functions are zero over the interval except for the approximation function in Equation (8) over the typical interval can be written as
Applying the quintic B-splines definition in Equations (6)–(8), the nodal values of , and its first and second derivatives at the knots are found to be
When using the Galerkin method on Equation (5) with weight function , the weak form of Equation (5) over the finite interval is written as
where
By using the weight function as quintic B-spline shape functions and inserting the quantities and in Equation (10) into the integral Equation (12) instead of and
where the derivative with respect to time t.
The finite element in Equation (14) can be written in matrix form as
where and are the element parameters. The element matrices , and are given by integrals
where . The element matrices in Equation (16) are calculated as
The values of are obtained by writing and in Equation (13). Using the values of and at the grid points we obtain
Assembling all the elements in Equation (15) leads to the following system:
where and are the global element parameters, and and are the global matrices with generalized kth row given by:
where
Substituting the time derivatives of the parameters and by the finite difference approximation, and and parameters and by the Crank–Nicolson method, and into Equation (18) yields Equation (21).
where and are unknown parameters. This final system consists of equations and unknown’s parameters. To find the unique solution of this system, we need to eliminate parameters , and . Using the following boundary conditions
we obtain
3. The Initial Vectors
The initial parameters and can be determined using initial and boundary conditions to solve the system in Equation (21). The approximation can be re-written over the interval at as
where all parameters and are determined. The functions and are required to satisfy the following relations at the nodal points :
A pentadiagonal matrix system is obtained using the conditions in Equation (24). The initial vectors and can be calculated from the following matrix equations:
The above system can be solved by inverting the matrices in MATLAB. The approximate solution of and can be calculated from and 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 norms defined as
and
where denote the exact and numerical solutions, respectively. Moreover, Equation (1) must satisfy the two conservation laws,
4.1. Problem 4.1 (Single Solitary Wave Solution)
A single solitary wave solution to the NLS equation is given as in [20]:
The initial and boundary conditions are taken as
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 , and . The parameter represents the speed of the solitary wave whose magnitude depends on the real parameter . The norms and conservation laws and are tabulated in Table 1 for and Table 2 for . 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].
Table 1.
Norms and conservation laws for Problem 4.1. with .
Table 2.
Norms and conservation laws for Problem 4.1 with .
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 and norms converge to zero as the number of nodes increases. The numerical simulations are shown at different times over the region in Figure 1.
Table 3.
Norms and conservation laws for Problem 4.1. with .
Figure 1.
Single solitary wave solution with amplitude 1 and
Furthermore, numerical results for different values of were generated to calculate the rate of convergence using the following formula [23]:
where is either the error norm or the error norm in spatial and temporal directions. The error norms and order of convergence rate at time is shown in Table 4. In Table 4, we see that this method is nearly of second-order convergence.
Table 4.
Norms and order of convergence at with
Table 5 presents comparison between our proposed method with other methods. The proposed scheme gave satisfactory results.
Table 5.
Comparison of present results for Problem 4.1 with different methods (,
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.
Table 6.
Comparison of present results for Problem 4.1 with those of Taha et al. [21] ,
Figure 2.
Single solitary wave solution with amplitude 2 and
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]:
where and are constants.
The values of all parameters were chosen to be and . Two solitary waves were traveling in opposite direction with the same magnitude 1 and speed 10. One of the solitary waves placed at was traveling to the left side with speed 4 and the second wave on the other side placed at 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 and then separated at . We see that the solitons preserved the original shapes after the collision. The interactions of two solitons at different times , 5 and 6 can be seen in Figure 3.
Figure 3.
Interaction of two-solitons at different times with amplitude = 1,
and
The and norms and conservation law were calculated at various times with as shown in Table 7 and Table 8.
Table 7.
Norms and conservation laws for Problem 4.2 with
Table 8.
Norms and conservation laws for Problem 4.2 with .
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.
Table 9.
Comparison of present results for Problem 4.2 with those of Taha et al. [21].
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 and . 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
- Krowiak, A. Symbolic computing in spline-based differential quadrature method. Commun. Numer. Meth. Eng. 2006, 22, 1097–1107. [Google Scholar] [CrossRef]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- Prenter, P. Splines and Variational Methods; Wiley: New York, NY, USA, 1975. [Google Scholar]
- 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]
© 2019 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).