Next Article in Journal
Dynamic Spatiotemporal Correlation Graph Convolutional Network for Traffic Speed Prediction
Previous Article in Journal
Symmetries of the Large Scale Structures of the Universe as a Phenomenology of a Fractal Turbulence: The Role of the Plasma Component
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Five-Step Block Method Coupled with Symmetric Compact Finite Difference Scheme for Solving Time-Dependent Partial Differential Equations

by
Komalpreet Kaur
1,†,
Gurjinder Singh
1,† and
Daniele Ritelli
2,*,†
1
Department of Mathematics, Main Campus, I. K. Gujral Punjab Technical University Jalandhar, Kapurthala 144603, Punjab, India
2
Department of Statistical Sciences, Università di Bologna, 40126 Bologna, Italy
*
Author to whom correspondence should be addressed.
These authors contributed equally to this work.
Symmetry 2024, 16(3), 307; https://doi.org/10.3390/sym16030307
Submission received: 22 January 2024 / Revised: 21 February 2024 / Accepted: 1 March 2024 / Published: 5 March 2024
(This article belongs to the Section Mathematics)

Abstract

:
In this article, we present a five-step block method coupled with an existing fourth-order symmetric compact finite difference scheme for solving time-dependent initial-boundary value partial differential equations (PDEs) numerically. Firstly, a five-step block method has been designed to solve a first-order system of ordinary differential equations that arise in the semi-discretisation of a given initial boundary value PDE. The five-step block method is derived by utilising the theory of interpolation and collocation approaches, resulting in a method with eighth-order accuracy. Further, characteristics of the method have been analysed, and it is found that the block method possesses A-stability properties. The block method is coupled with an existing fourth-order symmetric compact finite difference scheme to solve a given PDE, resulting in an efficient combined numerical scheme. The discretisation of spatial derivatives appearing in the given equation using symmetric compact finite difference scheme results in a tridiagonal system of equations that can be solved by using any computer algebra system to get the approximate values of the spatial derivatives at different grid points. Two well-known test problems, namely the nonlinear Burgers equation and the FitzHugh-Nagumo equation, have been considered to analyse the proposed scheme. Numerical experiments reveal the good performance of the scheme considered in the article.

1. Introduction

Nonlinear partial differential equations are used to model many important physical phenomena that appear in real-world applications of sciences and engineering [1]. It is well-known that the availability of analytical methods for solving nonlinear partial differential equations is limited to a specific class of problems; considering numerical approximations to the solution is one possible way to approach the given problem in this instance [2,3,4,5,6,7]. One ongoing objective in this field is to solve these problems by creating new, efficient numerical schemes or modifying existing ones. Our work in this article examines the approximate solution of time-dependent initial-boundary value PDEs of one dimension in the following form
u t = F ( x , t , u , u x , u x x ) , with a x b , t t 0 ,
with initial condition
u ( x , t 0 ) = ψ ( x ) ,
and boundary conditions as
u ( a , t ) = ϕ 1 ( t ) , u ( b , t ) = ϕ 2 ( t ) ,
where u represents the exact solution of the problem whereas x and t are space and time variables, respectively. In this paper, we actually consider only a special type of Equation (1) in which the second order partial derivative is linear. The spatial semi-discretisation of the above problem (1) converts it into a system of first-order ordinary differential equations in t as follows
d U d t = f ( t , U ) and U ( t 0 ) = U 0 ,
which can be solved by various existing time integration techniques, for instance, Runge–Kutta or linear multi-step methods [8]. In this article, our focus is on employing a time-marching numerical method of block nature to address the resulting system of first-order ordinary differential equations (ODEs) (2). To assess its performance, we examine two well-known nonlinear time-dependent partial differential equations (PDEs) found in the scientific literature, each with numerous real-world applications. FitzHugh–Nagumo and Burgers’ equations have been analysed numerically using a block approach with a compact finite difference scheme. A nonlinear reaction-diffusion equation, the FitzHugh–Nagumo equation originated in science and technology, particularly in neurophysiology and population growth models, flame propagation, logistic population growth, nuclear reactor theory and catalytic chemical reactions. Some researchers have looked at finite difference and compact difference methods, as in [9,10,11], to obtain numerical solutions of FitzHugh–Nagumo equations.
Another important nonlinear partial differential equation that primarily appears in shock theory and turbulence modelling is the Burgers’ equation. Applications of the Burgers’ equation can be found in many different domains, including quantum fields, traffic flow, fluid dynamics, gas dynamics, shock theory, viscous flow and turbulence. Numerous numerical techniques based on the finite element method, finite difference method, compact finite difference method, MacCormack method, quadrature method, Haar wavelet quasilinearisation approach, splitting methods, etc., have been used in the past to study the Burgers’ equation [12,13,14,15,16,17,18,19,20,21].
Due to their smaller stencil size and increased accuracy, compact finite difference schemes have been more widely used than standard finite difference schemes over the past 50 years [22,23]. Firstly, we develop a five-step block method and combine it with a fourth-order compact finite difference scheme to solve a given problem (1). Block methods are good alternatives for linear multi-step methods that require no starting values to get an approximate solution to a given problem. These methods are self-starting and were first proposed by Milne [24]. With these techniques, multiple points can be approximated simultaneously, saving computation time without sacrificing accuracy [25]. Here, we want to increase the applicability of block methods for solving time-dependent PDEs by combining them with compact finite difference schemes.

2. Development of a Five-Step Block Method

