Next Article in Journal
A Multi-Credit-Rating Migration Model with Asymmetric Migration Boundaries
Next Article in Special Issue
Magnesium and Calcium Transport along the Male Rat Kidney: Effect of Diuretics
Previous Article in Journal
Accuracy Examination of the Fourier Series Approximation for Almost Limiting Gravity Waves on Deep Water
Previous Article in Special Issue
A Finite Difference Method for Solving the Wave Equation with Fractional Damping
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Numerical Method Based on Operator Splitting Collocation Scheme for Nonlinear Schrödinger Equation

Fujian Province University Key Laboratory of Computation Science, School of Mathematical Sciences, Huaqiao University, Quanzhou 362021, China
*
Author to whom correspondence should be addressed.
Math. Comput. Appl. 2024, 29(1), 6; https://doi.org/10.3390/mca29010006
Submission received: 19 November 2023 / Revised: 27 December 2023 / Accepted: 12 January 2024 / Published: 15 January 2024

Abstract

:
In this paper, a second-order operator splitting method combined with the barycentric Lagrange interpolation collocation method is proposed for the nonlinear Schrödinger equation. The equation is split into linear and nonlinear parts: the linear part is solved by the barycentric Lagrange interpolation collocation method in space combined with the Crank–Nicolson scheme in time; the nonlinear part is solved analytically due to the availability of a closed-form solution, which avoids solving the nonlinear algebraic equation. Moreover, the consistency of the fully discretized scheme for the linear subproblem and error estimates of the operator splitting scheme are provided. The proposed numerical scheme is of spectral accuracy in space and of second-order accuracy in time, which greatly improves the computational efficiency. Numerical experiments are presented to confirm the accuracy, mass and energy conservation of the proposed method.

1. Introduction

In 1926, the famous Schrödinger equation was proposed by the Austrian physicist Schrödinger [1]. It’s a fundamental equation in the field of quantum mechanics. In recent years, the Schrödinger equation has been studied in different fields of research, such as atomic, molecular, nuclear physics and solid state physics, etc.
In this paper, we consider the following nonlinear Schrödinger (NLS) equation
i u t + ρ Δ u + v ( x ) u + β u 2 u = 0 , ( x , t ) Ω × ( 0 , T ] u ( x , 0 ) = u 0 ( x ) , x Ω u ( x , t ) = 0 , x Ω , t ( 0 , T ] ,
where i is the imaginary unit, ρ , β are real-valued constants, Ω R d ( d = 1 , 2 ) is a bounded area and Δ is the Laplace operator. The function u 0 ( x ) is a given sufficiently smooth function and v ( x ) is a real-valued potential function. This model reflects the quantum mechanical effects and microscopic system properties and can well describe the state of microscopic particles over time.
In fact, the NLS Equation (1) also conserves both mass and energy with the following mass and energy functions:
M ( t ) = Ω | u ( x , t ) | 2 d x = M ( 0 )
and
E ( t ) = Ω ( ρ | u ( x , t ) | 2 v ( x ) | u ( x , t ) | 2 β 2 | u ( x , t ) | 4 ) d x = E ( 0 ) .
Recently, many numerical methods have been developed for solving the NLS equation. Gong et al. [2] presented a conservative Fourier pseudo-spectral method for the nonlinear Schrödinger equation. Cui et al. [3] developed mass- and energy-preserving exponential Runge–Kutta methods for the nonlinear Schrödinger equation. Feng et al. [4] developed the high-order mass- and energy-conserving SAV-Gauss collocation finite element methods for the NLS equation. Wang et al. [5] used the two-grid finite element method for the NLS equation and the given superconvergence analysis of the scheme. Wang et al. [6] studied leapfrog finite element methods for a class of nonlinear Schrödinger equations with damped terms. Hu et al. [7] presented the Newton iterative Crank–Nicolson finite element method for the NLS equation. Chen et al. [8] applied the two-grid finite volume element method for the time-dependent Schrödinger equation. Deng et al. [9] considered a second-order SAV scheme for the nonlinear Schrödinger equation in the whole space with typical generalized nonlinearities and carried out a rigorous error analysis. Su et al. [10] considered the numerical solution of the nonlinear Schrödinger equation with a highly oscillatory potential (NLSE-OP) and rigorously analyzed the error bounds of the splitting schemes for solving the NLSE-OP to a fixed time. Wang et al. [11] proposed finite difference methods for the coupled Gross–Pitaevskii equations in high dimensions and the given error estimates.
There are some advantages, such as no dividing elements, simple formulas, no integrals and easy programming, of the collocation method, which is called the barycentric Lagrange interpolation collocation (BLIC) method. The method has captured the attention of many scholars because of its high accuracy. The numerical stability of the barycentric Lagrange interpolation collocation method with Chebyshev points is very good, and it can also effectively overcome the "Runge" phenomenon. The method has been extended to solve various partial differential equations, such as the sine-Gordon equation [12], the Burgers equation [13], the viscoelastic wave equation [14], the Allen–Cahn equation [15,16], nonlinear convection-diffusion optimal control problems [17] and the fractional telegraph equation [18], among others.
To the best of our knowledge, there are few studies regarding using the barycentric interpolation collocation method combined with the operator splitting method [19,20,21] for the nonlinear Schrödinger equation. Based on the above work, we focus on the convergence analysis of the proposed scheme. We analyze the fully discretized consistency of the linear subproblem. Moreover, the error estimates of the operator splitting scheme are derived.
The remaining parts of the paper are structured as follows. In Section 2, we present the barycentric Lagrange interpolation collocation method. In Section 3, we present a second-order operator splitting collocation scheme for the NLS equation. The convergence analyses of the proposed method are presented in Section 4. Numerical experiments are conducted in Section 5 to evaluate the accuracy and efficiency of the proposed method, while Section 6 presents some conclusions derived from these experiments.

