Next Article in Journal
Application of Multi-Objective Evolutionary Algorithms for Planning Healthy and Balanced School Lunches
Next Article in Special Issue
Generalization of Quantum Ostrowski-Type Integral Inequalities
Previous Article in Journal
Wiener Complexity versus the Eccentric Complexity
Previous Article in Special Issue
Nonlinear Observability Algorithms with Known and Unknown Inputs: Analysis and Implementation
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

On the Numerical Simulation of HPDEs Using θ-Weighted Scheme and the Galerkin Method

by
Haifa Bin Jebreen
*,† and
Fairouz Tchier
Department of Mathematics, College of Science, King Saud University, Riyadh 11 551, Saudi Arabia
*
Author to whom correspondence should be addressed.
These authors contributed equally to this work.
Mathematics 2021, 9(1), 78; https://doi.org/10.3390/math9010078
Submission received: 23 November 2020 / Revised: 15 December 2020 / Accepted: 28 December 2020 / Published: 31 December 2020
(This article belongs to the Special Issue Recent Advances in Differential Equations and Applications)

Abstract

:
Herein, an efficient algorithm is proposed to solve a one-dimensional hyperbolic partial differential equation. To reach an approximate solution, we employ the θ -weighted scheme to discretize the time interval into a finite number of time steps. In each step, we have a linear ordinary differential equation. Applying the Galerkin method based on interpolating scaling functions, we can solve this ODE. Therefore, in each time step, the solution can be found as a continuous function. Stability, consistency, and convergence of the proposed method are investigated. Several numerical examples are devoted to show the accuracy and efficiency of the method and guarantee the validity of the stability, consistency, and convergence analysis.

1. Introduction

Partial differential equations (PDEs) are ubiquitous in mathematically scientific fields and play an important role in engineering and physics. They arise from many purely mathematical considerations, such as the calculus of variations and differential geometry. One of the momentous subclasses of PDEs is the hyperbolic partial differential equations (HPDEs). HPDEs are used to model many phenomena such as biology, industry, atomic physics, and aerospace [1,2,3]. Telegraph and wave equations are the most famous types of HPDEs that are enforceable in various fields such as random walk theory, wave propagation, and signal analysis [2,4].
In this study, we construct and analyze a numerical algorithm based on the θ -weighted method, and the Galerkin method to solve the HPDEs
w t ( x , t ) + a 1 w x ( x , t ) + a 2 w ( x , t ) = f ( x , t ) , x [ 0 , 1 ] , t [ 0 , T ] ,
with boundary condition
w ( 0 , t ) = g ( t ) , t [ 0 , T ] ,
and initial condition
w ( x , 0 ) = h ( t ) , x [ 0 , 1 ] .
Furthermore, we assume that f, g, and h are the known functions, and also a 1 and a 2 are real constants.
In this paper, we attempt to apply an efficient scheme that has not been used before to solve such problems. The method includes three steps. In the first step, we use the θ -weighted method to break the time interval into a finite number of time steps. At each time step, we obtain a linear ordinary differential equation. In the second step, the obtained ODE is solved using the Galerkin method. To do this, interpolating scaling functions are used. In comparison to the scaling function arising from multiresolution analysis (MRA), interpolation scaling functions (ISFs) have some properties that make them attractive. These characteristics include the flexible zero moments, a compact support, orthonormality, and having a closed-form. The most important property of these bases is the interpolation. This property is useful to avoid integrals to find coefficients in expansions. At the last step, the linear algebraic system obtained from the second one must be solved using an appropriate technique. Stability, consistency, and convergence analysis are investigated, and numerical tests guarantee their validity.
Numerous studies proposed a variety of numerical and analytical solutions to HPDEs. Doha et al. [5] proposed a numerical method based on the collocation method for solving a system consisting of such equations. In [6], the spectral-Galerkin method is proposed to solve this equation. Singh et al. [7] solved one-dimensional HPDEs with the initial and boundary conditions (2) and (3), using an algorithm based on Chebyshev and Legendre multiwavelets. Dehghan et al. [8] introduced a numerical scheme based on the cubic B-spline scaling functions to solve (1) with nonlocal conservation conditions. Bin Jebreen et al. [4] proposed an efficient method based on the wavelet Galerkin method to solve the Telegraph equation, and the collocation method based on interpolating scaling functions is also used for solving this equation in [3]. For study, we refer the readers to [9,10].
The outline of the paper is as follows. Section 2 is devoted to the brief introduction to the interpolating scaling function. Mixed θ -weighted scheme and Galerkin method based on interpolating scaling functions are used to solve the desired equation and the stability, consistency, and convergence analysis are also investigated in Section 3. Section 4 is devoted to some numerical examples to show the ability and accuracy of the proposed method.

2. Interpolating Scaling Functions