We discretize the time domain [ t 0 , t f ] with equal step size k = t i + 1 t i for finding the approximate solution of a problem (2). The method for solving a scalar problem u = f ( t , u ) , u ( t 0 ) = u 0 could be applied using a component implementation to solve a system like the one in problem (2). Consider the following polynomial to provide the approximate solution to this problem on an interval [ t n , t n + 5 ] as
u ( t ) p ( t ) = n = 0 n = 8 a n t n
where a n are the constants that must be determined. To differentiate (3) w.r.t.t two times, we get
u ( t ) p ( t ) = n = 1 n = 8 n a n t n 1
and
u ( t ) p ( t ) = n = 2 n = 8 n ( n 1 ) a n t n 2
where a n are the unknown coefficients. To determine the values of nine unknown coefficients, the following interpolatory and collocation conditions are imposed
p ( t n ) = u n , p ( t n ) = f n , p ( t n + 1 ) = f n + 1 , p ( t n + 2 ) = f n + 2
p ( t n + 3 ) = f n + 3 , p ( t n + 4 ) = f n + 4 , p ( t n + 5 ) = f n + 5
p ( t n ) = f n , p ( t n + 5 ) = f n + 5
Here, u n + j , f n + j and f n + j are respectively approximations to u ( t n + j ) , u ( t n + j ) and u ( t n + j ) . The above equations can be written in a matrix form as
1 t n t n 2 t n 3 t n 4 t n 5 t n 6 t n 7 t n 8 0 1 2 t n 3 t n 2 4 t n 3 5 t n 4 6 t n 5 7 t n 6 8 t n 7 0 1 2 t n + 1 3 t n + 1 2 4 t n + 1 3 5 t n + 1 4 6 t n + 1 5 7 t n + 1 6 8 t n + 1 7 0 1 2 t n + 2 3 t n + 2 2 4 t n + 2 3 5 t n + 2 4 6 t n + 2 5 7 t n + 2 6 8 t n + 2 7 0 1 2 t n + 3 3 t n + 3 2 4 t n + 3 3 5 t n + 3 4 6 t n + 3 5 7 t n + 3 6 8 t n + 3 7 0 1 2 t n + 4 3 t n + 4 2 4 t n + 4 3 5 t n + 4 4 6 t n + 4 5 7 t n + 4 6 8 t n + 4 7 0 1 2 t n + 5 3 t n + 5 2 4 t n + 5 3 5 t n + 5 4 6 t n + 5 5 7 t n + 5 6 8 t n + 5 7 0 0 2 6 t n 12 t n 2 20 t n 3 30 t n 4 42 t n 5 56 t n 6 0 0 2 6 t n + 5 12 t n + 5 2 20 t n + 5 3 30 t n + 5 4 42 t n + 5 5 56 t n + 5 6 a 0 a 1 a 2 a 3 a 4 a 5 a 6 a 7 a 8 = u n f n f n + 1 f n + 2 f n + 3 f n + 4 f n + 5 f n f n + 5
Using the Mathematica system, the values of the nine unknowns that appear in the above system of equations have been determined. By substituting these values and changing the variable t to t n + m k , the polynomial in (3) can be re-written as
p ( t n + m k ) = b 0 u n + k ( b 1 f n + b 2 f n + 1 + b 3 f n + 2 + b 4 f n + 3 + b 5 f n + 4 + b 6 f n + 5 ) + k 2 ( b 7 f n + b 8 f n + 5 )
where the coefficients b j s are continuous functions of variable m. After evaluating the above polynomial for m = 1 , 2 , 3 , 4 , 5 , we get a complete structure of the block method that consists of the following five formulas
u n + 1 = u n + k 6,048,000 ( 3,068,391 f n + 3,678,525 f n + 1 1,128,100 f n + 2 + 663,900 f n + 3 353,475 f n + 4 + 118,759 f n + 5 ) + 60 k 2 6,048,000 ( 7899 f n 731 f n + 5 ) u n + 2 = u n + k 189,000 ( 844,431 f n + 214,650 f n + 1 + 85,900 f n + 2 8600 f n + 3 + 2025 f n + 4 418 f n + 5 ) + k 2 189,000 ( 11,220 f n + 120 f n + 5 ) u n + 3 = u n + k 224,000 ( 106,213 f n + 231,975 f n + 1 + 230,100 f n + 2 + 118,100 f n + 3 20,025 f n + 4 + 5637 f n + 5 ) + k 2 224,000 ( 15,420 f n 1980 f n + 5 ) u n + 4 = u n + k 23,625 ( 10,686 f n + 26,100 f n + 1 + 20,600 f n + 2 + 27,600 f n + 3 + 10,350 f n + 4 836 f n + 5 ) + 240 k 2 23,625 ( 6 f n + f n + 5 ) u n + 5 = u n + k 48,384 ( 22,835 f n + 50,625 f n + 1 + 47,500 f n + 2 + 47,500 f n + 3 + 50,625 f n + 4 + 22,835 f n + 5 ) + 3300 k 2 48,384 ( f n f n + 5 )
The above method is a five-step second derivative block method that will simultaneously yield approximations of solutions to the initial-value problems (2) at the nodal points t n + 1 , t n + 2 , t n + 3 , t n + 4 and t n + 5 .

3. Basic Characteristics of the Method and Stability Analysis

This section discusses various characteristics of the block method (7).

3.1. Order of Accuracy and Consistency