2. Preliminary

Suppose that m + 1 distinct interpolation nodes, x j ( j = 0 , 1 , , m ) , and their corresponding function values, u j , are provided. Therefore, there exists a unique interpolation polynomial whose degree is not exceeding m, satisfying q ( x j ) = u j ( j = 0 , 1 , , m ) . As we know, q ( x ) has the Lagrange form as follows,
q ( x ) = j = 0 m G j ( x ) u j ,
where G j ( x ) represents the Lagrange interpolation basis function and
G j ( x ) = i = 0 , i j m x x i i = 0 , i j m x j x i , j = 0 , 1 , , m .
Suppose that
g ( x ) = ( x x 0 ) ( x x 1 ) ( x x m ) ,
and the barycentric weights are defined as follows:
w j = 1 i = 0 , i j m x j x i , j = 0 , 1 , , m .
Then, from Equations (5)–(7), we can obtain
G j ( x ) = g ( x ) w j x x j , j = 0 , 1 , , m .
By Equations (8) and (4), we have
q ( x ) = g ( x ) j = 0 m w j x x j u j .
If u = 1 , it has the following form:
1 = g ( x ) j = 0 m w j x x j .
By Equations (10) and (9), the barycentric interpolation formula of q ( x ) can be derived:
q ( x ) = j = 0 m w j x x j u j j = 0 m w j x x j = j = 0 m w j x x j j = 0 m w j x x j u j : = j = 0 m G ˜ j ( x ) u j .
To ensure the numerical stability of the barycentric Lagrange interpolation, we adopt Chebyshev points:
x j = c o s ( j m π ) , j = 0 , 1 , , m .
The v-order derivative of q ( x ) defined as Equation (11) with respect to x is
q ( v ) ( x i ) = d v q ( x i ) d x v = j = 0 m G ˜ j ( v ) ( x i ) u j = j = 0 m P i j ( v ) u j , v = 1 , 2 , , m ,
where P i j ( v ) denotes the element of the v-order differentiation matrix P ( v ) .
From Equations (11) and (13), we can obtain [22]
P i j ( 1 ) = G ˜ j ( x i ) = w j / w i x i x j , j i , P i i ( 1 ) = j = 0 , j i m P i j ( 1 ) ,
P i j ( 2 ) = G ˜ j ( x i ) = 2 w j / w i x i x j k i w k / w i x i x k + 1 x i x j , j i , P i i ( 2 ) = j = 0 , j i m P i j ( 2 ) .
Next, we will derive the approximation format for a given function, u ( x , y ) , and its derivative using the barycentric Lagrange interpolation formula.
For m + 1 distinct nodes, ( x 0 , y ) , ( x 1 , y ) , , ( x m , y ) , the unknown function u ( x , y ) , evaluated at node ( x i , y ) , can be expressed as follows:
u ( x i , y ) , i = 0 , 1 , , m .
From Equations (16) and (11), we can obtain the approximation function of u ( x , y ) :
u ( x , y ) = i = 0 m α i ( x ) u ( x i , y ) , i = 0 , 1 , , m .
Similarly, the expression of u ( x i , y ) is as follows:
u ( x i , y ) = j = 0 n β j ( y ) u ( x i , y j ) , j = 0 , 1 , , n .
From Equations (17) and (18), we can obtain
u ( x , y ) = i = 0 m j = 0 n α i ( x ) β j ( y ) u ( x i , y j ) ,
and its second-order partial derivative has the following form:
u x x ( x , y ) = i = 0 m j = 0 n α i ( x ) β j ( y ) u ( x i , y j ) ,
u y y ( x , y ) = i = 0 m j = 0 n α i ( x ) β j ( y ) u ( x i , y j ) .

3. Operator Splitting Collocation Method