To derive a set of bases that covers the multiresolution analysis conditions, Alpert et al. [11] introduced a set of functions to generate the nested spaces { V J r } J = 0 L 2 ( [ 0 , 1 ] ) using piecewise polynomial bases of degree less than r 0 (the multiplicity parameter). Let J Z + { 0 } be given. Putting B J : = { 0 , , 2 J 1 } , and R : = { 0 , 1 , , r 1 } , there is a sequence of nested subspaces that are spanned by
V J r : = S p a n { ϕ J , b k : = ϕ k ( 2 J x k ) , b B J , k R } L 2 ( [ 0 , 1 ] ) , r 0 , J Z + { 0 } ,
by means of the Interpolating scaling functions { ϕ k } k R , introduced by Alpert using the Legendre polynomials. Assume that P r is the Legendre polynomial of order r and { τ k } k R are the roots of P r . Let { ω k } k R be the Gauss–Legendre quadrature weights [3,11]. We determine ISFs as follows:
ϕ k ( x ) = 2 ω k L k ( 2 x 1 ) , x [ 0 , 1 ] , 0 , o . w ,
where { L k ( x ) } k R are the Lagrange polynomials
L k ( x ) = i = 0 , i k r 1 x τ i τ k τ i .
These bases fulfill the orthonormality relation ϕ J , b k , ϕ J , b k = δ b , b δ k , k where . , . denotes the L 2 -inner product on Ω : = [ 0 , 1 ] .
Assume that b B I J , b is a uniform finite discretization of Ω . Here, the subintervals I J , b : = [ x b , x b + 1 ] are specified by points x b : = b / ( 2 J ) . To project a function into V J r , we introduce the orthogonal projection P J r that maps L 2 ( Ω ) onto the subspace V J r . Utilizing this projection, every function p L 2 ( Ω ) can be represented in the form
p P J r ( p ) = b B J k R p J , b k ϕ J , b k .
Due to the orthonormality of the bases, it is easy to prove that the coefficients p J , b k can be obtained by p , ϕ J , b k = I J , b p ( x ) ϕ J , b k ( x ) d x . To avoid integration, we apply the interpolation property of ISFs [11,12], via
p J , b k 2 J / 2 ω k 2 p 2 J ( τ k + 1 2 + b ) , b B J , k R .
Given r-times continuously differentiable function p C r ( Ω ) , the projection P J r ( p ) is bounded by means of L 2 -inner product as
P J r ( p ) p 2 J r 2 4 r r ! sup x [ 0 , 1 ] | p ( r ) ( x ) | .
According to this relation, the projection P J r is convergent when J or r increases. To study more details, we refer the readers to [13]. Consequently, this projection is convergent with the rate of O ( 2 J r ) .
We determine the vector function Φ J r : = [ Φ r , J , 0 , , Φ r , J , 2 J 1 ] T with Φ r , J , b : = [ ϕ J , b 0 , , ϕ J , b r 1 ] includes the scaling functions and called multi-scaling functions. The approximation (4) can be rewritten using the vector P whose entries are P b r + k + 1 : = p J , b k as follows:
P J r ( p ) = P T Φ J r ,
where P is a vector of dimensional N : = r 2 J .
To approximate a higher-dimensional function, the building blocks of the bases can be utilized. In this regard, one can consider the subspace V J r , 2 : = V J r × V J r L 2 ( Ω × Ω ) that is spanned by
{ ϕ J , b k ϕ J , b k : b , b B J , k , k R } .
In order to derive an approximation of two-dimensional function p L 2 ( Ω × Ω ) , we apply the projection operator P J r , viz.
p ( x , t ) P J r ( p ) ( x , t ) = Φ J r T ( x ) P Φ J r ( t ) ,
where components of the square matrix P of order N are obtained by
P r b + ( k + 1 ) , r b + ( k + 1 ) 2 J ω k 2 ω k 2 p 2 J ( τ ^ k + b ) , 2 J ( τ ^ k + b ) ,
and τ ^ k = ( τ k + 1 ) / 2 . If C ( 2 r ) ( Ω × Ω ) p : Ω × Ω R , we can show that the error can be bounded as follows:
P J r p p M max 2 1 r J 4 r r ! 2 + 2 1 J r 4 r r ! ,
where M max is a constant [12] as follows:
M max = max sup ξ [ 0 , 1 ) | r x r p ( ξ , t ) | , sup η [ 0 , 1 ) | r t r p ( x , η ) | , sup ξ , η [ 0 , 1 ) | 2 r x r t r p ( ξ , η ) | .

3. Numerical Method of Solution

