Abstract
Abstract
In this article, a Petrov-Galerkin method, in which the element shape functions are cubic and weight functions are quadratic B-splines, is introduced to solve the modified regularized long wave (MRLW) equation. The solitary wave motion, interaction of two and three solitary waves, and development of the Maxwellian initial condition into solitary waves are studied using the proposed method. Accuracy and efficiency of the method are demonstrated by computing the numerical conserved laws and L2, L ∞ error norms. The computed results show that the present scheme is a successful numerical technique for solving the MRLW equation. A linear stability analysis based on the Fourier method is also investigated.
Similar content being viewed by others
Avoid common mistakes on your manuscript.
Introduction
This study is concerned with the following one-dimensional modified regularized long wave (MRLW) equation:
where t is time, x is the space coordinate, μ is a positive parameter, and U(x,t) is the wave amplitude with the physical boundary conditions U→0 as x→± ∞. The equation was first introduced to describe the development of an undular bore by Peregrine [1] and later by Benjamin et al. [2]. This equation is very important in physics media since it describes the phenomena with weak nonlinearity and dispersion waves, including nonlinear transverse waves in shallow water, ion-acoustic and magneto hydrodynamic waves in plasma, and phonon packets in nonlinear crystals [2]. The MRLW equation which we discuss here is based upon the regularized long wave equation [[3]-[21]] and is related with both the modified equal width wave [[22]-[25]] and modified Korteweg-de Vries equation [26]. This equation is a special case of the generalized long wave (GRLW) equation which has the form:
where δ and μ are positive constants and p is a positive integer. Few authors have studied the GRLW equation; a quasilinearization method based on finite differences was used by Ramos [27] for solving the GRLW equation. Zhang [28] used a finite difference method to solve the GRLW equation for a Cauchy problem. Kaya and El-Sayed [29] also studied the GRLW equation with the Adomian decomposition method. Roshan [30] solved the GRLW equation numerically by the Petrov-Galerkin method using a linear hat function as the trial function and a quintic B-spline function as the test function. The MRLW equation with a limited set of boundary and initial conditions has analytical solutions. Therefore, numerical solutions of the equation have been the subject of some papers. Gardner et al. [31] introduced a collocation solution to the MRLW equation using quintic B-spline finite elements. Khalifa et al. [32, 33] applied the finite difference and cubic B-spline collocation finite element method to obtain the numerical solutions of the MRLW equation. Solutions based on collocation method with quadratic B-spline finite elements and the central finite difference method for time are investigated by Raslan [34]. Raslan and Hassan [35] solved the MRLW equation by a collocation finite element method using quadratic, cubic, quartic, and quintic B- splines to obtain the numerical solutions of the single solitary wave. Haq et al. [36] have developed a numerical scheme based on quartic B-spline collocation method for the numerical solution of MRLW equation. Ali [37] has formulated a classical radial basis function collocation method for solving the MRLW equation.
In this paper, we have applied a lumped Petrov-Galerkin method in which the element shape functions are cubic, and the weight functions are quadratic B-splines. The motion of a single solitary wave, interaction of two and three solitary waves, and Maxwellian initial condition are studied to show the performance and accuracy of the proposed method. A linear stability analysis of the scheme shows that it is unconditionally stable.
Cubic B-spline Petrov-Galerkin method
To apply the numerical method, the solution domain of the problem is restricted over an interval a≤x≤b. The interval is partitioned into uniformly sized finite elements of equal length h by the nodes x m such that a=x0<x1⋯<x N =b and h=xm+1−x m , m=1,2,…,N. The MRLW equation (1) is considered with the boundary conditions
and the initial condition
where f(x) is a prescribed function. Physical boundary conditions require U and U x →0 that U→0 for x→±∞. The cubic B-splines ϕ m (x), m=−1(1)N+1 are defined at the knots x m by [17].
The set of functions {ϕ−1,ϕ0,…ϕ1} forms a basis for functions defined over the interval a≤x≤b. So, the numerical solution U N (x,t) to the exact solution U N (x,t) is given by:
where δ j are the time dependent quantities to be determined from the boundary and weighted residual conditions. Each cubic B-spline covers four elements so that each element [x m ,xm+1] is covered by four splines. Applying a local coordinate system for the typical finite element [x m ,xm+1] defined by:
so the cubic B-spline shape functions over the element [0,1] can be defined as:
All splines apart from ϕm−1(x),ϕ m (x),ϕm+1(x) and ϕm+2(x) are zero over the element [x m ,xm+1]. Over the typical element [x m ,xm+1], the numerical solution U N (x,t) is given by:
where δm−1,δ m ,δm+1,δm+2 act as element parameters and B-splines ϕm−1, ϕ m , ϕm+1, ϕm+2 as element shape functions. Using trial function (5) and cubic splines (4), the nodal values of U,U′ and U′′ at the knot x m are given in terms of the element parameters δ m by:
where the symbols ′ and ′′ denote first and second differentiation with respect to x, respectively. The splines ϕ m (x) and their two principle derivatives vanish outside the interval [xm−2,xm+2]. The weight function Ψ m is taken a quadratic B-spline. Quadratic B-spline Ψ m at the knots x m is defined over the interval [a,b] by:
Using the local coordinate transformation for the finite element [x m ,xm+1] by h η=x−x m ,0≤η≤1 quadratic B-spline Ψ m can be defined as:
Applying the Petrov-Galerkin approach to Equation 1, we obtain the weak form of Equation 1:
For a single element [x m ,xm+1], using transformation (6) into Equation 12 we obtain:
Integrating Equation 13 by parts and using Equation 1 lead to:
where and . Taking the weight function Ψ i with quadratic B-spline shape functions given by Equation 11 and substituting approximation (8) into integral Equation 14, we obtain the element contributions in the form:
which can be written in matrix form as follows:
where δe=(δm−1,δ m ,δm+1,δm+2)T are the element parameters, and the dot denotes differentiation with respect to t. The element matrices Ae,Be,Ce, and De are rectangular 3×4 given by the following integrals:
where i takes only the values 1,2,3, and the j takes only the values m−1, m, m+1, m+2 for the typical element [x m ,xm+1]. A lumped value for λ is found from as:
Assembling all contributions from all elements leads to the following matrix equation:
where δ=(δ−1,δ0,…,δ N ,δN+1)T are the global element parameters. The matrices A, B, and λ D are rectangular, and row m of each has the following form:
where
Substituting the Crank-Nicholson approach and the forward finite difference in Equation 17, we obtain the following matrix system:
where Δ t is the time step. Applying the boundary conditions (3) to the system (18), we make the matrix equation square. The resulting system can be efficiently solved with a variant of the Thomas algorithm. Two or three inner iterations are applied to at each time in order to improve the accuracy.
To evaluate the vector parameters δn, the initial vector δ0 must be determined from the initial and boundary conditions. So the approximation (8) can be rewritten for the initial condition:
where the parameters will be determined. Using relations at the knots:
together with the derivative condition, the initial vector δ0 can be determined from the following matrix equation:
which can be solved using a variant of the Thomas algorithm.
Stability analysis
A typical member of the matrix system (18) can be written in terms of the nodal parameters as:
where
The stability analysis is based on the Fourier method in which the growth factor of the error in a typical mode of amplitude ξn,
where k is the mode number and h is the element size, is determined from a linearization of the numerical scheme. To apply the stability analysis, the MRLW equation can be linearized by assuming that the quantity U in the non-linear term U2U x is locally constant. Substituting the Fourier mode (20) into (19) gives the growth factor g of the form:
where
Taking the modulus of Equation 21, we have |g|=1. Therefore, the scheme is unconditionally stable.
Numerical examples and results
In this section, numerical solutions of the MRLW equation are obtained for four standard problems: the motion of single solitary wave, interaction of two and three solitary waves, and development of the Maxwellian initial condition into solitary waves. L2 and L ∞ error norms are used to show how good the numerical results in comparison with the exact results defined by:
and the L ∞ error norm
For the MRLW equation, we evaluate the following invariants to validate the conservation properties: [31]
which correspond to conversation of mass, momentum, and energy, respectively.
The motion of single solitary wave
Firstly, we consider Equation 1 with the boundary conditions U→0 as x→±∞ and the initial condition:
An analytical solution of this problem is:
which represents the motion of a single solitary wave with amplitude, where , x0, and c are arbitrary constants. For this problem, the analytical values of the invariants can be found as [31]:
We have taken the parameters c=1, μ=1, h=0.2, x0=40, and k=0.025 over the interval [0,100] to make a comparison with those of earlier studies [30–32, 37]. For these parameters, the solitary wave has amplitude 1.0. The simulations are done up to time t=10 to find the error norms L2 and L ∞ and the numerical invariants I1,I2, and I3 at various times. The obtained results are reported in Table 1. As seen in Table 1, the error norms L2 and L ∞ are found to be small enough, and the computed values of invariants are in good agreement with their analytical values I1=4.4428829, I2=3.2998316, I3=1.4142135. Amplitude is 1.000000 at t=0 which is located at x=40, while it is 0.999284 at t=10 which is located at x=60.0. The absolute difference in amplitudes at times t=0 and t=20 is 7.16×10−4, so that there is a little change between amplitudes. The percentage of the relative error of the conserved quantities I1, I2 and I3 are calculated with respect to the conserved quantities at t=0. Percentage of relative changes of I1, I2, and I3 are found to be 6×10−3, 14×10−3, and 33×10−3, respectively. So, the invariants remain almost constant during the computer run. Table 2 displays a comparison of the values of the invariants and error norms obtained by the present method with those obtained by other methods[30–32, 37]. It is clearly seen from Table 2 that the error norms obtained by the present method are smaller than the other methods [30–32, 37]. Figure 1 illustrates the motion of solitary wave with c=1, h=0.2, and k=0.025 at different time levels.
Interaction of two solitary waves
As a second problem, we consider the interaction of two separated solitary waves having different amplitudes and traveling in the same direction. For this problem, the initial condition is given by:
where , , j=1,2,c j and x j are arbitrary constants. For the computational work, parameters μ=1,c1=0.03, c2=0.01, x1=18, x2=58 are used over the range [−40,180] to coincide with those used by [38]. The experiment is run from t=0 to t=2, and values of the invariant quantities I1,I2 and I3 are listed in Table 3. Table 3 shows a comparison of the values of the invariants obtained by the present method with those obtained in [38]. It is seen that the numerical values of the invariants remain almost constant during the computer run. Figure 2 shows the development of the interaction of two solitary waves. At t=0, the amplitude of larger waves is 0.1769525 at the point x=58.1 whereas the amplitude of the smaller one is 0.1003772 at the point x=97.9. However, at t=2, the amplitude of larger waves is 0.1768495 at the point x=60.1 whereas the amplitude of the smaller one is 0.1003873 at the point x=99.9. It is found that the absolute difference in amplitude is 1.01×10−5 for the smaller wave and 1.03×10−4 for the larger wave for this algorithm.
Interaction of three solitary waves
In this section, we study the behavior of the interaction of three solitary waves having different amplitudes and traveling in the same direction. So, we consider Equation 1 with the initial condition given by the linear sum of three well-separated solitary waves of different amplitudes:
where , , j=1,2,3,c j and x j are arbitrary constants. For the computational work, we have chosen the parameters μ=1, c1=0.03, c2=0.02, c3=0.01, x1=8, x2=48, x3=88 over the interval [−40,180]. Simulations are done up to time t=1. Table 4 displays a comparison of the values of the invariants obtained by the present method with those obtained in Ref. [38]. It is seen from the table that the obtained values of the invariants remain almost during the computer run. The absolute differences between the values of the conservative constants obtained by the present method at times t=0 and t=1 are Δ I 1 =4.8×10−2, Δ I 2 =9.5×10−3,Δ I 3 =4.1×10−2. Figure 3 shows the interaction of these solitary waves at different times.
The Maxwellian initial condition
Finally, the development of the Maxwellian initial condition
into a train of solitary waves is studied. It is known that with the Maxwellian condition (28), the behavior of the solution depends on the values of μ. So, we study each of the following cases: μ=0.015, and μ=0.004. The obtained numerical values of the invariants are listed in Table 5. The absolute differences between the values of the invariants obtained for the μ=0.015 are Δ I 1 =4×10−5, Δ I 2 =1.1×10−4,Δ I 3 =2.74×10−4 whereas they are Δ I 1 =7×10−5,Δ I 2 =4.11×10−3,Δ I 3 =1.28×10−2 and for μ=0.004; Δ I 1 =1×10−5, Δ I 2 =1.4×10−4,Δ I 3 =4.62×10−4 whereas they are Δ I 1 =1×10−5, Δ I 2 =1.9×10−4, Δ I 3 =3.906×10−3in [38]. Figure 4 illustrates the development of the Maxwellian initial condition into solitary waves for μ=0.015 and μ=0.004 at time t=0.05. As seen from the figure that for μ=0.015 and μ=0.004 only a single soliton is generated.
Conclusion
In this paper, a numerical method based on a Petrov-Galerkin method using quadratic weight functions and cubic B-spline finite elements has been presented to find numerical solutions of MRLW equation. We tested our scheme through single solitary wave in which the analytic solution is known and extended it to study the interaction of two and three solitary waves and the Maxwellian initial condition where the analytic solutions are unknown during the interaction. The performance and accuracy of the method were shown by calculating the error norms L2 and L ∞ . The obtained results show that a Petrov-Galerkin method involving quadratic weight functions and cubic B-spline finite elements can be used to produce reasonably accurate numerical solutions of the MRLW equation. This is a reliable method for getting the numerical solutions of the physically important non-linear problems.
References
Peregrine DH: Calculations of the development of an undular bore. J. Fluid Mech 1966, 25: 321–330. 10.1017/S0022112066001678
Benjamin TB, Bona JL, Mahoney JL: Model equations for long waves in nonlinear dispersive media. Phil. Trans. Roy. Soc. Lond. A 1972, 272: 47–78. 10.1098/rsta.1972.0032
Eilbeck JC, McGuire GR: Numerical study of the regularized long wave equation, II: interaction of solitary wave. J. Comput. Phys 1977, 23: 63–73. 10.1016/0021-9991(77)90088-2
Jain PC, Shankar R, Singh TV: Numerical solution of regularized long wave equation. Commun. Numer. Meth. Eng 1993, 9: 579–586. 10.1002/cnm.1640090705
Bhardwaj D, Shankar R: A computational method for regularized long wave equation. Comput. Math. Appl 2000, 40: 1397–1404.
Chang Q, Wang G, Guo B: Conservative scheme for a model of nonlinear dispersive waves and its solitary waves induced by boundary motion. J. Comput. Phys 1995, 93: 360–375.
Gardner LRT, Gardner GA: Solitary waves of the regularized long wave equation. J. Comput. Phys 1990, 91: 441–459. 10.1016/0021-9991(90)90047-5
Gardner LRT, Gardner GA, Dogan A: A least-squares finite element scheme for the RLW equation. Commun. Numer. Meth. Eng 1996, 12: 795–804. 10.1002/(SICI)1099-0887(199611)12:11<795::AID-CNM22>3.0.CO;2-O
Gardner LRT, Gardner GA, Dag I: A B-spline finite element method for the regularized long wave equation. Commun. Numer. Meth. Eng 1995, 11: 59–68. 10.1002/cnm.1640110109
Alexander ME, Morris JL: Galerkin method applied to some model equations for nonlinear dispersive waves. J. Comput. Phys 1979, 30: 428–451. 10.1016/0021-9991(79)90124-4
Sanz Serna JM, Christie I: Petrov Galerkin methods for nonlinear dispersive wave. J. Comput. Phys 1981, 39: 94–102. 10.1016/0021-9991(81)90138-8
Dogan A: Numerical solution of RLW equation using linear finite elements within Galerkin’s method. Appl. Math. Model 2002, 26: 771–783. 10.1016/S0307-904X(01)00084-1
Esen A, Kutluay S: Application of lumped Galerkin method to the regularized long wave equation. Appl. Math. Comput 2005, 174: 883–845.
Soliman AA, Raslan KR: Collocation method using quadratic B-spline for the RLW equation. Int. J. Comput. Math 2001, 78: 399–412. 10.1080/00207160108805119
Soliman AA, Hussien MH: Collocation solution for RLW equation with septic spline. Appl. Math. Comput 2005, 161: 623–636. 10.1016/j.amc.2003.12.053
Raslan KR: A computational method for the regularized long wave (RLW) equation. Appl. Math. Comput 2005, 167: 1101–1118. 10.1016/j.amc.2004.06.130
Saka B, Dag I, Dogan A: Galerkin method for the numerical solution of the RLW equation using quadratic B-splines. Int. J. Comput. Math 2004,81(6):727–739. 10.1080/00207160310001650043
Dag I, Saka B, Irk D: Application of cubic B-splines for numerical solution of the RLW equation. Appl. Math. Comput 2004, 159: 373–389. 10.1016/j.amc.2003.10.020
Dag I, Ozer MN: Approximation of RLW equation by least-square cubic B-spline finite element method. Appl. Math. Model 2001, 25: 221–231. 10.1016/S0307-904X(00)00030-5
Zaki SI: Solitary waves of the splitted RLW equation. Comput. Phys. Commun 2001, 138: 80–91. 10.1016/S0010-4655(01)00200-4
Gou BY, Cao WM: The Fourier pseudo-spectral method with a restrain operator for the RLW equation. J. Comput. Phys 1988, 74: 110–126. 10.1016/0021-9991(88)90072-1
Battal GaziKarakoc S: Numerical solutions of the modified equal width wave equation with finite elements method. Malatya: PhD Thesis, Inonu University; 2011.
Battal Gazi Karakoc S, Geyikli T: Numerical solution of the modified equal width wave equation. Int. J Differential Equations 2012(2012): 10.155/2012/587208
Geyikli T, Battal Gazi Karakoc S: Septic B-spline collocation method for the numerical solution of the modified equal width wave equation. Appl. Math 2011,6(2):739–749.
Geyikli T, Battal Gazi Karakoc S: Petrov-galerkin method with cubic B-splines for solving the MEW equation. Bull. Belg. Math. Soc 2012, 19: 225–227.
Gardner LRT, Gardner GA, Geyikli T: The boundary forced MKdV equation. J. comput. Phys 1994, 11: 5–12.
Ramos JI: Solitary wave interactions of the GRLW equation. Chaos, Solitons Fractals 2007, 33: 479–491. 10.1016/j.chaos.2006.01.016
Zhang L: A finite difference scheme for generalized long wave equation. Appl. Math. Comput 2005,168(2):962–972. 10.1016/j.amc.2004.09.027
Kaya D, El-Sayed SM: An application of the decomposition method for the generalized KdV and RLW equations. Chaos, Solitons Fractals 2003, 17: 869–877. 10.1016/S0960-0779(02)00569-6
Roshan T: A Petrov-Galerkin method for solving the generalized regularized long wave (GRLW) equation. Comput. Math. Appl 2012, 63: 943–956.
Gardner LRT, Gardner GA, Ayoup FA, Amein NK: Simulations of solitary waves of the MRLW equation by B-spline finite element. Arab. J. Sci. Eng 1997, 22: 183–193.
Khalifa AK, Raslan KR, Alzubaidi HM: A collocation method with cubic B- splines for solving the MRLW equation. J. Comput. Appl. Math 2008, 212: 406–418. 10.1016/j.cam.2006.12.029
Khalifa AK, Raslan KR, Alzubaidi HM: A finite difference scheme for the MRLW and solitary wave interactions. Appl. Math. Comput 2007, 189: 346–354. 10.1016/j.amc.2006.11.104
Raslan KR: Numerical study of the modified regularized long wave equation. Chaos, Solitons Fractals 2009, 42: 1845–1853. 10.1016/j.chaos.2009.03.098
Raslan KR, Hassan SM: Solitary waves for the MRLW equation. Appl. Math. Lett 2009, 22: 984–989. 10.1016/j.aml.2009.01.020
Haq F, Islam S, Tirmizi IA: A numerical technique for solution of the MRLW equation using quartic B-splines. Appl. Math. Model 2fig1, 34: 4151–4160.
Ali A: Mesh free collocation method for numerical solution of initial-boundary value problems using radial basis functions. Ph.D. Thesis, Ghulam Ishaq Khan Institute of Engineering Sciences and Technology 2009.
Khalifa AK, Raslan KR, Alzubaidi HM: Numerical study using ADM for the modified regularized long wave equation. Appl. Math. Model 2008, 32: 2962–2972. 10.1016/j.apm.2007.10.014
Acknowledgements
The authors would like to thank the reviewers for their careful reading and for making some useful comments which improved the presentation of the paper.
Author information
Authors and Affiliations
Corresponding author
Additional information
Competing interests
The authors declare that they have no competing interests.
Authors’ contributions
Both authors have almost equal contributions to the article. Particularly, SBGK participated in the application of the method and in coding and running the necessary programs. TG participated in the design of the basic outline of the article and equations. Both authors read, checked, and approved the final manuscript.
Authors’ original submitted files for images
Below are the links to the authors’ original submitted files for images.
Rights and permissions
Open Access This article is distributed under the terms of the Creative Commons Attribution 2.0 International License ( https://creativecommons.org/licenses/by/2.0 ), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
About this article
Cite this article
Gazi Karakoc, S.B., Geyikli, T. Petrov-Galerkin finite element method for solving the MRLW equation. Math Sci 7, 25 (2013). https://doi.org/10.1186/2251-7456-7-25
Received:
Accepted:
Published:
DOI: https://doi.org/10.1186/2251-7456-7-25