In this section, we propose an operator splitting collocation scheme for the NLS equation, which is based on the Strang splitting procedure. Our approach combines the barycentric Lagrange interpolation collocation method for spatial approximation and a second-order Crank–Nicolson scheme for temporal approximation.
First, rewrite Equation (1) as follows,
i u t = L ( u ) + N ( u ) ,
where L ( u ) = ρ Δ u and N ( u ) = v ( x ) u β | u | 2 u .
Then, Equation (1) is split into the linear part,
i u t = L ( u ) = ρ Δ u ,
and the nonlinear part,
i u t = N ( u ) = v ( x ) u β | u | 2 u .
Next, for a given time step, τ , the solution of Equation (1) evolves from t to t + τ via the Strang splitting method [23], which consists of three substeps:
u ( x , y , t + τ ) = S B ( τ 2 ) S A ( τ ) S B ( τ 2 ) u ( x , y , t ) + O ( τ 3 ) ,
where S A and S B are the exact solution operators of Equation (23) and Equation (24), respectively.
Then, we will provide numerical approximations S h A and S h B for the exact solution operators S A and S B , respectively. Suppose Ω = [ a , b ] × [ c , d ] and Ω h = { ( x i , y j ) , i = 0 < 1 < < m , j = 0 < 1 < < n } . Here, x i and y j are Chebyshev mesh points.
To solve Equation (23), the barycentric Lagrange interpolation collocation method is applied to discretize the spatial derivative. The semi-discretized scheme in space is obtained based on the barycentric Lagrange interpolation collocation method, as introduced in Section 2.
i u t ( x i , y j , t ) = ρ i = 0 m j = 0 n α i ( x ) β j ( y ) + α i ( x ) β j ( y ) u ( x i , y j , t ) .
The matrix form of (26) can be expressed as
i ( u h ( t ) ) t = ρ P ( 2 ) I n + I m Q ( 2 ) u h ( t ) ,
where u h ( t ) = [ u 00 ( t ) , , u 0 n ( t ) , u 10 ( t ) , , u 1 n ( t ) , , u m 0 ( t ) , , u m n ( t ) ] , u i j ( t ) = u ( x i , y j , t ) ; P ( 2 ) and Q ( 2 ) are second-order differentiation matrices on nodes x 0 , x 1 , , x m and y 0 , y 1 , , y n , respectively; ⊗ represents the Kronecker product of the matrix; I m and I n are the identity matrices of m + 1 and n + 1 order, respectively. Then, setting u h k = u h ( t k ) , we can obtain the following fully discretized scheme:
i u h k + 1 u h k τ = ρ ( 1 2 ( P ( 2 ) I n + I m Q ( 2 ) ) u h k + 1 + 1 2 ( P ( 2 ) I n + I m Q ( 2 ) ) u h k ) .
Therefore, we obtain
S h A : u h k + 1 = ( i I + ρ τ 2 W ) 1 ( i I ρ τ 2 W ) u h k ,
where I is the identity matrix of order ( m + 1 ) ( n + 1 ) , W = P ( 2 ) I n + I m Q ( 2 ) .
Then, Equation (24) can be solved analytically by
S h B : u h k + 1 = e i τ 2 ( v ( x , y ) + β | u h k | 2 ) u h k .
The second-order operator splitting scheme can be derived as follows:
MI : u h ( 1 ) = e i τ 2 ( v ( x , y ) + β | u h k | 2 ) u h k u h ( 2 ) = ( i I + ρ τ 2 W ) 1 ( i I ρ τ 2 W ) u h ( 1 ) u h k + 1 = e i τ 2 ( v ( x , y ) + β | u h ( 2 ) | 2 ) u h ( 2 ) .

4. Convergence Analysis