The main idea behind the proposed method is based on the θ -weighted scheme and Galerkin methods. In the first step, the θ -weighted method is used to discretize the time interval into a finite number of time steps. The linear system of ordinary differential equations obtained after the first step can be reduced to a system of algebraic equations by using the Galerkin method in the second one. Thus, one can find the approximate solution of the desired equation at the time step points t n : = n δ t , n = 0 , , M ( t n [ 0 , T ] and T = M δ t ).
To discretize the time variable, we use the θ -weighted scheme as follows:
w n + 1 w n δ t + θ a 1 w x n + 1 + a 2 w n + 1 + ( 1 θ ) a 1 w x n + a 2 w n = f ( x , t n ) + R ,
where for simplicity w ( x , t n ) is assumed to be w n , for t n = t n 1 + δ t (or equivalently t n = n δ t ), and also R C δ t for a positive constant C and θ [ 0 , 1 ] is a constant. Note that, by selecting the different values for θ , one can find various methods, such as implicit method ( θ = 1 ), explicit method ( θ = 0 ), and the Crank–Nicolson method ( θ = 1 / 2 ).
Since the remainder term R is a small quantity, one can neglect it and, after simplification, we obtain
w n + 1 + θ δ t a 1 w x n + 1 + a 2 w n + 1 = w n ( 1 θ ) δ t a 1 w x n + a 2 w n + δ t f ( x , t n ) , n = 0 , , M .
Next, this system of ordinary differential equations would be discretized by the Galerkin method based on ISFs. To this end, one can approximate the solution w n of (12) using the projection operator P J r , via
w n ( x ) P J r ( w n ) ( x ) = W n T Φ J r ( x ) , n = 0 , , M ,
where W n , for n = 1 , , M is a vector of dimension N which must be found. The same approximation could be imagined to w x n , as
w x n ( x ) P J r ( w x n ) ( x ) = W n T D ϕ Φ J r ( x ) , n = 0 , , M ,
where D ϕ is the operational matrix for derivative introduced in [14,15,16].
Replacing (13) and (14) in (12) yields
W n + 1 T + θ δ t a 1 W n + 1 T D ϕ + a 2 W n + 1 T Φ J r ( x ) = W n T ( 1 θ ) δ t a 1 W n T D ϕ + a 2 W n T + δ t F n T Φ J r ( x ) ,
where F n is a N × 1 vector that is obtained by projecting the function f n into V J r , viz.
f n P J r ( f n ) ( x ) = F n T Φ J r ( x ) , n = 0 , , M .
Let
A T : = ( 1 + a 2 θ δ t ) I + a 1 θ δ t D ϕ , b T : = W n T ( 1 a 2 ( 1 θ ) δ t ) I a 1 ( 1 θ ) δ t D ϕ + δ t F n T , n = 0 , , M ,
where I is the identity matrix of dimension N. Multi-scaling function Φ J r ( x ) are orthonormal bases for V J r . Thus, they are linearly independent, and then we have the following linear system:
A W n + 1 = b .
To apply the boundary condition (2), it can also be projected into V J r , via
w n + 1 ( 0 ) W n + 1 T Φ J r ( 0 ) = g ( t n + 1 ) .
Substituting the first row of A and the first element of b by Φ J r ( 0 ) T and g ( t n + 1 ) , respectively, we obtain the modified system
A ˜ W n + 1 = b ˜ .
Now, note that, to start the steps, the initial condition should be utilized via
w ( x , 0 ) W 0 T Φ J r ( x ) = H T Φ J r ( x ) ,
and then W 0 = H where H is a vector of dimension N. Utilizing W 0 = H , Equation (19) gives a system of equations at every time step t n , n = 0 , , M . Thus, one can obtain the approximate solution w ( x , t n ) by means of a linear expansion of interpolating scaling function (13).

3.1. Stability

To analyze the stability of the time discretization by θ -weighted scheme, assume that w ^ n + 1 is the approximate solution of (17). We set e n + 1 : = w n + 1 w ^ n + 1 as the error that arises from the proposed Galerkin method. Consequently, the roundoff error satisfies
( 1 + a 2 θ δ t ) e n + 1 + a 1 θ δ t e x n + 1 = ( 1 a 2 ( 1 θ ) δ t ) e n a 1 ( 1 θ ) δ t e x n .
Projecting the error e n using P J r into V J r , one can write
e n P J r ( e n ) = E n T Φ J r .
Inserting (22) into (21) and applying the operational matrix of derivative for ISFs, we get
Φ J r T A E n + 1 = Φ J r T B E n ,
where B T : = ( 1 a 2 ( 1 θ ) δ t ) I a 1 ( 1 θ ) δ t D ϕ . Provided the matrix A is inverted, it can be shown that
E n + 1 = A 1 B E n .
Taking the norm of both sides of (24), and using the matrix norm property, we obtain the following inequality:
E n + 1 A 1 B E n , n = 0 , , M .
This gives rise to a sufficient and necessary condition for the stability of the method so that, in order to have a stable method, the spectral radius of the matrix A 1 B must be less than one ( ρ < 1 , where ρ is a spectral radius of A 1 B ).

3.2. Convergence Analysis