Consider a difference operator L j related to the five-step block method given by (7)
L [ u ( t ) , k ] = u ( t + j k )
F j [ k , u ( t ) , u ( t ) , u ( t + k ) , u ( t + 2 k ) , u ( t + 3 k ) , u ( t + 4 k ) , u ( t + 5 k ) , u ( t ) , u ( t + 5 k ) ]
with j = 1 , 2 , 3 , 4 , 5 and F j is the corresponding right-hand side of each formula. Expanding the expression (8) using Taylor’s series about the point t and combining the like terms in k, the local truncation errors of each formula given in (7) are obtained as
LTE 1 = 3061 u 9 ( t ) k 9 6350400 + O ( k 10 )
LTE 2 = 113 u 9 ( t ) k 9 1587600 + O ( k 10 )
LTE 3 = 33 u 9 ( t ) k 9 78400 + O ( k 10 )
LTE 4 = u 9 ( t ) k 9 9925 + O ( k 10 )
LTE 5 = 125 u 9 ( t ) k 9 254016 + O ( k 10 )
The above expressions for local truncation errors conclude that the proposed method has eighth-order accuracy, implying that the proposed block method is consistent.

3.2. Zero Stability

The block method (7) is said to be zero-stable if the roots of its first characteristic equation ρ ( λ ) = 0 have modulus < 1, and the roots of modulus one must be simple. By considering the limit as k tends to zero, from the method (7), we get
I U n R U n 1 = 0
where U n = ( U n + 1 , U n + 2 , U n + 3 , U n + 4 , U n + 5 ) T and U n 1 = ( U n 4 , U n 3 , U n 2 , U n 1 , U n ) T
R = 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1
and I is the identity matrix of order five. The characteristic equation for the above method is ρ ( λ ) = d e t ( R λ I ) = λ 4 ( 1 λ ) = 0 . The roots are { 0 , 0 , 0 , 0 , 1 } . It implies that the five-step block method is zero-stable.

3.3. Linear Stability Analysis

The linear stability analysis of a numerical scheme is carried out by applying it to Dahlquist’s test equation
u = λ u , R e ( λ ) < 0 .
As t approaches , any true solution c e λ t to the above Equation (9) will decay. For the numerical method to be stable, the behaviour of the numerical solution should match the nature of the true solution. After substituting λ k = k ¯ and appying the proposed block method to Equation (9), we obtain a difference system in matrix form as
L u n + 1 u n + 2 u n + 3 u n + 4 u n + 5 = M u n 4 u n 3 u n 2 u n 1 u n
where matrices L and M are respectively given as
L = 1 3678525 k ¯ 6048000 1128100 k ¯ 6048000 663900 k ¯ 6048000 353475 k ¯ 6048000 418 k ¯ + 43860 k ¯ 2 6048000 214650 k ¯ 189000 1 85900 k ¯ 189000 8600 k ¯ 189000 2025 k ¯ 189000 418 k ¯ 120 k ¯ 2 189000 231975 k ¯ 224000 230100 k ¯ 224000 1 118100 k ¯ 224000 20025 k ¯ 224000 5637 k ¯ + 1980 k ¯ 2 224000 26100 k ¯ 23625 20600 k ¯ 23625 27600 k ¯ 23625 1 10350 k ¯ 23625 836 k ¯ 240 k ¯ 2 23625 50625 k ¯ 48384 47500 k ¯ 48384 47500 k ¯ 48384 50625 k ¯ 48384 1 + 22835 k ¯ + 3300 k ¯ 2 48384
M = 0 0 0 0 1 + 3068391 k ¯ + 3068391 k ¯ 2 6048000 0 0 0 0 1 + 84443 k ¯ + 11220 k ¯ 2 189000 0 0 0 0 1 + 106213 k ¯ + 15420 k ¯ 2 224000 0 0 0 0 1 + 10686 k ¯ + 240 k ¯ 2 23625 0 0 0 0 1 + 22835 k ¯ + 3300 k ¯ 2 48384
Thus, we have
u n + 1 u n + 2 u n + 3 u n + 4 u n + 5 = N ( k ¯ ) u n 4 u n 3 u n 2 u n 1 u n
where the matrix N ( k ¯ ) = L 1 M is the stability matrix. To find out the stability characteristics of the block method, we consider the spectral of the stability matrix { 0 , 0 , 0 , 0 , P ( k ¯ ) } where
P ( k ¯ ) = 3360 + 8400 k ¯ + 9600 k ¯ 2 + 6500 k ¯ 3 + 2798 k ¯ 4 + 745 k ¯ 5 + 100 k ¯ 6 3360 8400 k ¯ + 9600 k ¯ 2 6500 k ¯ 3 + 2798 k ¯ 4 745 k ¯ 5 + 100 k ¯ 6
The region of absolute stability [26] is given by
S = { k ¯ C : | P ( k ¯ ) | < 1 }
The given method (7) is said to be A-stable if the left half of the complex plane is contained within S. In Figure 1, the absolute stability region of method (7) has been plotted, indicating its A-stability.

4. Symmetric Compact Finite Difference Scheme