Firstly, in this section we analyze the consistency of the semi-discretized scheme (26). Suppose that q ( x , y ) is the Lagrange interpolation function of u ( x , y ) , satisfying q ( x i , y j ) = u ( x i , y j ) , i = 0 < 1 < < m , j = 0 < 1 < < n .
By defining
r ( x , y ) = u ( x , y ) q ( x , y ) ,
we can obtain the following estimates [18],
Lemma 1. 
Suppose u ( x , y ) C ( m ˜ + 1 ) ( [ a , b ] × [ c , d ] ) , where m ˜ = max { m , n } , we have
r ( x , y ) C 1 u ( m + 1 ) e h x 2 m m + C 2 u ( m + 1 ) e h y 2 n n r x x ( x , y ) C 1 * * u ( m + 1 ) e h x 2 ( m 2 ) m 2 + C 2 u ( n + 1 ) e h y 2 n n r y y ( x , y ) C 1 u ( m + 1 ) e h x 2 m m + C 2 * * u ( n + 1 ) e h y 2 ( n 2 ) n 2 ,
where h x = b a 2 , h y = d c 2 , and e is the natural constant.
Let u ( x , y , t ) be the solution of Equation (1) and u ( x i , y j , t ) is the numerical solution of u ( x , y , t ) discretized by barycentric Lagrange interpolation collocation method; we then have
T u ( x i , y j , t ) = 0
and
lim i , j T u ( x i , y j , t ) = 0 ,
where T = i t + 2 x 2 + 2 y 2 .
Based on the above results, we obtain the following theorem.
Theorem 1. 
Let u ( x i , y j , t ) : T u ( x i , y j , t ) = 0 , we have
u ( x , y , t ) u ( x i , y j , t ) C 1 * * u ( m + 1 ) e h x 2 ( m 2 ) m 2 + C 2 * * u ( n + 1 ) e h y 2 ( n 2 ) n 2 .
Proof
As
T u ( x , y , t ) T u ( x i , y j , t ) = i u t ( x , y , t ) + u x x ( x , y , t ) + u y y ( x , y , t ) i u t ( x i , y j , t ) + u x x ( x i , y j , t ) + u y y ( x i , y j , t ) = i u t ( x , y , t ) i u t ( x i , y j , t ) + u x x ( x , y , t ) u x x ( x i , y j , t ) + u y y ( x , y , t ) u y y ( x i , y j , t ) : = A 1 + A 2 + A 3 ,
where A 1 , A 2 and A 3 represent
A 1 = i u t ( x , y , t ) i u t ( x i , y j , t ) , A 2 = u x x ( x , y , t ) u x x ( x i , y j , t ) , A 3 = u y y ( x , y , t ) u y y ( x i , y j , t ) .
For A 1 , we obtain
A 1 = i ( u t ( x , y , t ) u t ( x i , y j , t ) ) = i ( u t ( x , y , t ) u t ( x i , y , t ) + u t ( x i , y , t ) u t ( x i , y j , t ) ) = i ( r t ( x i , y , t ) + r t ( x i , y j , t ) ) .
From Lemma 1, we can derive
A 1 = i ( r t ( x i , y , t ) + r t ( x i , y j , t ) ) r t ( x i , y , t ) + r t ( x i , y j , t ) C 1 u ( m + 1 ) e h x 2 m m + C 2 u ( n + 1 ) e h y 2 n n .
Similar estimates can be derived as follow:
A 2 = r x x ( x i , y , t ) + r x x ( x i , y j , t ) C 1 * * u ( m + 1 ) e h x 2 ( m 2 ) m 2 + C 2 u ( n + 1 ) e h y 2 n n ,
A 3 = r y y ( x i , y , t ) + r y y ( x i , y j , t ) C 1 u ( m + 1 ) e h x 2 m m + C 2 * * u ( n + 1 ) e h y 2 ( n 2 ) n 2 .
From (38)–(40) and (35), the proof is completed. □
Next, we consider consistency analysis of the full-discretized scheme (28).
Theorem 2. 
Suppose u ( x , y , t ) C ( m ˜ + 1 ) Ω × C 2 0 , T , Ω = [ a , b ] × [ c , d ] , where m ˜ = max { m , n } and u ( x i , y j , t k + 1 ) is the corresponding numerical solution of u ( x , y , t ) , we have
u ( x , y , t ) u ( x i , y j , t k + 1 ) C 3 τ 3 + u ( m + 1 ) e h x 2 ( m 2 ) m 2 + u ( n + 1 ) e h y 2 ( n 2 ) n 2 ,
where C 3 is a positive constant.
Proof
Let u ( x , y , t k + 1 ) be the corresponding numerical solution using the Crank–Nicolson scheme for temporal approximation of u ( x , y , t ) ; we can obtain
i δ u t ( x , y , t k + 1 2 ) = ρ Δ u ( x , y , t k + 1 2 ) + R k ,
where δ u t ( x , y , t k + 1 2 ) = u ( x , y , t k + 1 ) u ( x , y , t k ) , and R k = u t ( x , y , t k + 1 2 ) δ u t ( x , y , t k + 1 2 ) is the truncation error in time. Based on the principle of Taylor expansion, we can obtain
R k C 4 τ 3 .
Equation (41) is discretized by the BLIC scheme, and supposing that u ( x i , y j , t k + 1 ) is the numerical solution of u ( x , y , t k + 1 ) based on the BLIC method, it holds that
i δ u t ( x i , y j , t k + 1 2 ) = ρ Δ u h ( x i , y j , t k + 1 2 ) + R k + γ i , j ,
where γ i , j represents the truncation error in space.
Combining Equations (41) and (43), we have
i δ u t ( x , y , t k + 1 2 ) i δ u t ( x i , y j , t k + 1 2 ) = ρ Δ u ( x , y , t k + 1 2 ) + ρ Δ u h ( x i , y j , t k + 1 2 ) γ i , j .
If we use a similar technique in Theorem 1, we can derive
γ i , j C 1 * * u ( m + 1 ) e h x 2 ( m 2 ) m 2 + C 2 * * u ( n + 1 ) e h y 2 ( n 2 ) n 2 .
Combining (42) and (45), the proof is completed. □
We will now analyze the error results of the operator splitting scheme.
Define a grid function space on Ω h ,
W h = { U | U = { U i j | 0 i m , 0 j n } } ,
and a mapping I h : H ˜ ( Ω ) W h by
I h ( u ) = U ,
where H ˜ ( Ω ) = { u H 2 ( Ω ) | u ( x , t ) = 0 } .
Lemma 2. 
Supposing that U W h , W is bounded and τ is small enough, we have
S h A ( τ ) U ( 1 + κ τ ) U .
Proof
By Taylor expansion, the approximation of ( i I + ρ τ 2 W ) 1 at the zero matrix is
( i I + ρ τ 2 W ) 1 = i I + ρ τ 2 W + i ( ρ τ ) 2 4 W 2 ( ρ τ ) 3 8 W 3 + O ( τ 4 ) .
Then, combining with the above formula, we can obtain
( i I + ρ τ 2 W ) 1 ( i I ρ τ 2 W ) = I + i ρ τ W ( ρ τ ) 2 2 W 2 ( ρ τ ) 4 16 W 4 1 + κ τ .
Therefore,
S h A ( τ ) U = ( i I + ρ τ 2 W ) 1 ( i I + ρ τ 2 W ) U ( i I + ρ τ 2 W ) 1 ( I + ρ τ 2 W ) U ( 1 + κ τ ) U ,
where κ is a positive constant independent of τ . □
Lemma 3. 
Supposing that U W h , we have
S h B ( τ 2 ) U = U .
Proof
S h B ( τ 2 ) u i j = e i τ 2 ( v ( x , y ) + β | u i j | 2 ) u i j = u i j .
By Theorem 2, we can obtain the following result.
Lemma 4. 
Supposing that u 0 H ˜ ( Ω ) , we have
I h S A u 0 S h A I h u 0 C 1 * * u ( m + 1 ) e h x 2 ( m 2 ) m 2 + C 2 * * u ( n + 1 ) e h y 2 ( n 2 ) n 2 + C 4 τ 3 .
For convenience, suppose
η = C 5 u ( m + 1 ) e h x 2 ( m 2 ) m 2 + u ( n + 1 ) e h y 2 ( n 2 ) n 2 + τ 3 ,
where C 5 = max C 1 * * , C 2 * * , C 4 .
Theorem 3. 
Let u k + 1 H ˜ ( Ω ) be the exact solution of Equation (1) and u ˜ ( x , y , t ) and U k + 1 be the exact solution of Equation (25) and the numerical solution at t k + 1 of Equation (31), respectively. According to Theorem 1 and Lemma 2, we have
I h u k + 1 U k + 1 C u ( m + 1 ) τ e h x 2 ( m 2 ) m 2 + u ( n + 1 ) τ e h y 2 ( n 2 ) n 2 + τ 2 ,
where C is a positive constant independent of τ .
Proof
For k 0 , we obtain
I h u k + 1 U k + 1 I h u k + 1 I h u ˜ k + 1 + I h u ˜ k + 1 U k + 1 .
From [23], we obtain
I h u ˜ k + 1 I h u k + 1 C 6 τ 2 .
By Lemma 3, we obtain
I h u ˜ k + 1 U k + 1 = I h S B S A S B u ˜ k S h B S h A S h B U k I h S B S A S B u ˜ k S h B I h S A S B u ˜ k + S h B I h S A S B u ˜ k S h B S h A S h B U k I h S A S B u ˜ k S h A S h B U k .
From Lemmas 2 and 4, we obtain
I h S A S B u ˜ k S h A S h B U k I h S A S B u ˜ k S h A I h S B u ˜ k + S h A I h S B u ˜ k S h A S h B U k η + ( 1 + κ τ ) I h S B u ˜ k S h B U k .
From Lemma 3, we derive
I h S B u ˜ k S h B U k I h S B u ˜ k S h B I h u ˜ k + S h B I h u ˜ k S h B U k I h u ˜ k U k .
Due to I h u ˜ 0 U 0 = 0 , and by the Gronwall inequality, we can obtain
I h u ˜ k + 1 U k + 1 η + ( 1 + κ τ ) I h u ˜ k U k j = 0 k ( 1 + κ τ ) j η + ( 1 + κ τ ) k + 1 I h u ˜ 0 U 0 ( 1 + κ τ ) k + 1 1 1 + κ τ 1 η e κ τ κ τ η .
By the above estimates and the expression of η , we have
I h u k + 1 U k + 1 e κ τ κ C 5 u ( m + 1 ) τ e h x 2 ( m 2 ) m 2 + u ( n + 1 ) τ e h y 2 ( n 2 ) n 2 + τ 2 C u ( m + 1 ) τ e h x 2 ( m 2 ) m 2 + u ( n + 1 ) τ e h y 2 ( n 2 ) n 2 + τ 2 ,
where C = max C 5 e κ τ κ , C 5 e κ τ κ + C 6 . The proof is completed. □