Assume that e n + 1 : = w n + 1 w ^ n + 1 . Subtracting (12) from (15) and using the notations in the previous section, one can write after some simplification
E n + 1 A 1 B E n + A 1 f n f ^ n ,
where f n : = f ( x , t n ) and f ^ n : = P J r ( f n ) . Due to invertibility of matrix D ϕ [11], it is obvious that C 1 : = A 1 and C 2 : = B are finite. Therefore, we have
E n + 1 C 1 C 2 E n + f n f ^ n .
It follows from (6) that E n and f n f ^ n are bounded
e n + 1 C 1 2 1 J r 4 r r ! ( C 2 sup x [ 0 , 1 ] | w n ( r ) ( x ) | + sup x [ 0 , 1 ] | f n ( r ) ( x ) | ) .
Note that θ plays an important role in the structure of A 1 and B. Thus, the value of the variables C 1 and C 2 will change when the value of θ changes. These variables play a direct role in the error presented in (27).
We know that a method is consistent if, by reducing the mesh (by increase the refinement level J) and time step size ( δ t ), the truncation error terms could be made to approach zero. Consequently, the inequality (27) confirms that the method is consistent at every time step when the refinement level J or multiplicity r increases.
If the condition for stability holds ( ρ ( A 1 B ) < 1 ) and if, for the Galerkin method, used for solving the ordinary differential equation at each time, the overall error approaches zero as J (indeed, the method is consistent), we usually find that the solution converges to the exact solution. This derives from the Lax Equivalence Theorem [17].

4. Numerical Results

To illustrate the validity of stability, consistency, and convergence analysis, some numerical tests have been considered in this section.
Example 1.
Let us dedicate the first example to the case that the desired Equation (1) is of form
w t ( x , t ) + w x ( x , t ) + w ( x , t ) = 2 sin ( x + t ) + cos ( x + t ) ,
with boundary and initial conditions
w ( x , 0 ) = cos ( x ) , x [ 0 , 1 ] , w ( 0 , t ) = cos ( t ) , t [ 0 , T ] .
One can find the exact solution that is reported in [6]
w ( x , t ) = cos ( x + t ) .
Table 1 describes the comparison of L 2 -error via explicit, implicit and Crank–Nicolson methods with time step size δ t = 0.1 / 2 m 1 , m = 1 , , 10 . It is quite obvious that the error tends to zero with increasing m. Table 2 consists of L 2 norm of Example 1 at different values of time. The L 2 -error graph of the explicit, implicit, and Crank–Nicolson methods taking different values for J when r = 3 are shown in Figure 1. Figure 2 illustrates the approximate solution and absolute error taking r = 5 and J = 2 at time t = 1 . Table 3 displays absolute values of the error at the selected points by using the presented method taking r = 4 , J = 1 , θ = 1 / 2 and δ t = 0.1 / 2 9 . The results have been compared with the Legendre wavelets and Chebyshev wavelet collocation method [7], and also Bernoulli matrix approach [18]. To confirm the stability condition that we obtained in Section 3.1, Figure 3 and Figure 4 and Table 4 are considered. One can observe that when the spectral radius of matrix A 1 B is less than 1, the proposed method is stable. In view of Figure 3 and Figure 4, the explicit method at m = 10 becomes stable while the Crank–Nicolson method is stable from m = 1 . We have the same result for the implicit method ( θ = 1 ) .
Example 2.
As the second example, let us consider the HPDEs (1) so that a 1 = 1 , a 2 = 1 and
f ( x , t ) = ( x t ) 2 ,
with boundary and initial conditions given by
w ( x , 0 ) = x 2 , x [ 0 , 1 ] , w ( 0 , t ) = t 2 , t [ 0 , T ] .
For this example, we have the exact solution [7]
w ( x , t ) = ( x t ) 2 .
Table 5 shows the comparison of L 2 -error via explicit, implicit and Crank–Nicolson methods with time step size δ t = 0.1 / 2 m 1 , m = 1 , , 10 , r = 5 and J = 2 . Table 6 consists of L 2 norm of Example 2 at different values of time. Figure 5 illustrates the approximate solution and absolute error taking r = 5 and J = 2 at time t = 1 . Figure 6 shows the L 2 -error using explicit method and implicit method taking r = 3 and J = 2 at time δ t = 0.1 / 2 m 1 , m = 1 , , 10 . Figure 7, Figure 8 and Figure 9 confirm our investigation about stability. According to stability investigation, if the spectral radius of matrix A 1 B is not less than 1, then the time discretization leads to divergence when t increases. To reduce this effect, we must increase the time steps. In Table 7 the results have been compared with the Legendre wavelets and Chebyshev wavelet collocation method [7]. It shows that the proposed method offers better accuracy using the same multiplicity parameter r and refinement level J. In Figure 10, we show the effect of refinement level J and time step size δ t on absolute error. In addition, this figure confirms our investigation about consistency.