To discretise the spatial derivatives appearing in a given PDE (1), we have used symmetric compact finite difference schemes rather than conventional finite difference approximations to spatial derivatives—the reason for considering this because due to their better accuracy and smaller stencils compared to the traditional finite difference scheme. Note that discretisation of spatial derivatives present in the given PDE using symmetric compact finite difference schemes results in a tridiagonal system of equations that can be easily handled by Mathematica software. Many researchers have developed compact schemes with various boundary conditions and different orders, as in [27,28].
Discretise the space variable a < x < b into N subintervals of equal length h = x i + 1 x i where i = 1 , 2 , 3 , N + 1 .
Consider a fourth-order compact finite difference scheme for discretising the first-order spatial derivative appearing in (1) at the interior nodes i = 2 , 3 , 4 , N .
1 4 u i 1 + u i + 1 4 u i + 1 = 3 4 h ( u i + 1 u i 1 )
where the prime denotes the derivative concerning the space variable and the following one-sided boundary scheme to obtain approximations at boundary points given
for i = 1
u 1 + 3 u 2 = 1 h 17 6 u 1 + 3 2 u 2 + 3 2 u 3 1 6 u 4
and for i = N + 1
u N + 1 + 3 u N = 1 h 17 6 u N + 1 3 2 u N 3 2 u N 1 + 1 6 u N 2 .
The above equations can be written in a matrix form given by
A 1 U = B 1 U
A 1 = 1 3 0 0 0 0 1 / 4 1 1 / 4 0 0 0 0 1 / 4 1 1 / 4 0 0 0 0 0 0 0 0 1 / 4 0 0 0 0 0 1 1 / 4 0 0 0 0 3 1 ( N + 1 ) × ( N + 1 )
B 1 = 1 2 h 17 / 3 3 3 1 / 3 0 0 0 3 / 2 0 3 / 2 0 0 0 0 0 3 / 2 0 3 / 2 0 0 0 0 0 0 0 0 3 / 2 0 3 / 2 0 0 0 0 0 3 / 2 0 3 / 2 0 0 0 1 / 3 3 3 17 / 3 ( N + 1 ) × ( N + 1 )
U = U 1 U 2 U 3 . . . U N U N + 1 ( N + 1 ) × 1
Solving the above system of equations, we can obtain approximations to first-order space derivatives at the discrete points of interest.
Similarly, to approximate the second spatial derivative appearing in the equation, we consider the following fourth-order compact finite difference scheme for interior nodes i = 2 , 3 , N given by
1 10 u i 1 + u i + 1 10 u i + 1 = 6 5 h 2 u i + 1 2 u i + u i 1 .
For boundary points, we have:
for i = 1 ,
u 1 + 10 u 2 = 1 h 2 145 12 u 1 76 3 u 2 + 29 2 u 3 4 3 u 4 + 1 12 u 5
and for i = N + 1
u N + 1 + 10 u N = 1 h 2 145 12 u N + 1 76 3 u N + 29 2 u N 1 4 3 u N 2 + 1 12 u N 3
The complete matrix system for the tridiagonal fourth-order compact scheme for approximating the second derivative can be written as follows
A 2 U = B 2 U
A 2 = 1 10 0 0 0 0 1 / 10 1 1 / 10 0 0 0 0 1 / 10 1 1 / 10 0 0 0 0 0 0 0 0 1 / 10 0 0 0 0 0 1 1 / 10 0 0 0 0 10 1 ( N + 1 ) × ( N + 1 )
B 2 = 1 h 2 145 / 12 76 / 3 29 / 2 4 / 3 1 / 12 0 0 0 6 / 5 12 / 5 6 / 5 0 0 0 0 0 0 6 / 5 12 / 5 6 / 5 0 0 0 0 0 0 0 0 0 0 6 / 5 12 / 5 6 / 5 0 0 0 0 0 0 6 / 5 12 / 5 6 / 5 0 0 0 1 / 12 4 / 3 29 / 2 76 / 3 145 / 12 ( N + 1 ) × ( N + 1 )
U = U 1 U 2 U 3 . . . U N U N + 1 ( N + 1 ) × 1
Solving the above system of equations, one can get an approximation to the second-order space derivatives appearing in the equation at the discrete points of interest.

5. Test Problems

The two well-known nonlinear problems, Burgers’ and FitzHugh–Nagumo equations, will be solved using the above combined numerical scheme based on the block method in conjunction with a compact finite difference scheme. Additionally, special consideration has been given to the stability of the resulting differential systems.

5.1. Burgers’ Equation

Consider the one-dimensional Burgers’ equation:
u t + u u x = v u x x
with the initial condition
u ( x , 0 ) = ψ ( x ) ; a x b ,
and two boundary conditions are given as
u ( a , t ) = ϕ 1 ( t ) = u 1 ( t ) a n d u ( b , t ) = ϕ 2 ( t ) = u N + 1 ( t ) , t 0 .
where u represents fluid’s velocity, v is the kinematic viscosity and x a n d t are the space and time variables, respectively. The system of first-order ODEs derived from (12a)–(12c) can be expressed as follows after semi-discretisation:
u 1 u 2 u N u N + 1 = v ( A 2 1 B 2 ) u 1 u 2 u N u N + 1 u 1 u 2 u N u N + 1 ( A 1 1 B 1 ) u 1 u 2 u N u N + 1
where “∘” indicates the elementwise product of two matrices of the same dimensions. The above system can be expressed in a compact form as
U = C U + D
where C = v ( A 2 1 B 2 ) is an ( N + 1 ) t i m e s ( N + 1 ) matrix and the D matrix contains non-linear terms.

5.2. FitzHugh–Nagumo Equation

Consider the FitzHugh–Nagumo equation:
u t = u x x + u ( 1 u ) ( u μ )
with initial condition
u ( x , 0 ) = ψ ( x ) ; a x b ,
and boundary conditions
u ( a , t ) = ϕ 1 ( t ) = u 1 ( t ) a n d u ( b , t ) = ϕ 2 ( t ) = u N + 1 ( t ) , t 0 .
where x and t are space and time variables, respectively. The spatial derivatives in this equation will be approximated using a fourth-order compact finite difference scheme. After semi-discretisation, the system of first-order ODEs obtained from (14a)–(14c) can be expressed as follows
u 1 u 2 u N u N + 1 = ( A 2 1 B 2 μ I ) u 1 u 2 u N u N + 1 + ( 1 + μ ) u 1 2 u 2 2 u N 2 u N + 1 2 u 1 3 u 2 3 u N 3 u N + 1 3
The above system can be written as
U = C U + D
where C = ( A 2 1 B 2 μ I ) is an ( N + 1 ) × ( N + 1 ) matrix and the D matrix contains non-linear terms.