5. Numerical Experiments

In this section, we will provide some numerical results for the NLS Equation (1) to test the high accuracy and efficiency of our scheme. For convenience, the error notations are given as follows,
E = u h u e ,
E r = u h u e u e ,
where u h and u e denote the numerical solution and the exact solution, respectively. · is the L norm. All computations presented in this work were performed on a standard i5 Intel 1.8GHz laptop in MATLAB R2020b.

5.1. Example 1

This example is used to test the accuracy and convergence of our scheme. Considering the following 2D NLS equation on [ 0 , 2 π ] 2 × ( 0 , T ] ,
i u t + 1 2 Δ u ( 1 sin 2 x sin 2 y ) u u 2 u = 0 u ( x , y , 0 ) = sin x sin y u ( 0 , y , t ) = u ( 2 π , y , t ) = 0 u ( x , 0 , t ) = u ( x , 2 π , t ) = 0 ,
where the exact solution is in the following form:
u ( x , y , t ) = e 2 i t sin x sin y .
To verify the accuracy and the convergence rate of the operator splitting scheme based on the barycentric Lagrange interpolation collocation method MI, the operator splitting scheme based on the barycentric rational interpolation collocation method [24] MII and the classical second-order finite difference scheme SI, we choose the simulation parameters n = m , τ = 0.001 and T = 1 .
The results are shown in Table 1, Table 2, Table 3 and Table 4 and Figure 1, Figure 2 and Figure 3. Table 1, Table 2 and Table 3 show the spatial errors of the three schemes. By comparing Table 1 and Table 3, it can be seen that the MI scheme, based on the barycentric Lagrange interpolation collocation method in space, can achieve a higher accuracy using only 8 × 8 mesh points. However, for the same accuracy, the SI scheme, based on a second-order center difference method in space, requires more than 80 × 80 mesh points. Furthermore, by comparing Table 1 and Table 2, it is easy to see that the MI scheme is slightly more efficient than the MII scheme. The comparison of the three schemes shows that the barycentric Lagrange interpolation collocation scheme can achieve higher accuracy with fewer points in space. In addition, the CPU time of the MI scheme is significantly reduced compared with the SI scheme and is similar to the MII scheme.
If we fix m = n = 16 and vary the temporal step, τ , we can obtain errors and temporal convergence rate, as shown in Table 2. It shows that the MI scheme based on the barycentric interpolation collocation scheme for the NLS equation has second-order accuracy in time. In addition, the spatial convergence rate is also obtained, and the L errors at time T = 1 for NLS equation are shown in Figure 1.
Choose m = n = 20 ; the numerical solution and the exact solution of the NLS equation are shown in Figure 2a,b. Moreover, it is necessary to verify the conservation of energy and mass. We plot images of mass and energy varying over time. From Figure 3, it is obvious that mass and energy are conserved.

