1. Introduction
The linear reaction convection diffusion equation has a broad range of application in astrophysics, aerospace sciences, biology, and environmental sciences. Energy movements [
1,
2], fluid clotting [
3], and hemodynamics [
4] are the areas with relevance to the convection–diffusion equation. The Black–Scholes equation [
5,
6] is a practical equation for options pricing, transformed into a reaction–convection–diffusion equation on a semi-unbounded domain [
7,
8].
The mathematical conversion of a linear reaction convection–diffusion equation into a nonstandard finite difference equation was revealed by [
9]; however, [
10] proposed a study that comprised the family of positivity-preserving finite-difference methods for the classical Fisher–Kolmogorov–Petrovsky–Piscounov equation.
The fourth-order compact finite difference scheme was studied by Sun and Zhang [
11] using parameters such as space and time. Additionally, when
, Mohebbi and Dehghan [
12] offered some compact methods that suggested a fourth-order compact finite difference in space and time components for Equation (A1). Moreover, Nove [
13] studied a three-point third-order implicit finite difference method that is conditionally stable.
Consider the one-dimensional advection–diffusion equation
with initial conditions
and boundary conditions
The advection–diffusion equation is significant in physical systems such as fluid dynamics [
14,
15,
16]. Equation (1) describes partial differential equations in their one-dimensional version, explaining advection–diffusion of quantities such as mass, heat, energy, vorticity. In [
17], the impact of different kinds of parameters on velocity and temperature profiles is given, and it was concluded that, in some cases, a boost of volume fraction of nanoparticle led to a decrease in heat transfer rate, and this was a contradiction to the results of other researchers. Influence of viscous dissipation and heat generation/absorption of non-Newtonian power-law fluid is given in [
18]. The equations were solved numerically by implementing the Runge–Kutta–Fehlberg fourth-fifth-order method, and results displayed through graphs. The injection parameter escalation was responsible for the decay of the local Nusselt number for both Newtonian and non-Newtonian nanofluid flow. In existing published research, results were obtained, and those results were often displayed in graphs. Thus, in [
19], it was mentioned that the performance of heat transfer of non-Newtonian nanofluid was better than that obtained by Newtonian nanofluid for the case of injection and an impermeable plate.
Using the equation in solving systems consists of difficult initials, and boundary conditions provide little or no knowledge regarding analytical solutions [
14,
20]. However, [
21,
22] reveal a significant effort to form stable and accurate numerical techniques for the solution of Equation (1). Effects of Endothermic/Exothermic chemical reaction of MHD free convection flow have been studies in [
23]. In the presence of a non-uniform heat source/sink, the Carreau nanoparticle is studied by Khan et al. [
24]. In this study, in the presence of suction, heat radiation, and a heat source/sink, Jamalaudin et al. [
25] numerically investigate the stagnant convection mixture-point flow nanofluid over a vertical stretching/shrinking sheet.
On the other hand, compact finite difference schemes can be used to find numerical solutions of differential equations on a smaller number of grid points. An existing scheme was updated [
26] to three dimensions for solving the three-dimensional convection–diffusion problem. The scheme was called an exponential higher-order compact finite difference scheme. It provided an exact solution of homogeneous convection–diffusion problems with constant coefficients. A numerical scheme [
27] consisted of implicit Euler for time discretization, and hybrid scheme for spatial discretization was studied. Since the solution of the type of equations considered was exhibited as a boundary layer, a piecewise uniform Shishkin mesh was considered for discretization in the spatial direction. A new high-order compact ADI method [
28] has been considered for solving the time-dependent convection–diffusion equation. In addition, a correction technique was applied for reducing the error of the splitting term. Two numerical schemes, named the upwind-penalty method and SUPG method, were introduced in [
29]. The stability analysis was given, and a comparison with the standard SUPG finite element method was given. Most recent research on the proposed numerical schemes can be found in [
30,
31].
The proposed compact scheme is constructed on three grid points that can be used to find solutions of convection–diffusion type problems. The scheme is explicit and can be used in some situations to obtain the solution without using the additional iterative scheme to solve discretized/difference equations. The existing corresponding implicit discretization is modified, and so, in this manner, an explicit scheme containing a second-order partial derivative in time term is obtained. The existing implicit compact scheme consisted of the mixed partial derivative term in space and time, and this term was responsible for establishing an implicit compact scheme rather than an explicit one. In this contribution, however, this mixed derivative term is turned into a second-order partial derivative in time term, and this term is discretized using a second-order standard–classical central difference formula constructed on three time levels. The first-order partial derivative in the time term is discretized using the standard/classical difference formula. The second-order difference formula is used to obtain the second accurate scheme in time and the fourth order in space. This second-order difference formula, however, can be replaced with the first-order difference formula to get the first-order accuracy in the time scheme. However, the fourth-order space accuracy can still be obtained.
Construction of Compact Scheme
Consider the convection–diffusion equation of the form
In the first part of the scheme, Equation (1) is discretized as
Equation (3) is the classical/standard discretization of Equation (2). To use a compact scheme, one remainder term for space discretization of Equation (3) is considered as
Since the third and fourth partial derivatives of
arenot available, these derivatives are found first. Therefore, finding the third and fourth-order derivative of Equation (2) yields
Substituting the third- and fourth-order derivative into Equation (4) gives a compact scheme that is implicit. Instead of this, the fourth-order partial derivative in Equation (6) can be expressed as
Substituting Equations (5) and (7) into (4) yields
Simplifying Equation (8) gives
In operator form, Equation (9) is expressed as
where
,
,
and
.
Equation (10) is an explicit compact difference equation that is fourth order in space and second order in time, and it is constructed on three time levels. Thus, it requires an additional scheme evaluated on the first time level.
2. Stability Analysis
The Von Neumann stability criterion is employed to check the stability of the proposed explicit scheme. According to this criterion, some transformations are considered first as
Employing transformation (11) into Equation (9) and dividing by
gives
Equation (12) can be expressed as
where
Since the proposed scheme is constructed on the three time level, it requires one more equation, which can be constructed as
Equations (13) and (14) are expressed as
Here, the amplification factor is a matrix. The eigenvalues of this matrix are used to construct stability conditions that can be expressed as
Let
Let
where
and
The condition
implies
In addition, the condition
implies
Consider the system of convection–diffusion equations
The system of Equations (20) and (21) can be expressed as
where
,
.
The proposed scheme requires a third- and fourth-order derivative, therefore
where
.
Theorem 1. The compact scheme for Equation (22) converges subject to the conditions
- (i)
Error at the first time level is bounded.
- (ii)
.
Proof. The compact scheme for Equation (21) is given as
Let the difference between exact and numerical approximate solution is expressedas
, where
shows an exact solution at the
grid point and at the
level. The error equation corresponding to Equation (25) is given as
Applying norm on both sides of the Equation (26) gives
Equation (27) can be expressed as
where
Inequality (28) can be expressed as
Let
, then Inequality (28) can be expressed as:
Letting
in (30) gives
Since the initial condition is exact,
; therefore, (31) becomes
Letting
in (30) gives
Since the error at first time level is bounded,
; therefore, Equation (33) becomes
Putting
in Equation (30) results in
Putting
in Equation (30) gives
If it is continued, then for
and
Since is an infinite geometric series, it converges; if and it gives convergence conditions, then this is the case when . Similarly, for the case when , the convergence conditions can be found.
The algorithm is constructed that can be used to summarize the use of code for finding the values of unknowns on each grid point and for every time level.
3. Applications
For finding numerical solutions of convection–diffusion problems, two examples are considered. The next part of this contribution comprises the application of the proposed explicit compact scheme for nonlinear PDEs and non-dimensional coupled PDEs for heat transfer in boundary layer flow. An Algorithm 1 is given which summarizes the computer programming for the solution of considered problems.
Algorithm 1. In the beginning, the smallest and largest values of spatial and temporal variables have been defined |
Step 1. and are the step sizes used in space and time, where and denote grid points and time levels in space and time, respectively, and give values of the parameters contained in the equation(s) considered. Step 2. Use the forward Euler method on the first time level because the proposed scheme is constructed on three time levels. Step 3. Use the proposed fourth order in space and second order in time scheme on the remaining time levels to find one unknown explicitly. Step 4. When values of the dependent variable on each grid point and each time level are computed, a solution can be seen using different plots. |
Example 1: Consider the following nonlinear convection–diffusion problem
subject to the initial and boundary conditions
The exact solution of Equation (41) with initial and boundary conditions (42) and (43), respectively, is given by
The compact discretization for Equation (41) can be expressed as
The compact numerical scheme (45) can be changed into an explicit scheme by collecting
terms on one side. Thus, in this manner, the second order in time and the fourth order in space scheme for linearized Equation (41) are obtained. Note that the standard/classical second order in the time and space central scheme for Equation (41) becomes unconditionally unstable. Scheme (45), however, which is also second order in time and fourth order in space, becomes conditionally stable.
Figure 1a,b show solutions obtained by the proposed scheme and comparisons of exact and standard/classical scheme’s solution with one obtained by the proposed scheme. The standard/classical scheme is first order in time and second order in space, and the relative error shown by this scheme is graphed in
Figure 1b, which is greater than the relative error obtained by the proposed scheme.
show the number of grid points and time levels, while
show the left and right endpoints of the domain.
Example 2: Boundary Layer Flow Over Stretching Sheet
Consider an incompressible, laminar, Newtonian, and two-dimensional unsteady mixed convective fluid flow over an infinitely long plate. Let
-axis be along the plate, whereas the
-axis is perpendicular to the plate or perpendicular to the direction of the flow. The plate stretches towards the positive
-axis and the fluid is placed in the space
. Let the stretching velocity of the plate be
. Since the plate is infinitely long, the partial derivative in
is neglected [
23]. Then the governing equations of the flow can be expressed [
23] as
subject to the boundary conditions given as
where
is the heat flux and
represent the components of velocity in
directions, respectively;
represents the kinematic viscosity,
is used for gravity,
represents the coefficient of volume expansion for temperature,
is the fluid temperature,
represents thermal diffusivity,
represents the temperature of the fluid at the wall, and
represents the temperature of the fluid away from the plate.
Equations (46)–(49) are dimensional, so to reduce these equations into dimensionless forms, the following transformations are given as
Substituting transformations (50) into Equations (46)–(49), the dimensionless equations are given as
subject to the dimensionless boundary conditions
where
represents Grashoff number of heat transfer,
is the radiation parameter,
represents the Reynolds number, and
represents the Prandtl number; these parameters are defined by
where
and
are, respectively, the Stefan–Boltzmann constant, the thermal conductivity of the fluid, and mean absorption coefficient, and parameters have appeared where radiation parameter
was defined in (54). Additionally, in Equation (53), linearized Rosseland radiative flux is considered. The solution of Equation (51) is expressed by
where
is suction/injection velocity of the plate.
For solving convection–diffusion type Equations (52)–(53) using the proposed scheme, a difference/discretized equation can be developed in the following manner,
where
and
. Since the term contained in Eq. (58), having the form
, which is computed from Equation (57). Thus, two different procedures can be adopted. The one using some iteration scheme and this is an implicit kind of procedure to find the values of unknowns, or another one is an explicit procedure that finds
first and afterward, the term
is calculated. In this contribution, an explicit procedure is adopted. Some results are compared with existing schemes.
Figure 2 shows the solution obtained by the proposed scheme with the exact solution and two existing schemes. The comparison with the exact solution is given in
Figure 2a, while the comparison of absolute errors made by three schemes is drawn in
Figure 2b. The proposed scheme produced less error than the first order in time and second order in space scheme, and the absolute error obtained by the DuFort–Frankel method oscillates.
Figure 3 shows the comparison of the proposed scheme with the DuFort–Frankel scheme through time. Skin friction coefficient starts with zero due to an initial condition is set to zero, and then for the next time level, it starts with its highest value. Then it decreases and maintains an approximately/exactly constant behavior along the
-axis. The difference between skin friction coefficients obtained by both schemes can be seen in the zoomed figure. In addition, it can be observed that the skin friction coefficient oscillates, which is computed from the existing unconditionally stable DuFort–Frankel method. The difference between two local Nusselt numbers obtained by the proposed and existing schemes can be seen in
Figure 4. The skin friction coefficient and local Nusselt number decrease over time due to the effects of applied boundary conditions on velocity and temperature profiles, and this effect decreases with time.
Figure 5,
Figure 6,
Figure 7,
Figure 8 and
Figure 9 show contour plots for velocity profile for only the diffusion parabolic equation with diffusion effect, including the source term and convection–diffusion equations. The mesh plots,
Figure 9 and
Figure 10, show the surface type of plot that can be used to understand the contour plots. The symbol
is used left end point of domain,
is used for right end point of domain,
is used for final time,
is used for number of grid points and
is used for number of time levels.