Abstract
This paper proposes a finite difference scheme with a three-level time and a five-point stencil in space to solve an initial boundary value problem for the MRLW equation. The scheme is shown to be marginally stable and convergent with a fourth-order convergence in the space direction and a second-order convergence in the time variable direction with regard to the maximum norm. The conservation properties of the proposed scheme are assessed using the three motion invariants for mass, momentum, and energy. To validate the theoretical results, numerical experiments are given for both single and interaction of two and three solitary waves.
Similar content being viewed by others
Avoid common mistakes on your manuscript.
1 Introduction
Solitary waves, or solitons as they are also known, are nonlinear waves that have the ability to propagate through media over a prolonged period while maintaining key properties; for example, velocity and shape [1]. As solitons remain stable when they collide with other solitons, they have found widespread application in a range of areas including optics, fluid mechanics, finance, biology, physics, engineering sciences, and neuroscience. Nonlinear partial differential equations are used to model solitons. For example, the regularized long wave (RLW) equation, which was originally presented by Peregrine [2] and Benjamin et al. [3], is as follows:
where \(\delta\) and \(\mu\) are positive constants. It is considered with the homogeneous Dirichlet boundary conditions \(u\rightarrow 0\) as \(x\rightarrow \pm \infty\).
The RLW equation is particular case of the generalized long wave (GRLW) equation which has the form
where p is a positive integer by setting \(p=1\). In our paper, we consider another particular case of the GRLW equation called the modified regularized long wave (MRLW) equation when \(p=2\) and is given by
The GRLW equation and its particulars cases: RLW equation and MRLW equation were initially suggested as a means of modeling phenomena that exhibited dispersion waves in combination with weak nonlinearity; for example, pressure waves in a liquid gas bubble mixture, ion-acoustic and magnetohydrodynamic waves in plasma, phonon packets in nonlinear crystals, and nonlinear transverse waves in shallow water. The analytical solution that underpins the MRLW equation is limited to single solitary waves under the restricted initial and boundary conditions. Scholars have yet to develop formulae for other cases, for example, within the context of the Maxwellian initial condition and situations involving the interaction of more than one soliton. As such, the development of accurate numerical approximations remains critical such as finite difference methods [4,5,6,7,8,9], finite element method [10,11,12,13], mixed finite element method [14, 15], collocation method [16,17,18], spectral method [19, 20] and Adomian decomposition method [21, 22].
Numerous finite difference schemes for the MRLW problem have been documented in the extant literature, with many scholars placing a specific focus on the finite difference methods and the MRLW equation. The MRLW problem, for instance, was solved using the finite difference approach by Khalifa et al. [6], who also investigated other aspects of the MRLW equation, including the interaction of solitary waves. Additionally, Fourier analysis was performed to demonstrate the stability of the scheme. The truncation error was also well controlled.
The generalized regularised long wave (GRLW) problem was solved by Akbari and Mokhtari using a new compact finite difference method (CFDM) [23]. The stability analysis of the energy method was explored, and an error estimate was presented. The method was validated using two solitary waves interaction and the propagation of single solitons. To ascertain the method conservation properties, three motion invariants were assessed.
A fully implicit finite difference technique for the numerical solution of the MRLW equation was presented by Inan and Bahadir [24]. The validity of the approach was tested using several MRLW equation examples. A comparison of the results with analytical and other numerical invariants demonstrated the accuracy and dependability of the outcomes achieved utilizing the fully implicit finite difference scheme.
In the current study, we suggest a finite difference approach to solve the MRLW equation that has three levels in time and a five-point stencil in space. The stability of the Fourier analysis-based method is considered, and the accuracy of the convergence rate of \(O(h^4+k^2)\) is also proved. The remainder of this paper is structured as follows. The analytical solution of the MRLW equation and its conservative laws are reviewed in Sect. 2. The creation of the suggested scheme is the focus of Sect. 3. The stability and convergence rates of the scheme are examined in Sect. 4. To validate our theoretical findings, Sect. 5 presents various numerical experiments for single and interaction of solitons. Finally, our concluding remarks are contained in Sect. 6.
2 Analytical solution and conservation laws
The analytical solution of the MRLW equation Eq. (3) is given in the form [6]
where \(\sqrt{\frac{6c}{\delta }}\) is the amplitude of the MRLW solitary wave. The solitary wave is initially centred at \(x_0\) and its speed and its width are represented by c and \(\sqrt{\frac{c}{\mu (c+1)}}\), respectively.
The validity of the numerical methods can be determined using the three invariants of the motion that the MRLW equation has; that is, the mass, momentum, and energy conservative laws given as [6, 25]:
and
The use of these invariants can be particularly pertinent in situations for which there are no analytic solutions or during soliton interactions [25].
3 Construction of the finite difference scheme
To construct the finite difference scheme of the MRLW equation Eq. (3) with a three-level scheme in time and a five-point stencil in space, the following notations for the derivatives are used:
where \(k=\Delta t\) is the time step and \(h=\Delta x\) represents the spatial step size. The superscript n denotes a quantity associated with time level \(t_n\) and subscript j denotes a quantity associated with space mesh point \(x_j\). The grid points are \(t_{n}=nk,\, n=0,1,2,\ldots ,N\) for time and \(x_{j}=jh,\, j=0,1,2,\ldots ,M\) for space, where M and N are positive integers. The finite difference scheme therefore becomes
Then substituting Eq. (8) into Eq. (9) yields
where \(Q_j^n=kh(1+\delta (u_j^n)^{2})\). The scheme (10) is a tridiagonal system that can be easily simulated using MATLAB platform. From now in our work, we take \(\delta =1\).
4 Convergence and linear stability analysis
Lemma 1
The finite difference scheme (10) is marginally stable.
Proof
In the case of applying the Von Neumann stability theory, the solution of Eq. (10) can be written as
where l is a mode number. Now, set
and then inserting Eqs. (11) and (12) into Eq. (10) yields
where g is the growth factor and
with assuming that \((u_j^n)^{2}\) in Eq. (10) is locally constant, and for simplicity, we write it as \(u^{2}\). To verify Eq. (14), we must show that
To do this, we have
Now, we set \(y=1-\cos \phi\) and so \(\sin \phi = \sqrt{y(2-y)}.\) Then we have
for small spatial step size h and small time step k, and \(\mu\) is practically taken to be unity.
Now, Eq. (13) yields that \(g_1=-e^{i\theta }\) and \(g_2=e^{-i\theta }\), which implies that \(\Vert g_1\Vert =\Vert g_2\Vert =1\), and therefore the finite difference scheme (10) is marginally stable. \(\square\)
Lemma 2.
If u(x, t) is smooth enough, then the local truncation error of finite difference scheme (10) is \(O(h^4+k^2)\).
Proof
Let \(v_j^n=v(x_j,t_n)\) represents the exact solution for the Eq. (3) with independent variables x and t. The local truncation error of Eq. (9) is thus as follows:
Now, using Tylor expansion, it is easily shown that \(T_j^n\) at the point \((x_j,t_n)\) can be written as
and hence we have
\(\square\)
5 Numerical experiments
In this section, we present some numerical experiments to verify our theoretical results obtained in the previous section. The accuracy of the proposed scheme is measured using the \(L_{\infty }\) and \(L_{2}\) errors at \(t=t_N\) that are approximated by
In addition, the invariants of mass, momentum, and energy for the MRLW equation are calculated for a single soliton and during the interaction of two and three solitary waves to measure the conservation properties of the proposed scheme.
5.1 Motion of single solitary waves
With \(h=0.4\) and \(k=0.05\) fixed, two experiments were performed to demonstrate the viability of our scheme in the situation of a single soliton motion. Calculations up to \(T=20\) were performed. In line with the work of [23], the model parameters were selected as \(x_0=0\), \(c=0.1\) with range \([-40,60]\) for the first example and \(x_0=0\), \(c=0.03\) with range \([-80,120]\) for the second example. Tables 1 and 2 show the values of \(L_{\infty }\) and \(L_{2}\) errors and the invariants \(I_1\), \(I_2\), and \(I_3\). The invariant \(I_1\) is changed by less than \(10^{-5}\) in both circumstances, whilst the changes for the invariants \(I_2\) and \(I_3\) approach zero, demonstrating the reasonable conservatism of our proposed scheme. At \(T=20\), the errors for the first example are reasonably minimal, at \(1.182044\times 10^{-4}\) for \(L_{\infty }\) error and \(2.93952\times 10^{-4}\) for \(L_{2}\) error. Given that our approach is highly accurate, similar results are obtained for the second example as \(2.09146\times 10^{-5}\) for \(L_{\infty }\) error and \(5.92125\times 10^{-5}\) for \(L_{2}\) error. In Fig. 1 for the first example, the motion of the single wave is plotted at various time levels with an amplitude of 0.3, and in Fig. 2 for the second case, with an amplitude of 0.17. The fact that the waves at \(t=16\) and \(t=20\) adequately agree with those at \(t=4\) demonstrates the reliability and accuracy of our scheme.
Furthermore, we compare our results in terms of maximum errors with the obtained results in [8, 9, 12, 13] to examine the validity of our scheme. For the purpose of comparisons, the parameters are chosen as \(h=0.2\), \(k=0.025\), \(c=1\), \(x_0=40\), and \(\delta =6\), with a range [0, 100]. The computations are performed up to \(T=10\) and are listed in Table 3. It is clearly observed that \(L_{\infty }\)-errors obtained by our scheme are marginally smaller than those obtained by others, indicating that our scheme is more accurate.
5.2 Convergence rate
To calculate the convergence rates in space and in time, we use the following formula [23]
for the convergence rate in space, and
for the convergence rate in time, with respect to the maximum norm errors. With the other parameters remaining the same as in Table 1, we started with \(h=k=0.8\), and reduced the spatial and temporal variables by 2 and 4, respectively, to calculate the spatial convergence rates. The resultant \(L_{\infty }\) errors and the corresponding convergence rates of our scheme are recorded in Table 4, which reveals that the fourth order of convergence in the spatial direction was achieved. Table 5, in contrast, displays the temporal convergence rates, as we first set \(h=k=0.8\), then scaled them back by a factor of 2 for k and 4 for h. Other parameters are chosen as in Table 1. Based on the proposed scheme, the accuracy of order 2 in the temporal direction is obtained. These spatial and temporal rates are aligned with the theoretical conclusions in Lemma 2.
Additionally, the log-log scale depicted in Fig. 3. shows the resultant \(L_{\infty }\) errors on the solitary wave solutions with regard to spatial variable h and temporal variable k. In Fig. 3a and b, lines of slope 4 and 2 are added as references. As can be observed in these figures, our scheme achieved an \(O(h^4+k^2)\) accuracy, coinciding with the theoretical predictions.
5.3 Interaction of solitary waves
The interaction of two and three solitary waves travelling in the same direction is discussed in this section. The initial conditions in these scenarios can be described by a linear sum of two and three well-separated solitary waves of different amplitudes, as follows:
where \(p=2\) and \(p=3\) for the interaction of two and three solitary waves, respectively. We performed the simulations up to \(T=200\) and on the range [0, 300], with fixed \(h=0.4\) and \(k=0.05\) to enable the interaction to take place. Two solitary waves with \(c_1=\frac{4}{21}\), \(c_2=\frac{9}{91}\), \(x_1=15\) and \(x_2=35\) interacted at various time levels, as shown in Fig 4. Table 6 lists the outcomes of the conservation of three laws. Fig 5 presents a plot of the interaction of three solitons at various time levels, where \(c_1=\frac{4}{21}\), \(c_2=\frac{9}{91}\), \(c_3=\frac{15}{301}\), \(x_1=15\), \(x_2=35\) and \(x_3=55\). Table 7 lists the three invariants for this case. The outputs of the experiments reveal that the three invariants held relatively steady throughout the interaction process. Our approach effectively maintains the soliton properties because the waves interact and maintain their shape.
6 Conclusion
In this paper, we described the use of a finite difference method based on a three-level temporal scheme and a five-point space stencil to solve the initial boundary-value problem for the MRLW equation. Based on the maximum norm, the scheme is shown to be marginally stable and convergent with second-order accuracy in time and fourth-order accuracy in space. In order to demonstrate the effectiveness and accuracy of the proposed method, numerical experiments using single and solitary waves interaction were described. Investigations into the conservation quantities for mass, momentum, and energy were also conducted, and the results were deemed satisfactory. Comparisons with other previous results are given to show the accuracy and the efficiency of the proposed scheme.
Data Availability
This manuscript has no associated data.
References
Drazin PC (1983) Solitons, 1st edn. Cambridge University Press, Cambridge
Peregrine DH (1966) Calculations of the development of an undular bore. J Fluid Mech 25:321–330
Benjamin TB, Bona JL, Mahony JJ (1972) Model equations for long waves in nonlinear dispersive systems. Philos Trans R Soc B Biol Sci 272:47–78
Eilbeck JC, McGuire GR (1975) Numerical study of RLW equation I: numerical methods. J Comput Phys 19:43–57
Zhang L (2005) A finite difference scheme for generalized long wave equation. Appl Math Comput 168:962–972
Khalifa AK, Raslan KR, Alzubaidi HM (2007) A finite difference scheme for the mrlw and solitary wave interactions. Appl Math Comput 189:346–354
Rouatbi A, Labidi M, Omrani K (2020) Conservative difference scheme of solitary wave solutions of the generalized regularized long-wave equation. Indian J Pure Appl Math 51:1317–1342
Bayarassou K, Rouatbi A, Omrani K (2020) Uniform error estimates of fourth-order conservative linearized difference scheme for a mathematical model for long wave. Int J Comput Math 97:678–1703
Ghiloufi A, Rouatbi A, Omrani K (2018) A new conservative fourth-order accurate difference scheme for solving a model of nonlinear dispersive equations. Math Methods Appl Sci 41:1–24
Dogan A (2002) Numerical solution of rlw equation using linear finite element within Galerkin method. Appl Math Model 26:771–783
Roshan T (2012) A petrov galerkin method for solving the generalized regularized long wave (grlw) equation. Comput Math Appl 63:943–956
Karakoc SBG, Mei L, Ali KK (2021) Two efficient methods for solving the generalized regularized long wave equation. Appl Anal 101:4721–4742
Karakoc SBG, Bhowmik SK (2019) Numerical approximation of the generalized regularized long wave equation using Petrov-Galerkin finite element method. Numer Methods Partial Differ Equ 35:2236–2257
Gao F, Qiao F, Rui H (2015) Numerical simulation of the modified regularized long wave equation by split least-squares mixed finite element method. Math Comput Simul 109:64–73
Gu H, Chen N (2008) Least squares mixed finite element methods for the rlw equations. Numer Methods Partial Differ Equ 24:749–758
Khalifa AK, Raslan KR, Alzubaidi HM (2008) A collocation method with cubic b-spline for solving the mrlw eqution. J Comput Appl Math 212:406–418
Raslan KR, Hassan SM (2009) Solitary waves for the mrlw equation. Appl Math Lett 22:984–989
Mohammed PO, Alqudah MA, Hamed YS, Kashuri A, Abualnaja KM (2021) Solving the modified regularized long wave equations via higher degree b-spline algorithm. J Funct Spaces 2021:1–10
Djidjeli K, Price WG, Twizell EH, Cao Q (2003) A linearized implicit pseudo-spectral method for some model equations: the regularized long wave equations. Int J Numer Methods Biomed Eng 19:847–863
Hammad DA, El-Azab MS (2016) Chebyshev-chebyshev spectral collocation method for solving the generalized regularized long wave (GRLW) equation. Appl Math Comput 285:228–240
El-Danaf TS, Ramadan MA, Alaal FEIA (2005) The use of adomian decomposition method for solving the regularized long-wave equation. Chaos Solit Fract 26:747–757
Khalifa AK, Raslan KR, Alzubaidi HM (2008) Numerical study using adm for the modified regularized long wave equation. Appl Math Model 32:2962–2972
Akbari R, Mokhtari R (2014) A new compact finite difference method for solving the generalized long wave equation. Numer Funct Anal Optim 35:133–152
Inan B, Bahadir AR (2015) Numerical solutions of mrlw equation by a fully implicit finite-difference scheme. J Math Comput Sci 15:228–239
Olver PJ (1979) Euler operators and conservation laws of the bbm equation. Math Proc Camb Philos Soc 85:143–159
Funding
The authors declare that no funds, grants, or other support were received during the preparation of this manuscript.
Author information
Authors and Affiliations
Contributions
All authors have contributed to the idea and design of this research work, theoretical and numerical results and to the discussion of these results, as well as writing and revision of the Manuscript. The content of the manuscript has not been previously published, not presently under review for publication and is not being concurrently submitted elsewhere.
Corresponding author
Ethics declarations
Conflict of interest
The authors have no relevant financial or non-financial interests to disclose. The authors declare no conflict of interest.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Alotaibi, N., Alzubaidi, H. Solitary wave solutions of the MRLW equation using a spatial five-point stencil of finite difference approximation. J.Umm Al-Qura Univ. Appll. Sci. 9, 221–229 (2023). https://doi.org/10.1007/s43994-023-00036-7
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s43994-023-00036-7
Keywords
- Finite difference method
- Modified regularized long wave equation
- Stability analysis
- Convergence rate
- Solitary waves interaction