5. Conclusions

This work is devoted to solving the one-dimensional partial differential equation with boundary and initial conditions. To this end, the desired equation reduces to an ordinary differential equation using the θ -weighted method. This ODE is solved by employing the Galerkin method based on the interpolating scaling functions. The stability, consistency, and convergency of the method are investigated. The numerical examples are reported to illustrate the accuracy and efficiency of the method. The results show that three parameters are important here: the θ parameter that changes the θ -weighted method, the δ t parameter that controls the time steps, and the refinement level J. The results show that, using the proposed method, better results are obtained compared to similar methods. Among the methods utilized in this paper, the implicit and Crank–Nicolson methods are stable methods that need fewer steps than the explicit method to achieve proper accuracy.

Author Contributions

Conceptualization, H.B.J.; methodology, software, H.B.J. and F.T.; validation, formal analysis, H.B.J. and F.T.; writing—original draft preparation, investigation, funding acquisition, H.B.J. and F.T.; writing—review and editing, H.B.J. and F.T. Both authors have read and agreed to the published version of the manuscript.

Funding

The authors extend their appreciation to the Deanship of Scientific Research at King Saud University for funding this work through research group No. RG-1441-326.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Acknowledgments

We thank the reviewer for his/her thorough review and highly appreciate the comments and suggestions, which significantly contributed to improving the quality of the publication.

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

The following abbreviations are used in this manuscript:
HPDEHyperbolic partial differential equations
ISFsInterpolating scaling functions
PDEsPartial differential equations
ODEOrdinary differential equation

References

  1. Dehghan, M. A computational study of the one-dimensional parabolic equation subject to nonclassical boundary specifications. Numer. Methods Partial Differ. Equ. 2006, 22, 220–257. [Google Scholar] [CrossRef]
  2. Dehghan, M.; Shokri, A. A numerical method for solving the hyperbolic telegraph equation. Numer. Methods Partial Differ. Equ. 2008, 24, 1080–1093. [Google Scholar] [CrossRef]
  3. Lakestani, M.; Saray, B.N. Numerical solution of telegraph equation using interpolating scaling functions. Comput. Math. Appl. 2010, 60, 1964–1972. [Google Scholar] [CrossRef] [Green Version]
  4. Jebreen, H.B.; Cano, Y.C.; Dassios, I. An efficient algorithm based on the multi-wavelet Galerkin method for telegraph equation. AIMS Math. 2021, 6, 1296–1308. [Google Scholar] [CrossRef]
  5. Doha, E.H.; Bhrawy, A.H.; Hafez, R.M.; Abdelkawy, M.A. A Chebyshev–Gauss-Radau scheme for nonlinear hyperbolic system of first order. Appl. Math. Inf. Sci. 2014, 8, 535–544. [Google Scholar] [CrossRef] [Green Version]
  6. Doha, E.H.; Hafez, R.M.; Youssri, Y.H. Shifted Jacobi spectral-Galerkin method for solving hyperbolic partial differential equations. Comput. Math. Appl. 2019, 78, 889–904. [Google Scholar] [CrossRef]
  7. Singh, S.; Patel, V.K.; Singh, V.K. Application of wavelet collocation method for hyperbolic partial differential equations via matrices. Appl. Math. Comput. 2018, 320, 407–424. [Google Scholar] [CrossRef]
  8. Dehghan, M.; Lakesatani, M. The Use of Cubic B-Spline Scaling Functions for Solving the One-dimensional Hyperbolic Equation with a Nonlocal Conservation Condition. Numer. Methods Partial Differ. Equ. 2007, 23, 1277–1289. [Google Scholar] [CrossRef]
  9. Bougoffa, L. An efficient method for solving nonlocal initial-boundary value problems for linear and nonlinear first-order hyperbolic partial differential equations. J. Appl. Math. Comput. 2013, 43, 31–54. [Google Scholar] [CrossRef]
  10. Saadatmandi, A.; Dehghan, M. Numerical solution of hyperbolic telegraph equation using the Chebyshev Tau method. Numer. Methods Partial Differ. Equ. 2010, 26, 239–252. [Google Scholar] [CrossRef]
  11. Alpert, B.; Beylkin, G.; Gines, D.; Vozovoi, L. Adaptive solution of partial differential equations in multiwavelet bases. J. Comput. Phys. 2002, 182, 149–190. [Google Scholar] [CrossRef] [Green Version]
  12. Saray, B.N. Sparse multiscale representation of Galerkin method for solving linear-mixed Volterra-Fredholm integral equations. Math. Methods Appl. Sci. 2020, 43, 2601–2614. [Google Scholar] [CrossRef]
  13. Alpert, B.; Beylkin, G.; Coifman, R.R.; Rokhlin, V. Wavelet-like bases for the fast solution of second-kind integral equations. SIAM J. Sci. Statist. Comput. 1993, 14, 159–184. [Google Scholar] [CrossRef]
  14. Seyedi, S.H.; Saray, B.N.; Ramazani, A. High-Accuracy Multiscale Simulation of Three-Dimensional Squeezing Carbon Nanotube-Based Flow inside a Rotating Stretching Channel. Math. Prob. Eng. 2019, 2019, 9890626. [Google Scholar] [CrossRef]
  15. Saray, B.N.; Manafian, J. Sparse representation of delay differential equation of pantograph type using multiwavelets Galerkin method. Eng. Comput. 2018, 35, 887–903. [Google Scholar] [CrossRef]
  16. Shahriari, M.; Saray, B.N.; Lakestani, M.; Manafian, J. Numerical treatment of the Benjamin-Bona-Mahony equation using Alpert multiwavelets. Eur. Phys. J. Plus 2018, 133, 201. [Google Scholar] [CrossRef]
  17. Morton, K.W.; Mayers, D.F. Numerical Solution of Partial Differential Equations an Introduction, 2nd ed.; Cambridge University Press: Cambridge, UK; New York, NY, USA, 2005. [Google Scholar]
  18. Tohidi, E.; Toutounian, F. Convergence analysis of Bernoulli matrix approach for one-dimensional matrix hyperbolic equations of the first order. Comput. Math. Appl. 2014, 68, 1–12. [Google Scholar] [CrossRef]