5.3. Stability of Differential System

To examine the stability of the differential systems for the considered PDEs, semidiscretise the problem by applying a compact finite difference scheme to the spatial derivatives in the Equation (1). This will result in a system of ODEs of the form
U = C U + D
where C is an ( N + 1 ) square matrix and D is an ( N + 1 ) × 1 vector containing nonhomogeneous parts.
The matrix for the Burgers’ equation can be written as
C = v C 2
and the matrix for the FitzHugh–Nagumo equation is
C = ( C 2 μ I )
For both of the PDEs, the matrix C 2 is given by C 2 = A 2 1 B 2 .
To find out the stability of differential system (16), we linearise the non-linear terms appearing in both PDEs by assuming the value of u ( x , t ) = U j is constant. Thus, the stability of the ensuing linear differential system will imply the stability of the non-linear differential system. The stability of the differential system is related to the eigenvalues of matrix C. It is said to be stable if the real part of each eigenvalue is either zero or negative. This has been validated for the two differential systems under investigation for the various spatial grid points depicted in Figure 2 and Figure 3. The differential system is stable in both cases.

6. Numerical Experiments

In this section, some numerical experiments have been presented to illustrate the performance of the block method in conjunction with a compact finite difference scheme. We have used Wolfram Mathematicaversion 11.0 for performing numerical computations. The standard formulas are utilized to compute the L and L r m s errors [29,30]
L = max 1 i N + 1 | e i |
L r m s = i = 1 N + 1 e i 2 N + 1 1 / 2
where
e i = u ( x i , t ) U ( x i , t ) .
Here, u ( x i , t ) and U ( x i , t ) represent the analytical and numerical solutions at the point ( x i , t ) , respectively.

6.1. Nonlinear Burgers’ Equation

6.1.1. Example 1

We consider the initial and boundary conditions for the Burgers’ equation in (12a) given by
u ( x , 0 ) = sin ( π x ) , 0 x 1
u ( 0 , t ) = u ( 1 , t ) = 0 , t > 0
The exact solution is given as [16]
u ( x , t ) = 2 v π n = 1 a n e x p ( n 2 π 2 v t ) n sin n π x a 0 + n = 1 e x p ( n 2 π 2 v t ) cos n π x
with the Fourier coefficients
a 0 = 0 1 e x p ( 2 v π ) 1 [ 1 cos ( π x ) ] d x
a n = 2 0 1 e x p ( 2 v π ) 1 [ 1 cos ( π x ) ] cos n π x d x , n = 1 , 2 , 3 . . .
In Figure 4, we have plotted the exact solution of the given PDE and its numerical solution obtained by the proposed method for a specific value of time t = 0.5 by considering various grid points as x = 0.1 , 0.3 , 0.5 , 0.7 , 0.9 with N = 100 ,   k = 0.001 and v = 0.01 . It shows that the physical behavior of both solutions is similar.

6.1.2. Example 2

Consider the test problem (12a) taking v = 0.01 and a = 2 subject to the initial and boundary conditions given by
u ( x , 0 ) = 2 v π sin ( π x ) a + cos ( π x ) , 0 x 1
u ( 0 , t ) = u ( 1 , t ) = 0 , t > 0
gives the exact solution to the problem [20]
u ( x , t ) = 2 v π sin ( π x ) exp π 2 v t a + cos ( π x ) exp π 2 v t
Table 1 presents absolute errors for t = 0.1 by applying the proposed scheme for N = 20 , k = 0.001 . It demonstrates that the proposed scheme integrates the given problem accurately.
In Table 2 and Table 3, absolute error of the proposed scheme has been compared with [20] and [31] for various values of v and t = 0.001 . We use the same number of time steps as in [20]. It shows that the proposed scheme offers better results.
Table 4 shows the Rate of Convergence (ROC) of the proposed scheme in the spatial direction for the values v = 0.01 , t = 0.001 and k = 0.0001 . It can be observed from Table 4 that the ROC agrees with the theoretical order of convergence of the proposed scheme in the spatial direction.

6.2. Non-Linear FitzHugh–Nagumo Equation

6.2.1. Example 1

Consider the test problem (14a) using μ = 0.75 along with initial condition as
u ( x , 0 ) = 1 2 + 1 2 tanh x 2 2 , 10 x 10 .
The exact solution to the problem is [9]
u ( x , t ) = 1 2 + 1 2 tanh x 2 2 ( 2 μ 1 ) t 4
Table 5 compares the L error norm using the proposed scheme with some available data from Akkoyunlu [9] for different values of N at time t = 0.2 . With the proposed scheme, we have almost the same or even better accuracy in the numerical approximation after just four applications, while the scheme presented in Akkoyunlu [9] has reached similar accuracy after 20 time steps. As a result, the proposed scheme produced similar errors in fewer iterations, saving computational effort.
In Table 6, we have compared the L r m s error for this problem using the proposed scheme with the results from Ahmad et al. [32] and Jiwari et al. [11] for N = 100 and v = 0.75 at different values of time. It must be mentioned here that the proposed scheme integrates the given problem with a large time step size and produces similar accuracy in just four iterations. In contrast, the approaches presented in [11,32] achieve similar accuracy with smaller time steps resulting in many iterations. Thus, the proposed method provides better or equal results for fewer iterations.

6.2.2. Example 2