5.2. Example 2

Consider the following 1D problem on [ 10 , 40 ] × ( 0 , 9 ] :
i u t + Δ u + 2 u 2 u = 0 , u ( 10 , t ) = u ( 40 , t ) = 0 , u 0 ( x ) = sech ( x ) exp ( 2 i x ) + sech ( x 30 ) exp ( i ( x 30 ) ) .
This example shows the collision behavior of two solitary waves. If we provide the initial value condition, a double solitary wave can be generated. When t = 0, two solitary waves are separated. The fast wave will catch up with the slow wave over time, and it will then surpass the slow wave after the collision, and there is only one phase change between them. This is consistent with the theory of waves; see Figure 4 and Figure 5.

6. Conclusions

In this work, we have proposed an effective operator splitting scheme based on the barycentric Lagrange interpolation collocation method for the nonlinear Schrödinger equation. The convergence analysis is proved theoretically and verified numerically. Numerical examples are presented to show the mass and energy conservation of the proposed scheme. The operator splitting collocation scheme is second-order in time and convergent exponentially in space. The two barycentric interpolation collocation schemes have high accuracy, and the barycentric Lagrange interpolation collocation method is slightly more efficient than the barycentric rational interpolation collocation method. Compared with the finite difference method, the barycentric interpolation collocation method can achieve high accuracy with fewer points. In the future, we plan to extend this method to coupled Schrödinger equations, KdV equations and Klein–Gordon equations, etc.

Author Contributions

M.Y., methodology, conceptualization, design, analysis, software, original draft writing; Z.W., methodology, supervision, conceptualization, editing, draft editing and reviewing. All authors have read and agreed to the published version of the manuscript.

Funding

The research was funded by the Natural Science Foundation of Fujian Province (Nos. 2022J01308, 2021J01306), the NSF of China (No. 11701197), the Program for Innovative Research Teams in Science and Technology in Fujian Province University and the Fuzhou-Xiamen-Quanzhou National Independent Innovation Demonstration Zone Collaborative Innovation Platform under Grant 2022FX5.

Data Availability Statement

No new data were created or analyzed in this study.