Figure 1. Plot of L 2 –errors at time t = 1 taking r = 3 and δ t = ( 0.1 ) / 2 9 for Example 1.
Figure 1. Plot of L 2 –errors at time t = 1 taking r = 3 and δ t = ( 0.1 ) / 2 9 for Example 1.
Mathematics 09 00078 g001
Figure 2. Plot of the approximate solution (left) and L errors (right) taking r = 5 and J = 2 for Example 1.
Figure 2. Plot of the approximate solution (left) and L errors (right) taking r = 5 and J = 2 for Example 1.
Mathematics 09 00078 g002
Figure 3. Plot of exact and approximate solutions at time t = 0.5 and t = 0.9 taking θ = 0 , r = 5 , J = 2 and δ t = ( 0.1 ) / 2 m for Example 1.
Figure 3. Plot of exact and approximate solutions at time t = 0.5 and t = 0.9 taking θ = 0 , r = 5 , J = 2 and δ t = ( 0.1 ) / 2 m for Example 1.
Mathematics 09 00078 g003
Figure 4. Plot of exact and approximate solutions at time t = 0.5 and t = 0.9 taking θ = 1 / 2 , r = 5 , J = 2 and δ t = ( 0.1 ) / 2 m for Example 1.
Figure 4. Plot of exact and approximate solutions at time t = 0.5 and t = 0.9 taking θ = 1 / 2 , r = 5 , J = 2 and δ t = ( 0.1 ) / 2 m for Example 1.
Mathematics 09 00078 g004
Figure 5. Plot of the approximate solution (left) and L errors (right) taking r = 5 and J = 2 for Example 2.
Figure 5. Plot of the approximate solution (left) and L errors (right) taking r = 5 and J = 2 for Example 2.
Mathematics 09 00078 g005
Figure 6. L 2 —error using explicit method (left) and implicit error (right) taking r = 3 and J = 2 at time δ t = 0.1 / 2 m 1 for Example 2.
Figure 6. L 2 —error using explicit method (left) and implicit error (right) taking r = 3 and J = 2 at time δ t = 0.1 / 2 m 1 for Example 2.
Mathematics 09 00078 g006
Figure 7. Plot of exact and approximate solutions at time t = 0.5 and t = 0.9 taking θ = 0 , r = 5 , J = 2 and δ t = ( 0.1 ) / 2 m for Example 2.
Figure 7. Plot of exact and approximate solutions at time t = 0.5 and t = 0.9 taking θ = 0 , r = 5 , J = 2 and δ t = ( 0.1 ) / 2 m for Example 2.
Mathematics 09 00078 g007
Figure 8. Plot of exact and approximate solutions at time t = 0.5 and t = 0.9 taking θ = 1 / 2 , r = 5 , J = 2 and δ t = ( 0.1 ) / 2 m for Example 2.
Figure 8. Plot of exact and approximate solutions at time t = 0.5 and t = 0.9 taking θ = 1 / 2 , r = 5 , J = 2 and δ t = ( 0.1 ) / 2 m for Example 2.
Mathematics 09 00078 g008
Figure 9. Plot of exact and approximate solutions at time t = 0.5 and t = 0.9 taking θ = 1 , r = 5 , J = 2 and δ t = ( 0.1 ) / 2 m for Example 2.
Figure 9. Plot of exact and approximate solutions at time t = 0.5 and t = 0.9 taking θ = 1 , r = 5 , J = 2 and δ t = ( 0.1 ) / 2 m for Example 2.
Mathematics 09 00078 g009
Figure 10. Effect of the refinement level J and δ t on the absolute error for Example 2.
Figure 10. Effect of the refinement level J and δ t on the absolute error for Example 2.
Mathematics 09 00078 g010
Table 1. Comparison of L 2 –error computed using explicit, implicit and Crank–Nicolson methods with time step size δ t = 0.1 / 2 m 1 for Example 1.
Table 1. Comparison of L 2 –error computed using explicit, implicit and Crank–Nicolson methods with time step size δ t = 0.1 / 2 m 1 for Example 1.
θ m = 1 m = 2 m = 3 m = 4 m = 5 m = 6 m = 7 m = 8 m = 9 m = 10
0 1.18 × 10 4 4.33 × 10 6 3.10 × 10 7 7.57 × 10 4 2.95 1.22 × 10 3 1.39 × 10 4 6.80 × 10 5 3.39 × 10 5 1.69 × 10 5
1 / 2 3.4 × 10 2 1.7 × 10 2 8.5 × 10 3 4.2 × 10 3 2.1 × 10 3 1.0 × 10 3 5.1 × 10 4 2.5 × 10 4 1.3 × 10 4 8.2 × 10 5
1 5.8 × 10 2 2.9 × 10 2 1.5 × 10 2 7.3 × 10 3 3.7 × 10 3 1.8 × 10 3 9.0 × 10 4 4.4 × 10 4 2.1 × 10 4 1.1 × 10 4
Table 2. L 2 norm of errors taking r = 5 , J = 2 , θ = 1 / 2 and δ t = 0.1 / 2 m 1 for Example 1.
Table 2. L 2 norm of errors taking r = 5 , J = 2 , θ = 1 / 2 and δ t = 0.1 / 2 m 1 for Example 1.
m t = 0.2 t = 0.4 t = 0.6 t = 0.8 t = 1.0
2 9.07 × 10 3 1.50 × 10 2 1.80 × 10 2 1.86 × 10 2 1.71 × 10 2
4 2.27 × 10 3 3.74 × 10 3 4.50 × 10 3 4.63 × 10 3 4.24 × 10 3
6 5.67 × 10 4 9.34 × 10 4 1.12 × 10 3 1.16 × 10 3 1.06 × 10 3
8 1.42 × 10 4 2.34 × 10 4 2.81 × 10 4 2.89 × 10 4 2.65 × 10 4
10 3.54 × 10 5 5.84 × 10 5 7.02 × 10 5 7.23 × 10 5 6.63 × 10 5
Table 3. Absolute values of the error at the selected points taking θ = 1 / 2 and δ t = 0.1 / 2 9 for Example 1.
Table 3. Absolute values of the error at the selected points taking θ = 1 / 2 and δ t = 0.1 / 2 9 for Example 1.
Reference [7] ( M = M = 4 ) Reference [18] ( N = 4 ) Proposed Method
( x , t ) Legendre WaveletsChebyshev Wavelet r = 4 , J = 1
( 0.1 , 0.1 ) 4.86 × 10 5 3.0 × 10 4 3.220 × 10 5 5.332 × 10 6
( 0.2 , 0.2 ) 2.78 × 10 4 2.0 × 10 4 6.650 × 10 5 6.791 × 10 6
( 0.3 , 0.3 ) 8.64 × 10 5 1.0 × 10 4 1.357 × 10 4 4.366 × 10 5
( 0.4 , 0.4 ) 1.15 × 10 4 5.0 × 10 4 1.332 × 10 4 1.505 × 10 4
( 0.5 , 0.5 ) 1.42 × 10 4 6.0 × 10 4 5.200 × 10 5 1.509 × 10 4
( 0.6 , 0.6 ) 5.40 × 10 6 2.0 × 10 4 7.700 × 10 5 1.992 × 10 4
( 0.7 , 0.7 ) 1.67 × 10 4 2.0 × 10 4 1.960 × 10 4 2.098 × 10 4
( 0.8 , 0.8 ) 2.46 × 10 4 2.0 × 10 4 2.428 × 10 4 2.034 × 10 4
( 0.9 , 0.9 ) 2.29 × 10 4 1.0 × 10 4 1.776 × 10 4 2.119 × 10 4
Table 4. L 2 norm of errors taking r = 5 , J = 2 , θ = 1 / 2 and δ t = 0.1 / 2 m 1 for Example 1.
Table 4. L 2 norm of errors taking r = 5 , J = 2 , θ = 1 / 2 and δ t = 0.1 / 2 m 1 for Example 1.
m θ = 0 θ = 0.5 θ = 1
1 2.74556398 0.99667345 0.95750928
2 1.96489325 0.99446140 0.97722388
3 1.45253127 0.99335639 0.98830702
4 1.16631074 0.99488512 0.99408949
5 1.04801504 0.99716602 0.99704939
6 1.01190091 0.99850952 0.99855537
7 1.00262776 0.99928905 0.99930055
8 1.00046389 0.99965462 0.99965498
9 1.00001839 0.99982309 0.99982817
10 0.99995576 0.99991242 0.99991142
Table 5. L 2 –error comparison among explicit, implicit, and Crank–Nicolson methods with time step size δ t = 0.1 / 2 m 1 for Example 2.
Table 5. L 2 –error comparison among explicit, implicit, and Crank–Nicolson methods with time step size δ t = 0.1 / 2 m 1 for Example 2.
θ m = 1 m = 2 m = 3 m = 4 m = 5 m = 6 m = 7 m = 8 m = 9 m = 10
0 2.37 × 10 4 8.67 × 10 6 6.20 × 10 7 1.51 × 10 5 5.88 × 10 0 2.68 × 10 3 6.44 × 10 4 3.21 × 10 4 1.60 × 10 4 8.01 × 10 5
1 / 2 1.45 × 10 2 7.25 × 10 3 3.62 × 10 3 1.81 × 10 3 9.06 × 10 4 4.53 × 10 4 2.27 × 10 4 1.13 × 10 4 5.66 × 10 5 2.83 × 10 5
1 2.46 × 10 2 1.23 × 10 2 6.13 × 10 3 3.06 × 10 3 1.53 × 10 3 7.65 × 10 4 3.82 × 10 4 1.91 × 10 4 9.55 × 10 5 4.78 × 10 5
Table 6. L 2 norm of errors taking r = 3 , J = 2 , θ = 1 / 2 and δ t = 0.1 / 2 m 1 for Example 2.
Table 6. L 2 norm of errors taking r = 3 , J = 2 , θ = 1 / 2 and δ t = 0.1 / 2 m 1 for Example 2.
m t = 0.2 t = 0.4 t = 0.6 t = 0.8 t = 1.0
2 3.75 × 10 3 4.50 × 10 3 3.97 × 10 3 4.58 × 10 3 7.27 × 10 3
4 9.37 × 10 4 1.12 × 10 3 9.91 × 10 4 1.14 × 10 3 1.82 × 10 3
6 2.34 × 10 4 2.81 × 10 4 2.48 × 10 4 2.86 × 10 4 4.55 × 10 4
8 5.85 × 10 5 7.02 × 10 5 6.20 × 10 5 7.15 × 10 5 1.14 × 10 4
10 1.46 × 10 5 1.76 × 10 5 1.55 × 10 5 1.79 × 10 5 2.84 × 10 5
Table 7. Absolute values of the error at the selected points taking θ = 1 / 2 and δ t = 0.1 / 2 9 for Example 2.
Table 7. Absolute values of the error at the selected points taking θ = 1 / 2 and δ t = 0.1 / 2 9 for Example 2.
Reference [7] ( M = M = 4 ) Proposed Method
( x , t ) Legendre WaveletsChebyshev Wavelet r = 4 , J = 1
( 0.1 , 0.1 ) 1.03 × 10 4 2.57 × 10 4 1.11 × 10 7
( 0.2 , 0.2 ) 9.00 × 10 6 3.83 × 10 4 1.09 × 10 7
( 0.3 , 0.3 ) 5.87 × 10 5 4.38 × 10 4 5.88 × 10 7
( 0.4 , 0.4 ) 9.94 × 10 5 2.22 × 10 5 1.30 × 10 6
( 0.5 , 0.5 ) 1.12 × 10 4 2.30 × 10 4 2.58 × 10 6
( 0.6 , 0.6 ) 9.94 × 10 5 1.38 × 10 5 7.09 × 10 7
( 0.7 , 0.7 ) 5.87 × 10 5 3.66 × 10 4 3.69 × 10 7
( 0.8 , 0.8 ) 9.00 × 10 6 2.75 × 10 4 3.73 × 10 8
( 0.9 , 0.9 ) 1.03 × 10 4 4.01 × 10 4 2.47 × 10 7
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Bin Jebreen, H.; Tchier, F. On the Numerical Simulation of HPDEs Using θ-Weighted Scheme and the Galerkin Method. Mathematics 2021, 9, 78. https://doi.org/10.3390/math9010078

AMA Style

Bin Jebreen H, Tchier F. On the Numerical Simulation of HPDEs Using θ-Weighted Scheme and the Galerkin Method. Mathematics. 2021; 9(1):78. https://doi.org/10.3390/math9010078

Chicago/Turabian Style

Bin Jebreen, Haifa, and Fairouz Tchier. 2021. "On the Numerical Simulation of HPDEs Using θ-Weighted Scheme and the Galerkin Method" Mathematics 9, no. 1: 78. https://doi.org/10.3390/math9010078

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

Article Metrics

Back to TopTop