Consider the test problem given by (14a) taking μ = 0.5 along with the initial condition as
u ( x , 0 ) = 1 1 + e x p ( x 2 ) , 0 x 1 .
where the exact solution is given by [33].
Table 7 compares errors produced by the proposed scheme and the approaches given in [33]. The errors produced by the schemes in Inan et al. [33] called ANM and ExpFDM are bigger than those obtained using the proposed scheme. Also, note that the proposed scheme uses only one iteration to integrate the problem.

6.3. PDE with Manufactured Solution

Consider the PDE
u t u x x u 2 = f ( x , t )
whose exact solution will be manufactured. We will formulate its solution with the help of a technique called Method of manufactured solutions (MMS). In this method, we choose a function u ( x , t ) , which satisfies the initial and two boundary conditions. For the above PDE, one choice is u ( x , t ) = x sin t + 1 x 2 . So, we substitute this value into the above differential equation to find f ( x , t ) .
Thus, we have the exact solution u ( x , t ) = x sin t + 1 x 2 to the initial-boundary value problem:
u t u x x u 2 = x cos t + 2 + x 2 sin 2 t + ( 1 x 2 ) 2 + 2 x ( 1 x 2 ) sin t 0 t T , 0 < x < 1
with initial condition
u ( x , 0 ) = 1 x 2
and boundary conditions
u ( 0 , t ) = 1 , u ( 1 , t ) = sin t .
In Figure 5, we have plotted the manufactured solution of the given PDE and its numerical solution obtained by the proposed method, demonstrating the proposed method’s good performance.

7. Conclusions

This article considers a five-step block method coupled with a compact finite difference scheme for numerically integrating time-dependent initial-boundary value PDEs. Theoretical development of the block method and its basic characteristics have been presented. The block method has very good stability characteristics with eighth-order accuracy. Further, a combined numerical scheme is obtained by coupling the block method with a compact finite difference scheme. The effectiveness of the presented approach has been demonstrated by applying it to two well-known test problems: Burgers’ equation and FitzHugh–Nagumo equation. The approach considered in this article is a good alternative for solving the types of problems considered in the article.

Author Contributions

Conceptualization, K.K., G.S. and D.R.; methodology, K.K., G.S. and D.R.; software, K.K.; validation, K.K., G.S. and D.R.; formal analysis, K.K., G.S. and D.R.; investigation, K.K., G.S. and D.R.; resources, K.K., G.S. and D.R.; data curation, K.K., G.S. and D.R.; writing—original draft preparation, K.K.; writing—review and editing, G.S. and D.R.; visualization, K.K.; supervision, G.S. and D.R.; project administration, K.K., G.S. and D.R. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

No data is associated with this manuscript.

Acknowledgments