Acknowledgments

We thank the anonymous referees for their careful checking and valuable comments which improve the manuscript.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Schrödinger, E. The present status of quantum mechanics. Sci. Nat. 1935, 23, 1–26. [Google Scholar]
  2. Gong, Y.Z.; Wang, Q.; Wang, Y.S.; Cai, J.X. A conservative Fourier pseudo-spectral method for the nonlinear Schrödinger equation. J. Comput. Phys. 2017, 328, 354–370. [Google Scholar] [CrossRef]
  3. Cui, J.; Xu, Z.Z.; Wang, Y.S.; Jiang, C.L. Mass-and energy-preserving exponential Runge–Kutta methods for the nonlinear Schrödinger equation. Appl. Math. Lett. 2020, 112, 106770. [Google Scholar] [CrossRef]
  4. Feng, X.B.; Li, B.Y.; Ma, S. High-order mass-and energy-conserving SAV-Gauss collocation finite element methods for the nonlinear Schrödinger equation. SIAM J. Numer. Anal. 2021, 59, 1566–1591. [Google Scholar] [CrossRef]
  5. Wang, J.J.; Li, M.; Guo, L.J. Superconvergence analysis for nonlinear Schrödinger equation with two-grid finite element method. Appl. Math. Lett. 2021, 122, 107553. [Google Scholar] [CrossRef]
  6. Wang, L.L.; Li, M. Galerkin finite element method for damped nonlinear Schrödinger equation. Appl. Numer. Math. 2022, 178, 216–247. [Google Scholar] [CrossRef]
  7. Hu, H.Z.; Li, B.Y.; Zou, J. Optimal convergence of the Newton iterative Crank–Nicolson finite element method for the nonlinear Schrödinger equation. Comput. Methods Appl. Math. 2022, 22, 91–612. [Google Scholar] [CrossRef]
  8. Chen, C.J.; Lou, Y.Z.; Hu, H.Z. Two-grid finite volume element method for the time-dependent Schrödinger equation. Comput. Math. Appl. 2022, 108, 185–195. [Google Scholar] [CrossRef]
  9. Deng, B.C.; Shen, J.; Zhuang, Q.Q. Second-order SAV schemes for the nonlinear Schrödinger equation and their error analysis. J. Sci. Comput. 2021, 69, 88. [Google Scholar] [CrossRef]
  10. Su, C.M.; Zhao, X.F. On time-splitting methods for nonlinear Schrödinger equation with highly oscillatory potential. Math. Model. Numer. Anal. 2020, 54, 1491–1508. [Google Scholar] [CrossRef]
  11. Wang, T.C.; Zhao, X.F. Optimal L error estimates of finite difference methods for the coupled Gross–Pitaevskii equations in high dimensions. Sci. China Math. 2014, 57, 2189–2214. [Google Scholar] [CrossRef]
  12. Li, J.; Qu, J.Z. Barycentric Lagrange interpolation collocation method for solving the Sine-Gordon equation. Wave Motion 2023, 120, 103159. [Google Scholar] [CrossRef]
  13. Hu, Y.D.; Peng, A.; Chen, L.Q.; Tong, Y.L.; Weng, Z.F. Analysis of the barycentric interpolation collocation scheme for the Burgers equation. Sci. Asia 2021, 47, 758–765. [Google Scholar] [CrossRef]
  14. Oruç, Ö. Two meshless methods based on local radial basis function and barycentric rational interpolation for solving 2D viscoelastic wave equation. Comput. Appl. Math. 2020, 79, 3272–3288. [Google Scholar] [CrossRef]
  15. Deng, Y.F.; Weng, Z.F. Barycentric interpolation collocation method based on Crank–Nicolson scheme for the Allen–Cahn equation. AIMS Math. 2021, 6, 3857–3873. [Google Scholar] [CrossRef]
  16. Deng, Y.F.; Weng, Z.F. Operator splitting scheme based on barycentric Lagrange interpolation collocation method for the Allen–Cahn equation. J. Appl. Math. Comput. 2022, 68, 3347–3365. [Google Scholar] [CrossRef]
  17. Huang, R.; Weng, Z.F. A numerical method based on barycentric interpolation collocation for nonlinear convection-diffusion optimal control problems. Netw. Heterog. Media 2023, 18, 562–580. [Google Scholar] [CrossRef]
  18. Yi, S.C.; Yao, L.Q. A steady barycentric Lagrange interpolation method for the 2D higher-order time-fractional telegraph equation with nonlocal boundary condition with error analysis. Numer. Methods Partial Differ. Equ. 2019, 35, 1694–1716. [Google Scholar] [CrossRef]
  19. Lubich, C. On splitting methods for Schrödinger–Poisson and cubic nonlinear Schrödinger equations. Math. Comput. 2008, 77, 2141–2153. [Google Scholar] [CrossRef]
  20. Zhai, S.Y.; Wang, D.L.; Weng, Z.F.; Zhao, X. Error analysis and numerical simulations of Strang splitting method for space fractional nonlinear Schrödinger equation. J. Sci. Comput. 2019, 81, 965–989. [Google Scholar] [CrossRef]
  21. Zhai, S.; Weng, Z.; Zhuang, Q.; Liu, F.; Anh, V. An effective operator splitting method based on spectral deferred correction for the fractional Gray–Scott model. J. Comput. Appl. Math. 2023, 425, 114959. [Google Scholar] [CrossRef]
  22. Berrut, J.P.; Trefethen, L.N. Barycentric Lagrange interpolation. SIAM Rev. 2004, 46, 501–507. [Google Scholar] [CrossRef]
  23. Strang, G. On the construction and comparison of difference schemes. SIAM J. Numer. Anal. 1968, 5, 506–517. [Google Scholar] [CrossRef]
  24. Li, J.; Cheng, Y.L. Linear barycentric rational collocation method for solving heat conduction equation. Numer. Methods Partial Differ. Equ. 2021, 37, 533–545. [Google Scholar] [CrossRef]