We would like to thank the anonymous reviewers for their constructive comments that have greatly improved the quality of the article. Komalpreet Kaur would like to thank I.K. Gujral Punjab Technical University Jalandhar, Punjab (India) for providing research facilities for the present work.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Debnath, L. Nonlinear Partial Differential Equations for Scientists and Engineers; Birkhauser: Basel, Switzerland, 2012. [Google Scholar]
  2. Collatz, L. The Numerical Treatment of Differential Equations, 1st ed.; Springer: Berlin/Heidelberg, Germany, 1966. [Google Scholar]
  3. Li, H.-B.; Song, M.-Y.; Zhong, E.-J.; Gu, X.-M. Numerical Gradient Schemes for Heat Equations Based on the Collocation Polynomial and Hermite Interpolation. Mathematics 2019, 7, 93. [Google Scholar] [CrossRef]
  4. Luo, W.-H.; Huang, T.-Z.; Gu, X.-M.; Liu, Y. Barycentric rational collocation methods for a class of nonlinear parabolic partial differential equations. Appl. Math. Lett. 2017, 68, 13–19. [Google Scholar] [CrossRef]
  5. Mehta, A.; Singh, G. Solving one-dimensional third order nonlinear KdV equation using MacCormack method coupled with compact finite difference scheme. AIP Conf. Proc. 2022, 2451, 020064. [Google Scholar]
  6. Parvizi, M.; Khodadadian, A.; Eslahchi, M.R. A mixed finite element method for solving coupled wave equation of Kirchhoff type with nonlinear boundary damping and memory term. Math. Method Appl. Sci. 2021, 44, 12500–12521. [Google Scholar] [CrossRef]
  7. Parvizi, M.; Khodadadian, A.; Eslahchi, M.R. Analysis of Ciarlet-Raviart mixed finite element methods for solving Boussinesq equation. J. Comput. Appl. Math. 2020, 379, 112818. [Google Scholar] [CrossRef]
  8. Butcher, J.C. Numerical Methods for Ordinary Differential Equations, 2nd ed.; John Wiley & Sons: Hoboken, NJ, USA, 2008. [Google Scholar]
  9. Akkoyunlu, C. Compact finite difference method for Fitz-Hugh-Nagumo equation. Univ. J. Math. Appl. 2019, 4, 180–187. [Google Scholar] [CrossRef]
  10. Agbavon, K.M.; Appadu, A.R. Construction and analysis of some nonstandard finite difference methods for the Fitz-Hugh-Nagumo equation. Numer. Differ. Equ. 2020, 36, 1145–1169. [Google Scholar] [CrossRef]
  11. Jiwari, R.; Gupta, R.; Kumar, V. Polynomial differential quadrature method for numerical solutions of the generalized Fitzhugh-Nagumo equation with time-dependent coefficients. Ain Shams Eng. 2014, 5, 1343–1350. [Google Scholar] [CrossRef]
  12. Jiwari, R. A haar wavelet quasilinearization approach for numerical simulation of Burgers’ equation. Comput. Phys. Commun. 2012, 183, 2413–2423. [Google Scholar] [CrossRef]
  13. Jiwari, R. A hybrid numerical scheme for the numerical solution of Burgers’ equation. Comput. Phys. Commun. 2015, 188, 59–67. [Google Scholar] [CrossRef]
  14. Benton, E.; Platzman, G.W. A table of solutions of the one-dimensional Burgers’ equations. Quart. Appl. Math. 1972, 30, 195–212. [Google Scholar] [CrossRef]
  15. Zhang, P.G.; Wang, J.P. A predictor-corrector compact finite difference scheme for Burgers’ equation. Appl. Math. Comput 2012, 219, 892–898. [Google Scholar] [CrossRef]
  16. Sari, M.; Gurarslan, G. A sixth-order compact finite difference scheme to numerical solution of Burgers’ equation. Appl. Math. Comput. 2009, 208, 475–483. [Google Scholar] [CrossRef]
  17. Gao, F.; Chi, C. Numerical solution of non-linear Burgers’ equation using high accuracy multi-quadric quasi interpolation. Appl. Math. Comput. 2014, 229, 414–421. [Google Scholar] [CrossRef]
  18. Hassanian, I.A.; Salama, A.A.; Hosham, H.A. Fourth-order finite difference method for solving Burgers’ equation. Appl. Math. Comput. 2005, 170, 892–898. [Google Scholar] [CrossRef]
  19. Yang, X.; Ge, Y.; Zhang, L. A class of high-order compact difference schemes for solving the Burgers’ equation. Appl. Math. Comput. 2019, 358, 394–417. [Google Scholar] [CrossRef]
  20. Mittal, R.C.; Jain, R.K. Numerical solution of non-linear Burgers’ equation with modified cubic b-splines collocation method. Appl. Math. Comput. 2012, 358, 7839–7855. [Google Scholar] [CrossRef]
  21. Gulsu, M. A finite difference approach for solution of Burgers’ equation. Appl. Math. Comput. 2006, 175, 1245–1255. [Google Scholar] [CrossRef]
  22. Lele, S.K. Compact finite difference schemes with spectral-like resolution. J. Comput. Phys. 1992, 103, 16–42. [Google Scholar] [CrossRef]
  23. Zhao, J. Highly accurate compact mixed methods for two point boundary value problems. Appl. Math. Comput. 2017, 188, 1402–1418. [Google Scholar] [CrossRef]
  24. Milne, W.E. Numerical Solution of Differential Equations; Wiley: New York, NY, USA, 1953; Volume 9. [Google Scholar]
  25. Lambert, J.D. Computational methods in ordinary differential equations. In Introductory Mathematics for Scientists and Engineers; Wiley: New York, NY, USA, 1973; Volume 54. [Google Scholar]
  26. Harrier, E.; Wanner, G. Solving Ordinary Differential Equations-II: Stiff and Differential-Algebraic Problems; Springer: Berlin/Heidelberg, Germany, 1996. [Google Scholar]
  27. Tyler, G.J. Analysis and Implementation of High-Order Compact Finite Difference Schemes. Master’s Thesis, Brigham Young University, Provo, UT, USA, 2007. [Google Scholar]
  28. Mehra, M.; Patel, K.S. A suite of Compact Finite Difference Schemes. ACM Trans. Math. Softw. 2017, 44, 1–31. [Google Scholar] [CrossRef]
  29. Erdogan, L.; Sakar, M.G.; Saldir, O. A finite difference method on layer-adapted mesh for singularly perturbed delay differential equations. Appl. Math. Nonlinear Sci. 2020, 5, 425–436. [Google Scholar] [CrossRef]
  30. Jain, M.K.; Iyengar, S.R.K.; Jain, R.K. Computational methods for partial differential equations. New Age Int. Publ. 2016, 5, 425–436. [Google Scholar]
  31. Asai, A. Numerical solution of the Burgers’ equation by automatic differentiation. Appl. Math. Comput. 2010, 216, 2700–2708. [Google Scholar]
  32. Ahmad, I.; Ahsan, M.; Din, Z.U. An efficient local formulation for time-dependent PDEs. Mathematics 2019, 7, 216. [Google Scholar] [CrossRef]
  33. Inan, B.; Ali, K.K.; Saha, A.; Ak, T. Analytical and numerical solutions of the Fitz Hugh–Nagumo equation and their multistability behavior. Numer. Methods Partial. Differ. Equ. 2020, 37, 7–23. [Google Scholar] [CrossRef]
Figure 1. Stability region for the proposed block method. It shows that the method is A-stable.
Figure 1. Stability region for the proposed block method. It shows that the method is A-stable.
Symmetry 16 00307 g001
Figure 2. Real part of eigenvalues for Burgers’ equation with v = 0.01 .
Figure 2. Real part of eigenvalues for Burgers’ equation with v = 0.01 .
Symmetry 16 00307 g002
Figure 3. Real part of eigenvalues for FitzHugh–Nagumo equation using μ = 0.75 .
Figure 3. Real part of eigenvalues for FitzHugh–Nagumo equation using μ = 0.75 .
Symmetry 16 00307 g003
Figure 4. Numerical solution v/s Analytical solution at t = 0.5 .
Figure 4. Numerical solution v/s Analytical solution at t = 0.5 .
Symmetry 16 00307 g004
Figure 5. Numerical solution v/s Analytical solution for (17). We have plotted the numerical solution against the exact solution for the values N = 20 ,   k = 0.0001 ,   t = 0.01 . It shows that the physical behavior of both the solutions is similar.
Figure 5. Numerical solution v/s Analytical solution for (17). We have plotted the numerical solution against the exact solution for the values N = 20 ,   k = 0.0001 ,   t = 0.01 . It shows that the physical behavior of both the solutions is similar.
Symmetry 16 00307 g005
Table 1. Absolute error at t = 0.1 .
Table 1. Absolute error at t = 0.1 .
xAbsolute Error
0.14.6342 × 10 9
0.21.4033 × 10 10
0.31.9936 × 10 9
0.41.2330 × 10 10
0.54.9473 × 10 9
0.62.3491 × 10 8
0.73.8157 × 10 8
0.86.0069 × 10 8
0.91.5378 × 10 8
Table 2. Comparison of results with v = 1 and N = 40 .
Table 2. Comparison of results with v = 1 and N = 40 .
xAbsolute Error (Asai [31]) Absolute Error (Mittal [20])Absolute Error
(The Proposed Scheme)
0.14.50 × 10 5 7.40 × 10 5 3.84 × 10 8
0.27.70 × 10 5 6.00 × 10 6 5.45 × 10 9
0.31.21 × 10 4 1.20 × 10 5 6.79 × 10 9
0.42.40 × 10 5 1.78 × 10 4 1.23 × 10 9
0.52.53 × 10 4 3.90 × 10 5 4.41 × 10 8
0.63.56 × 10 4 4.40 × 10 5 1.63 × 10 7
0.74.84 × 10 4 1.00 × 10 5 2.53 × 10 7
0.83.32 × 10 4 7.40 × 10 5 3.48 × 10 7
0.94.17 × 10 4 2.81 × 10 4 7.86 × 10 7
Table 3. Comparison of results with v = 0.5 and N = 40 .
Table 3. Comparison of results with v = 0.5 and N = 40 .
xAbsolute Error (Asai [31]) Absolute Error (Mittal [20])Absolute Error
(The Proposed Scheme)
0.14.00 × 10 6 0.0000005.76 × 10 10
0.29.00 × 10 6 2.00 × 10 6 1.47 × 10 9
0.31.40 × 10 5 3.00 × 10 6 1.96 × 10 9
0.42.20 × 10 5 6.00 × 10 6 2.82 × 10 10
0.53.20 × 10 5 1.00 × 10 5 9.95 × 10 9
0.64.90 × 10 5 1.20 × 10 5 4.02 × 10 9
0.77.50 × 10 5 7.50 × 10 5 6.72 × 10 9
0.84.50 × 10 5 1.00 × 10 4 1.58 × 10 9
0.98.10 × 10 5 7.40 × 10 5 3.35 × 10 7
Table 4. L -error and ROC.
Table 4. L -error and ROC.
N L -ErrorROC
408.08777 × 10 9
809.97993 × 10 10 3.0186
1603.83759 × 10 11 4.7008
3201.69230 × 10 12 4.5031
Table 5. Comparison of L -error norm at time t = 0.2 .
Table 5. Comparison of L -error norm at time t = 0.2 .
N L -Error with CPU (sec.) (The Proposed Scheme) L (Method in Akkoyunlu [9])
126.3673 × 10 4 3.9857 × 10 4
(0.65)
244.7712 × 10 5 2.3475 × 10 5
(2.34)
488.0504 × 10 6 8.3749 × 10 6
(9.60)
644.7818 × 10 6 5.9363 × 10 6
(17.75)
No. of iterations420
Table 6. Comparison with different approaches for Example1 with μ = 0.75 and N = 100 .
Table 6. Comparison with different approaches for Example1 with μ = 0.75 and N = 100 .
Ahmad [32]Jiwari [11]The Proposed Scheme
t L rms -Errorh L rms -Error L rms -Error
with CPU (sec.)
0.22.1960 × 10 7 1.5880 × 10 5 4.0099 × 10 7
(47.89)
0.51.5696 × 10 6 3.8433 × 10 5 2.8629 × 10 6
(125.23)
1.07.1449 × 10 6 8.1870 × 10 5 1.3175 × 10 5
(268.56)
1.51.7262 × 10 5 1.3387 × 10 4 3.2282 × 10 5
(395.18)
23.1857 × 10 5 1.9433 × 10 4 6.1114 × 10 5
(527.95)
time step-size(k)0.00010.0010.01
Table 7. Comparison of maximum absolute error for Example 2 with μ = 0.5 and t = 0.04 .
Table 7. Comparison of maximum absolute error for Example 2 with μ = 0.5 and t = 0.04 .
xThe Proposed SchemeExpFDM [33]ANM [33]
0.22.5011 × 10 7 3.00 × 10 6 2.00 × 10 7
0.43.5686 × 10 7 1.00 × 10 5 5.00 × 10 7
0.61.0422 × 10 7 2.00 × 10 5 7.00 × 10 7
0.89.7036 × 10 7 4.00 × 10 5 6.00 × 10 7
No. of iterations188
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

Kaur, K.; Singh, G.; Ritelli, D. A Five-Step Block Method Coupled with Symmetric Compact Finite Difference Scheme for Solving Time-Dependent Partial Differential Equations. Symmetry 2024, 16, 307. https://doi.org/10.3390/sym16030307

AMA Style

Kaur K, Singh G, Ritelli D. A Five-Step Block Method Coupled with Symmetric Compact Finite Difference Scheme for Solving Time-Dependent Partial Differential Equations. Symmetry. 2024; 16(3):307. https://doi.org/10.3390/sym16030307

Chicago/Turabian Style

Kaur, Komalpreet, Gurjinder Singh, and Daniele Ritelli. 2024. "A Five-Step Block Method Coupled with Symmetric Compact Finite Difference Scheme for Solving Time-Dependent Partial Differential Equations" Symmetry 16, no. 3: 307. https://doi.org/10.3390/sym16030307

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