Figure 1. Spatial L errors at t = 1 for NLS equation for Example 1.
Figure 1. Spatial L errors at t = 1 for NLS equation for Example 1.
Mca 29 00006 g001
Figure 2. The numerical solution and the exact solution diagrams at T = 1 for Example 1.
Figure 2. The numerical solution and the exact solution diagrams at T = 1 for Example 1.
Mca 29 00006 g002
Figure 3. Conservation situation of energy and mass at T = 1 for Example 1.
Figure 3. Conservation situation of energy and mass at T = 1 for Example 1.
Mca 29 00006 g003
Figure 4. The interaction of two solitary waves without damping at T = 9 for Example 2.
Figure 4. The interaction of two solitary waves without damping at T = 9 for Example 2.
Mca 29 00006 g004
Figure 5. Head-on collisions of two solitary waves without damping for Example 2.
Figure 5. Head-on collisions of two solitary waves without damping for Example 2.
Mca 29 00006 g005
Table 1. Error of barycentric Lagrange interpolation collocation scheme for Example 1.
Table 1. Error of barycentric Lagrange interpolation collocation scheme for Example 1.
m E E r CPU
68.4010 × 10 3 8.4010 × 10 3 0.152 s
82.3542 × 10 4 2.7054 × 10 4 0.288 s
101.9318 × 10 6 2.0865 × 10 6 0.694 s
125.6755 × 10 8 5.6755 × 10 8 1.039 s
168.0816 × 10 8 8.3330 × 10 8 2.914 s
Table 2. Error of barycentric rational interpolation collocation method for Example 1.
Table 2. Error of barycentric rational interpolation collocation method for Example 1.
m E E r CPU
62.9302 × 10 3 2.9302 × 10 3 0.178 s
82.7122 × 10 3 3.1167 × 10 3 0.289 s
105.4257 × 10 6 5.8602 × 10 6 0.735 s
122.0948 × 10 6 2.0948 × 10 6 1.082 s
168.3994 × 10 8 8.6607 × 10 8 3.066 s
Table 3. Error of difference scheme for Example 1.
Table 3. Error of difference scheme for Example 1.
m E E r CPU
102.9367 × 10 2 3.2467 × 10 2 0.202 s
208.1977 × 10 3 8.1977 × 10 3 3.586 s
402.0546 × 10 3 2.0546 × 10 3 160.534 s
609.1360 × 10 4 9.1360 × 10 4 1665.769 s
805.1402 × 10 4 5.1402 × 10 4 8993.522 s
Table 4. Errors and convergence rate in time for Example 1.
Table 4. Errors and convergence rate in time for Example 1.
τ E Rate E r Rate
1/81.2598 × 10 3 -1.2990 × 10 3 -
1/163.1552 × 10 4 1.99753.2533 × 10 4 1.9975
1/327.8913 × 10 5 1.99948.1368 × 10 5 1.9994
1/641.9731 × 10 5 1.99982.0344 × 10 5 1.9998
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Yao, M.; Weng, Z. A Numerical Method Based on Operator Splitting Collocation Scheme for Nonlinear Schrödinger Equation. Math. Comput. Appl. 2024, 29, 6. https://doi.org/10.3390/mca29010006

AMA Style

Yao M, Weng Z. A Numerical Method Based on Operator Splitting Collocation Scheme for Nonlinear Schrödinger Equation. Mathematical and Computational Applications. 2024; 29(1):6. https://doi.org/10.3390/mca29010006

Chicago/Turabian Style

Yao, Mengli, and Zhifeng Weng. 2024. "A Numerical Method Based on Operator Splitting Collocation Scheme for Nonlinear Schrödinger Equation" Mathematical and Computational Applications 29, no. 1: 6. https://doi.org/10.3390/mca29010006

Article Metrics

Back to TopTop