Publication Cover
Mathematical and Computer Modelling of Dynamical Systems
Methods, Tools and Applications in Engineering and Related Sciences
Volume 29, 2023 - Issue 1
612
Views
0
CrossRef citations to date
0
Altmetric
Research Article

Quadratic upwind differencing scheme in the finite volume method for solving the convection-diffusion equation

ORCID Icon, ORCID Icon, ORCID Icon & ORCID Icon
Pages 265-285 | Received 02 Jul 2023, Accepted 08 Nov 2023, Published online: 27 Nov 2023

ABSTRACT

Due to the high importance of the convection-diffusion equation, we aim to develop a quadratic upwind differencing scheme in the finite volume approach for solving this equation. Our newly developed numerical approach is conditionally stable. The strategy employs a quadratic upwind differencing scheme in the finite volume technique for spatial approximation with third-order accuracy. The temporal integration is approximated using the explicit theta method of first-order accuracy. Some numerical examples are given to support our theoretical procedures. The findings are plotted using MATLAB R2016a mathematical software.

1. Introduction

Many key phenomena in chemical diffusion, fluid flow, heat transfer, ocean circulation, signal processing, solid mechanics, wave propagation, and other fields are well governed by partial differential equations [Citation1]. The convection-diffusion equation is a mathematical model that depicts a substance’s concentration in fluid dynamics and heat transfer [Citation2]. The equation is a combination of convection and diffusion terms and has several applications in engineering and science fields [Citation3,Citation4]. Convection and diffusion equations are the two physical processes that appear in several applications in the transfer of particles and other quantities inside a physical system [Citation5,Citation6]. Starting and boundary value problems like unsteady state second-order convection-diffusion equations are highly important in mathematics and engineering. Based on the convection or diffusion rate, the convection-diffusion equation can be convection or diffusion dominated. The diffusion coefficient can be calculated with the help of Fick’s laws of diffusion [Citation7]. The second law of Fick is similar to the diffusion equation [Citation7]. For fluid transport, Buckman [Citation8] stated a derivation of the convection-diffusion equation.

Finding accurate and effective techniques for solving partial differential equations has become a focus of ongoing study. Several techniques to calculate an exact value of some linear and nonlinear equations have recently been developed and now received considerable attention of researchers. Nowadays, different scholars focus on techniques for finding analytic results rather than approximate values. With the help of the Lie symmetry approach, M. Usman et al. [Citation9] solved the 1D wave propagation in phononic materials based on the simplified micromorphic model. After constructing optimal system of Lie subalgebras, they converted a system into ordinary differential equations. Based on Laplace transform technique and using the variational iteration method, the authors of [Citation10] computed the analytic results for nonlinear oscillators. Hussain, Kara and Zaman [Citation11] solved the Vakhnenko – Parkes equation using the Lie symmetry transformation approach. They construct the discrete symmetries of this equation with the help of a modified Hydon’s approach. A. Hussain et al. [Citation12] focused on the analysis of the Peyrard – Bishop DNA dynamic model equation. Jacobi elliptic function expansion and Lie symmetry approaches were used to compute an exact value of the model. In Ref [Citation13], the thermophoretic equation was solved analytically with the help of wrinkle propagation in substrate-supported Graphene sheets. Using Lie symmetry method, the authors of [Citation14] discussed the Riabouchinsky Proudman Johnson equation and achieved first-time explicit analytical results. For additional reading on other direct methods to compute the analytic results of differential equations, an interesting reader is referred to in [Citation15–17]. From these discussions, we understood that numerous techniques for finding an accurate solution are available. Fluid dynamics is a scientific field of huge significance in applied mathematics, where crucial equations are typically stated using partial differential equations. Such an equation has an exact result only possible for some cases [Citation18]. Most of the time, finding an exact solution to a partial differential equation is challenging. As a result, considerable attention must be given to the effective numerical schemes that converge to the exact result.

The primary aim of the current study is to develop a quadratic upwind interpolation for convective kinematics (QUICK) approach in the finite volume method (FVM) for solving convection-diffusion problem. The main advantage of numerical schemes in the FVM lies in their accuracy for the computation of fluid flow dynamics [Citation19]. A significant aim of the schemes is to reduce the differential equation into a system of algebraic equations [Citation20]. The FVM can be used for different engineering issues that are represented by the differential equations. The definite integration of the given problem over a control volume is a key step of the FVM. Several engineering and science issues have recently been solved in different schemes of the FVM. OpenFOAM (Open-Source Field Operation and Manipulation) for computational hydrodynamics using the FVM was investigated by the authors in [Citation21]. Muhammad and Ullah [Citation22] studied the simulation of flow on the hydroelectric power dam spillway through OpenFOAM with the help of the FVM. Using the large eddy simulation mode, authors of [Citation23] discussed the simulation of turbulence flow in OpenFOAM. The simulation was based on the finite volume method. In a higher methane-cut reservoir, authors in [Citation24] studied the energy recovery mechanism of air injection and approximated their results using the FVM. The finite volume technique was applied for approximating combustion dynamics via OpenFOAM in [Citation25]. An article in [Citation26] focused on the analysis of fluid flow through OpenFOAM using the FVM. For the approximate results of the convection-diffusion equation (CDE), various schemes in the FVM have been established. Hussain, Zheng, and Fekadie in [Citation27], studied the CDE using a modified upwind scheme. With the second-order accuracy, the technique was unconditionally stable. The Crank-Nicolson formulation was used to approximate in the temporal direction. We have studied this problem using a quadratic upwind differencing scheme. Unsteady 1D convection-diffusion equations were solved using a high-order exponential technique by the authors of [Citation28]. The developed technique was unconditionally stable and has fourth-order accuracy. In [Citation29], an upwind technique was used to discretize a singularly perturbed CDE. The authors in [Citation30], studied a 1D unsteady state CDE using fully implicit hybrid and central differencing schemes in the finite volume approach. Edwan et al. [Citation31] solved the fractional-order CDE in Riemann-Liouville fractional operator with the help of finite volume technique. The scheme was conditionally stable, with first and second order accuracy in time and in space, respectively. Using finite volume approach, Saddeh [Citation32] obtained the results of fractional order CDE. Patel and Pandya [Citation33] used the FVM to approximate 1D unsteady state and 2D steady state heat transfer equations with starting and boundary values. Authors of [Citation34] approximated convection and convection-diffusion equations using an Eulerian-Lagrangian Runge-Kutta FVM. In [Citation35], the convection-diffusion equations with Dirichlet and Neumann boundary values were solved using the FVM. A conservative semi-Lagrangian finite volume technique was used to compute the convection-diffusion problem on unstructured grids [Citation36]. For solving convection-diffusion-reaction equation, Mingtian [Citation37] applied the finite volume technique. For additional reading on other numerical schemes for solving CDE an interesting reader is referred to [Citation38–43].

Leonard developed the QUICK scheme in the finite volume approach for the first time in 1979 [Citation44]. This scheme is now gaining more popularity due to its high range of application in practical computational fluid dynamics [Citation45]. A quadratic upwind differencing scheme (or QUICK scheme) is a powerful approximate scheme used for finding solution of convection-diffusion equation. A comparison between the solutions obtained by the QUICK approach in the FVM and the solutions existing in the literature shows that our solutions are more general, and novel, and have never been reported earlier. This paper aims to present QUICK scheme to the control volume technique for solving a single-domain convection-diffusion equation. A single-domain problem is used, which does not require interface tracking and allows the use of a fixed grid in order to solve the governing equations [Citation46,Citation47]. Numerical schemes in the finite volume approach are adaptable to the bidomain problems [Citation48–51]. A major drawback of the bidomain scheme is its complexity of implementation. Because of the computational cost of the bidomain scheme, here we discuss the convection-diffusion problem in a single domain. In spatial discretization, our newly proposed technique is conditionally stable and has third-order accuracy. In this work, we use the explicit theta method θ=0 with first order accuracy in time for temporal approximation. In our methodology, the approximate findings are presented in the absence of the thermophoresis effect. The existence of our solution in the presence of thermophoresis effect is not checked, which is a limitation of this study. This paper will provide an extensive understanding of a QUICK scheme in the FVM for computational fluid dynamics simulation and analysis. The study’s findings will serve as a basis for future research in this field by other scholars. It will contribute to the existing literature on numerical approaches for approximating convection-diffusion equations. The findings of this study may help students and academics to design higher-order schemes in the future for approximating mathematical problems. There are so many studies related to this mathematical problem that the proposed approach can be seen as an essential addition to attracting interest among fluid dynamics researchers. Our objective in the present study is to use the quadratic upwind differencing scheme to find the approximate solution for the convection-diffusion equation that will help the reader in this subject area. The paper’s structure is as follows: The discretization and formulation of the problem are covered in Section 2. Assessment of the quick scheme is found in Section 3. To show the effectiveness of our scheme, some examples and discussions are presented in Section 4. At the end, in Section 5, a conclusion is written.

2. Discretization and formulation of the problem

Diffusion always exists alongside with convection. Thus, now we proposed the QUICK scheme in the FVM to approximate convection-diffusion equation. With no source term, a linear unsteady state convection-diffusion of a property f is governed by [Citation27] as follow:

(1) ft+ufx=h2fx2,0xLand0tT,f(x,0)=l(x),f0,t=l1(t),fL,t=l2(t).(1)

where u>0 is convective velocity, h0 is diffusion coefficient, ufx is a convective term, and h2fx2 is a diffusive term. The discretization of the convection and diffusion terms is the computation of the value of transported property f at control volume faces and its convective flux across these boundaries. A definite integration of the CDE over a control volume (CV) gives a set of discretized equations. The local Peclet number PΔ=uΔxh is used to measure the effect of convection on the transport of physical quantities. Discretization and formulation of the same problem were investigated with the help of modified upwind scheme in the FVM by the authors of [Citation27,Citation52]. In this paper, we aim to solve the convection-diffusion problem with the help of a quadratic upwind differencing approach in the FVM. The quadratic upwind differencing approach of Leonard (1979 [Citation44]) uses a three-point upstream-weighted quadratic interpolation for cell face values. The face value of f is produced from a quadratic function via two bracketing nodes (on each side of the face) and a node on the upstream side (see ). For the discretization, we used the domains Π=0,L and Δx=Ln,Δt=Tm,0in and 0jm.

Figure 1. Quadratic profiles of the QUICK scheme.

Figure 1. Quadratic profiles of the QUICK scheme.

Over a control volume xiΔx2,xi+Δx2tj,tj+1 around the nodal point i, definite integration of the governing equation (1) gives:

iΔx2i+Δx2jj+1ftdtdx+ujj+1iΔx2i+Δx2fxdxdt=hjj+1iΔx2i+Δx22fx2dxdt,
(2) iΔx2i+Δx2fi,j+1fi,jdx+ujj+1fi+Δx2,jfiΔx2,jdt=hjj+1fxi+Δx2,jfxiΔx2,jdt.(2)

For numerical integration, approximate the first term of eq. (2) using Simpson’s 1/3 rule:

Δx3fi+Δx2,j+1+4fi,j+1+fiΔx2,j+1Δx3fi+Δx2,j+4fi,j+fiΔx2,j+ujj+1fi+Δx2,jfiΔx2,jdt
(3) =hjj+1fxi+Δx2,jfxiΔx2,jdt.(3)

The QUICK differencing scheme computes fi+Δx2,j at the east face of the ith CV as

(4) fi+Δx2,j=18fi1,j+68fi,j+38fi+1,j+OΔx3.(4)

and

(5) fxi+Δx2,j=fi,j+fi+1,jΔx+OΔx3.(5)

The QUICK differencing scheme computes fiΔx2,j at the west face of the ith CV as

(6) fiΔx2,j=18fi2,j+68fi1,j+38fi,j+OΔx3.(6)

and

(7) fxiΔx2,j=fi1,j+fi,jΔx+OΔx3.(7)

The appendix section contains a detailed explanation of equations (4)-(7). Now substitute the approximations given in Eqs. (4), (5), (6) and (7) into eq. (3) and after some rearrangements, we arrived at:

Δx24fi2,j+1+5Δx24fi1,j+1+41Δx24fi,j+1+Δx8fi+1,j+1
(8) +u8jj+1fi2,jdt+7u8hΔxjj+1fi1,jdt+3u8+2hΔxjj+1fi,jdt(8)
+3u8hΔxjj+1fi+1,jdt=Δx24fi2,j+5Δx24fi1,j+41Δx24fi,j+Δx8fi+1,j.

Theta method is applied for temporal integration:

(9) jj+1fidt=θfi,j+1+(1θ)fi,jΔt,(9)

where θ0,1.

Δx24fi2,j+1+5Δx24fi1,j+1+41Δx24fi,j+1+Δx8fi+1,j+1
(10) +θΔtu8fi2,j+1+7u8hΔxfi1,j+1+3u8+2hΔxfi,j+1+3u8hΔxfi+1,j+1(10)
+(1θ)Δtu8fi2,j+7u8hΔxfi1,j+3u8+2hΔxfi,j+3u8hΔxfi+1,j
=Δx24fi2,j+5Δx24fi1,j+41Δx24fi,j+Δx8fi+1,j.

For explicit scheme θ=0 with first order accuracy in time and divide by Δx, we arrived to the following discretized form:

124fi2,j+1+524fi1,j+1+4124fi,j+1+18fi+1,j+1=124uΔt8Δxfi2,j
(11) +524+7uΔt8Δx+hΔtΔx2fi1,j+41243uΔt8Δx2hΔtΔx2fi,j+183uΔt8Δx+hΔtΔx2fi+1,j.(11)

Similarly, for the quadratic downwind approach u<0, we have defined the upstream nodes and in the case of the quadratic downwind approach.

(12) fi+Δx2,j=18fi+2,j+38fi,j+68fi+1,j.(12)
(13) fiΔx2,j=18fi+1,j+38fi1,j+68fi,j.(13)

By substituting the approximations given in equations (5), (7), (12) and (13) into eq. (3), we get the following:

18fi1,j+1+4124fi,j+1+524fi+1,j+1124fi+2,j+1=18+3uΔt8Δxfi1,j
(14) +4124+3uΔt8Δx+hΔtΔx2fi,j+5247uΔt8Δx2hΔtΔx2fi+1,j+124+uΔt8Δx+hΔtΔx2fi+2,j.(14)

The final descretized form of the QUICK approach in the FVM, valid for positive and negative flow directions, can be derived by combining equations (11) and (14) above.

ψ1fi2,j+1+ψ2fi1,j+1+ψ3fi,j+1+ψ4fi+1,j+1+ψ5fi+2,j+1
(15) =η1fi2,j+η2fi1,j+η3fi,j+η4fi+1,j+η5fi+2,j.(15)

Let r=ΔtΔx2. Then, the coefficients are listed as follow:

(16) ψ1=α124,ψ2=1α18+α524,ψ3=4124,ψ4=1α524+α18,ψ5=1α124,η1=α124+rhPΔ8,η2=α524+rh7PΔ8+rh+1α18+rh3PΔ8,η3=α4124rh3PΔ82rh+1α4124+rh3PΔ8+rh,η4=α18rh3PΔ8+rh+1α524rh7PΔ82rh,η5=1α124+rhPΔ8+rh(16)

where PΔ=uΔxh is the cell Peclet number, α=1 for quadratic upwind approach (u>0) and α=0 for quadratic downwind approach (u<0). Nodes 1, 2 and n all need specific handling when discretizing a governing equation over them because they are all impacted by the presence of domain boundaries. At the boundary node 1, f is given at the west face (f1Δx2,j = fL,j), but there is no west (i1) node to calculate fi+Δx2,j at the east face in eq. (4). Leonard (1979) proposed a linear extrapolation to establish a ‘mirror’ node at a distance Δx2 from the west of the physical boundary in order to solve this issue [Citation52]. This is seen in .

Figure 2. Mirror node treatment at node 1.

Figure 2. Mirror node treatment at node 1.

The linearly extrapolated value at the mirror node is shown below:

(17) fA,j=2fL,jf1,j.(17)

For node 1, the west face f1Δx2 is coincides with the left boundary of the physical domain.

(18) f1Δx2,j=fL,j.(18)

The extrapolation to the ‘mirror’ node has given us the required (i1) node for the formula (4) that calculates fi+Δx2,j at the east face of control volume 1:

(19) f1+Δx2,j=38f2,j+78f1,j28fL,j.(19)

The east face of node 1 and the west face of node 2 must approximate each other equally because the peculiarity of the FVM is to guarantee the conservation of variables employing a consistent expression for a shared interface within two adjacent CVs:

(20) f2Δx2,j=f1+Δx2,j=38f2,j+78f1,j28fL,j.(20)

Substituting i=2 in eq. (4), to evaluate the east face of node 2:

(21) f2+Δx2,j=38f3,j+68f2,j18f1,j.(21)

For node n, the east face fn+Δx2,j is given by:

(22) fn+Δx2,j=fR,j.(22)

The west face of node n can be evaluate from eq. (6) by substituting i=n.

(23) fnΔx2,j=38fn,j+68fn1,j18fn2,j.(23)

At the west face, the diffusive flux is given as follow:

(24) fxxLΔx2,j=9f1,j8fL,jf2,j3Δx+OΔx3.(24)

At the east face, the diffusive flux is given by:

(25) fxxR+Δx2,j=8fR,j9fn,j+fn1,j3Δx+OΔx3.(25)

At node 1, the descretised equation has the following form:

(26) 1387uΔt8Δx4hΔtΔx2f1,j+183uΔt8Δx+4hΔt3Δx2f2,j+14+5uΔt4Δx+8hΔt3Δx2fL,j(26)
=18f2,j+1+138f1,j+1+14fL,j+1.

At node 2, the descretised equation has the following form:

(27) 183uΔt8Δx+hΔtΔx2f3,j+41243uΔt8Δx2hΔtΔx2f2,j+28+uΔtΔx+hΔtΔx2f1,j+112uΔt4ΔxfL,j(27)
=28f1,j+1+4124f2,j+1+18f3,j+1112fL,j+1.

Similarly at node n, the descretised equation has the following form:

(28) 358+3uΔt8Δx4hΔtΔx2fn,j+68+6uΔt8Δx+4hΔt3Δx2fn1,j+18uΔt8Δxfn2,j(28)
=13fR,j+1+3524fn,j+1+624fn1,j+1124fn2,j+113uΔtΔx+8hΔt3Δx2fR,j.

3. Assessment of the QUICK scheme

Since the approach always uses a quadratic interpolation between two bracketing nodes and an upstream node to get the cell face values of fluxes and is therefore conservative. The Taylor series truncation error accuracy of the method is third-order on a uniform mesh since this depends on a quadratic function (see the details in the Appendix section). Therefore, it is more accurate than other differencing schemes. The scheme is based on two upstream nodes and one downstream node, so it has transportiveness. Since the presence of negative main coefficients can make our scheme shown above unstable, it has been reformulated in the method of deferred correction that alleviates stability problems. In order to retain the positive main coefficients, this technique requires introducing problematic negative main coefficients into the source term. For a quadratic upwind approach, rewrite eqs. (4) and (6), in the following form:

(29) fi+Δx2,j=fi,j+fa1,(29)
(30) fiΔx2,j=fi1,j+fb1,(30)

where fa1=38fi+1,j14fi,j18fi1,j, and fb1=38fi,j14fi1,j18fi2,j.

Similarly, for a quadratic downwind approach, we have:

(31) fi+Δx2,j=fi+1,j+fa2,(31)
(32) fiΔx2,j=fi,j+fb2,(32)

where fa2=14fi+1,j+38fi,j18fi+2,j, and fb2=14fi,j+38fi1,j18fi+1,j.

Allocate fa1, fb1, fa2 and fb2 to the source term, and we obtain positive main coefficients. This technique has an advantage that the coefficients are always positive and now fulfill the criteria for conservativeness, boundedness, and transportiveness. The correction of the key coefficients is deferred by one iteration as the source term is computed at the nth iteration using values known at the end of the (n1)th iteration.

3.1. Stability and convergence analysis

Our aim is to find the stability region for the QUICK approach of the FVM. The von Neumann stability method [Citation53] is used for analysing the stability of the proposed scheme.

Theorem 1.

Let fi,j be the numerical approximation of the exact solution fˆi,j. Then the scheme (15) is conditionally stable over a finite domain and 3in1,0jm1.

Proof.

In Fourier analysis, the amplification factor of error is represented by ei,j=eujΔteδβiΔx, β is the wave number associated with wavelength Γ=2π|β| and δ=1. Following the von Neumann stability analysis procedure, the amplification factor can be evaluated for our scheme (15). Defining θ=βΔx, the numerical stability of a scheme requires that the amplification factor over one complete time step must satisfy the von Neumann stability condition for all possible values of θ.

ψ1eu(j+1)Δte(i2)δθ+ψ2eu(j+1)Δte(i1)δθ+ψ3eu(j+1)Δteiδθ+ψ4eu(j+1)Δte(i+1)δθ+ψ5eu(j+1)Δte(i+2)δθ
=η1eujΔte(i2)δθ+η2eujΔte(i1)δθ+η3eujΔteiδθ+η4eujΔte(i+1)δθ+η5eujΔte(i+2)δθ.

Simplification and collecting like-terms gives:

(33) euΔt=η1e2δθ+η2eδθ+η3+η4eδθ+η5e2δθψ1e2δθ+ψ2eδθ+ψ3+ψ4eδθ+ψ5e2δθ.(33)

For a positive flow direction, substitute α=1 into the coefficients found in eq. (16). Then, we have:

(34) euΔt=η1+η3cosθ+δη3η1sinθ+η2+η4cos2θ+δsin2θψ1+ψ3cosθ+δψ3ψ1sinθ+ψ2+ψ4cos2θ+δsin2θ.(34)

For further simplification of coefficients, equation (34) can be reduced to the following form:

euΔt=1a+δbc+δd,

where

a=rh4+PΔ2cosθ5PΔ483PΔ4cos2θ,b=rhsinθ8+PΔ4+3PΔ84cosθ
c=53cosθ+524+18cos2θ,d=14sinθ7+cosθ.

It is clear that, for any complex number z, we have z2=zz. Thus,

euΔt2=1a+δbc+δd2=1a+δbc+δd1a+δbc+δd=12ac+bdc2+d2a2+b2c2+d2.

For numerical stability, we have euΔt1. Then

2ac+bdc2+d2a2+b2c2+d20a2+b22ac+2bd,
rh4+PΔ2cosθ5PΔ483PΔ4cos2θ2+rhsinθ8+PΔ4+3PΔ84cosθ2
24+PΔ2cosθ5PΔ483PΔ4cos2θ53cosθ+524+18cos2θ
+2sinθ8+PΔ4+3PΔ84cosθ14sinθ7+cosθ.

where r=ΔtΔx2, and PΔ=uΔxh is called the cell Peclet number. Taking the wavelength θ=π or β=πΔx, we have the following stability requirement of this scheme.

(35) r4+PΔ83h4PΔ2.(35)

and hence, the proposed scheme is conditionally stable. This completes the proof. For the negative flow direction, substitute α=0 into the coefficients found in eq. (16) and follow the same procedures above, we arrived to the schem’s stability result.

Theorem 2.

Let fˆi,j be analytic solution and fi,j be the solution approximated by our scheme (15). Then, for every 1in and 0jm we have the estimates:

(36) fˆi,jfi,jvΔ x3+Δ t,(36)

where v is a positive constant.

Proof.

The approximation gives an absolute error Ej=|fˆi,jfi,j|, where Ej=e1j,e2j,e3j,,enj and from the starting condition we have E0=0. From eq. (15), the error equation yields

ψ1ei2,j+ψ2ei1,j+ψ3ei,j+ψ4ei+1,j+ψ5ei+2,j
(37) =η1ei2,j1+η2ei1,j1+η3ei,j1+η4ei+1,j1+η5ei+2,j1+OΔx3+Δt.(37)

In matrix form, (37) can be formatted as

(38) AEj=BEj1+OΔx3+Δtα,(38)

where A=ψij,1i,jn is a diagonally dominant matrix which elements are the coefficients in (16) and B=ηij,1i,jn is also a diagonally dominant matrix which elements are the coefficients in (16). In simple form, (38) has the following form:

Ej=DEj1+d.

where α=1,1,,1T, and d=A1OΔx3+Δt. An iterating and noting that E0=0, we obtain:

E1=DE0+d=d,E2=DE1+d=D+1d,E3=DE2+d=D2+D+1d,Ej=Dj1+Dj2++D+1d.

Now, taking the matrix norm D∥≤γ and A1∥≤η, for some positive constants γ and η, we have:

Ej=Dj1+Dj2++D+1d,

With the help of triangle inequality, we have:

Dj1+Dj2++D+1d,
γj1+γj2++γ+1d,
=γj1γ1ηΔx3+Δt=vΔx3+Δt.

which completes the proof.

4. Numerical results and discussions

In this section, we introduce some numerical examples to clarify the effectiveness of our proposed scheme to approximate a convection-diffusion equation (1). Using the proposed scheme in the FVM for the convection-diffusion equation of the form (1), we calculate the property fx,t. The following examples have been solved numerically for the validation of our theoretical procedures. The approximated results are plotted with the help of MATLAB R2016a.

Example 1.

Consider a convection – diffusion equation (1). An exact solution is given in [27] as follow:

(39) f(x,t)=1+eπ2t/10sinπxt.(39)

The starting and boundary values are calculated directly from eq. (39) by substituting x=0, x=1, and t=0 respectively. displayed the comparison of maximum errors between a newly constructed scheme and a modified upwind differencing approach [Citation27] in the FVM for the convection dominance case with u=1 and h=0.1. From this table, it is clear that the proposed scheme gives less maximum error; this confirms that our approximation is more accurate as compared to the existing numerical scheme. In , the QUICK scheme result is compared with the exact solution of Example 1 for a convection dominant case with u=0.2, h=0.01 and x=0:0.01:1, t=0:0.004:1. The maximum absolute error produced by this scheme is 2.1607×107. As can be seen, the quadratic upwind differencing scheme is more accurate and in near-perfect agreement with the analytic result. Thus, it can be concluded that the quadratic upwind differencing scheme is effective for solving the convection-diffusion equation with constant convective and diffusive coefficients.

Figure 3. Exact solution with approximate result of example 1 at u=0.2, h=0.01.

Figure 3. Exact solution with approximate result of example 1 at u=0.2, h=0.01.

Table 1. Comparison of a new QUICK scheme and existing upwind approach in the FVM for convection dominance case with u = 1 and h = 0.1.

Example 2.

Consider a convection – diffusion equation (1). An exact solution is given in [27] as follow:

(40) f(x,t)=14t+1ex1ut2/h4t+1.(40)

The initial and boundary conditions are calculated from eq. (40) by putting t=0.5, and x=1, x=2, respectively.

In the case of convection dominance, depicts the comparison of our scheme and existing upwind approaches in the FVM taking the convection coefficient u=1 and the diffusion coefficient h=0.4. In the case of diffusion dominance, shows the comparison of QUICK scheme and existing upwind approaches in the FVM, taking the convection coefficient u=0.05 and the diffusion coefficient h=0.7. In both reported cases, the result obtained by the quadratic upwind differencing scheme is more accurate compared with the results obtained by the existing upwind schemes in the FVM. For the convection dominance case (u=1 and h=0.02), Example 2 is approximated using a quadratic upwind differencing scheme in the FVM and the result shown in at x1,2 and t0.5,1. is also approximated using a quadratic upwind differencing scheme of the FVM for the convection dominance case (u=0.7,h=0.02) at x1,2 and t0.5,1.

Figure 4. Mesh plot of solution of example 2 for a. u=1, h=0.02 and b. u=0.7, h=0.02.

Figure 4. Mesh plot of solution of example 2 for a. u=1, h=0.02 and b. u=0.7, h=0.02.

Table 2. Comparison of a QUICK approach and existing upwind techniques in the FVM in the case of convection dominance.

Table 3. Comparison of a new QUICK scheme and existing upwind approaches in the FVM taking u=0.05 and h=0.7 in case of diffusion dominance.

The 2D plot of the solution behaviour of Example 2 with different time levels is plotted in . In , the graph indicates approximate results in convection dominant case u=0.4 and h=0.04; while in , the graph indicates approximate results in diffusion dominant case u=0.01 and h=0.04 at different time levels. These two figures confirm that the increase of the time level for an approximate results using our proposed scheme to get close to the analytic solution.

Figure 5. Solutions to example 2 for a. u=0.4, h=0.04; b. u=0.01, h=0.04.

Figure 5. Solutions to example 2 for a. u=0.4, h=0.04; b. u=0.01, h=0.04.

Example 3.

Consider a convection – diffusion equation (1). The exact solution is found in [Citation27]:

(41) f(x,t)=14t+1ex1ut2/h4t+1.(41)

The starting and boundary values are computed from eq. (41) by substituting t=0, and x=0, x=2, respectively.

The 3D view of the convection-diffusion approximation over the computational domain x,t0,2×0,2 in the FVM of the QUICK scheme at different values of the convection and diffusion coefficients for numerical example 3 are plotted in . shows the numerical result to Example 3 for convection dominance case using a quadratic upwind differencing scheme in the FVM with different time levels. , shows the numerical solution to Example 3 for diffusion dominance case using a quadratic upwind differencing scheme in the FVM with different time levels. Both figures confirm that the increase of the time level for an approximate results using our proposed scheme to get close to the analytic solution.

Figure 6. Mesh plot of solution of example 3 for a. u=3.2, h=0.02 and b. u=5, h=0.01.

Figure 6. Mesh plot of solution of example 3 for a. u=3.2, h=0.02 and b. u=5, h=0.01.

Figure 7. Mesh plot of solution of example 3 for a. u=1.5, h=0.003 and b. u=2.5, h=0.002.

Figure 7. Mesh plot of solution of example 3 for a. u=1.5, h=0.003 and b. u=2.5, h=0.002.

Figure 8. Solutions to example 3 for a. convection dominance u=0.007, h=0.002 and b. diffusion dominance u=0.001, h=0.005.

Figure 8. Solutions to example 3 for a. convection dominance u=0.007, h=0.002 and b. diffusion dominance u=0.001, h=0.005.

Example 4.

Consider a convection – diffusion equation (1). The exact solution is given in [31] as follow

(42) fx,t=sinπxte2π2t.(42)

The starting and boundary values are computed from eq. (42) by substituting t=0, and x=1, x=2, respectively.

The mesh plot of the solution of Example 4 computed using QUICK scheme and the exact solution is drawn in at x1,2 and t0,1 for convection dominance case (u=0.5, h=0.07) gives maximum absolute error 1.0457×106. This shows that the new scheme provides excellent agreement with the analytic solution. In all tables and figures, the obtained results support our theoretical procedures. From all tables and figures above, the proposed quadratic upwind scheme gives a small maximum error; this indicates that our approximation is highly accurate as compared to the previous approximate techniques.

Figure 9. Exact solution with approximate result of example 4 at u=0.5, h=0.07.

Figure 9. Exact solution with approximate result of example 4 at u=0.5, h=0.07.

5. Conclusion

The convection-diffusion equation is one of the most important equation used to represent physical phenomena. Here, we study the approximate assessment of a quadratic upwind differencing approach in the FVM to approximate a convection-diffusion equation (1). In order to numerically approximate convection-diffusion equation with initial and boundary values, a quadratic upwind differencing approach in the FVM is proposed. With the consideration of positive and negative flow directions, new expressions for interface approximations have been obtained for the directional flow phenomenon, and using those approximations, our numerical approach was created with third-order accuracy in space. The temporal integration is approximated using the explicit theta method of first-order accuracy. The method’s stability has been examined, and it has been demonstrated that it is conditionally stable. The equations for different convective velocity (u) and diffusion coefficient (h) have been approximately calculated by this newly constructed finite volume approach. We successfully showed a numerical comparison of our scheme in the FVM with the previous modified upwind technique and an upwind technique of the FVM. Approximate values have been found using MATLAB R2016a software. From our discussions, we observed that the results of a quadratic upwind differencing scheme are almost indistinguishable from the exact solutions. The approximate values obtained by these numerical schemes show that our newly proposed scheme gives better results and is very close to the analytic result, so this technique gives an additional alternative for solving engineering and science issues. Future work will further investigate by including both Brownian and thermophoresis parameters to the given problem and aiming at further discussion of the scheme’s computational efficiency.

Acknowledgments

The authors express their sincere thanks to the editor and reviewers for their fruitful comments and suggestions that improved the quality of the manuscript.

Disclosure statement

The authors declare that they have no known competing financial interests.

Additional information

Funding

No funding was received for conducting this study.

References

  • E. Hernandez-Martinez, H. Puebla, F. Valdes-Parada, and J. Alvarez-Ramirez, Nonstandard finite difference schemes based on Green’s function formulations for reaction–diffusion–convection systems, Chem. Eng. Sci. 94 (2013), pp. 245–255. doi:10.1016/j.ces.2013.03.001.
  • J.D. Anderson and J. Wendt, Computational Fluid Dynamics, Vol. 206. Berlin, Heidelberg: Springer, 1995.
  • S. Rehman, N. Muhammad, M. Alshehri, S. Alkarni, S.M. Eldin, and N.A. Shah, Analysis of a viscoelastic fluid flow with Cattaneo–Christov heat flux and soret–Dufour effects, Case Stud. Therm. Eng. 49 (2023), pp. 103223. doi:10.1016/j.csite.2023.103223.
  • M.N. Ozisik, Heat Transfer: A Basic Approach, McGraw-Hill, New York, 1985.
  • N. Muhammad, S. Nadeem, and F.D. Zaman, Transmission of the thermal energy in a ferromagnetic nanofluid flow, Int. J. Mod. Phys. B. 36 (32) (2022). doi:10.1142/S0217979222502368
  • N. Naeem, D. Vieru, N. Muhammad, and N. Ahmed, Axial Symmetric Granular Flow Due to Gravity in a Circular Pipe, Symmetry 14 (10) (2022), pp. 1–12. doi:https://doi.org/10.3390/sym14102013.
  • J. Philibert, One and a half century of diffusion: Fick, Einstein, before and beyond, Diffus. Fundam 2 (2005), pp. .1.1–.1.10.
  • N.M. Buckman, The Linear Convection-Diffusion Equation in Two Dimensions. 18.303 Linear Partial Differential Equations. Cambridge: Massachusetts Institute of Technology, 2016, pp. 1–6.
  • M. Usman, A. Hussain, F.D. Zaman, and S.M. Eldin, Group invariant solutions of wave propagation in phononic materials based on the reduced micromorphic model via optimal system of Lie subalgebra, Results Phys 48 (2023), pp. 106413. doi:10.1016/j.rinp.2023.106413.
  • S. Rehman, A. Hussain, J.U. Rahman, N. Anjum, and T. Munir, Modified Laplace based variational iteration method for the mechanical vibrations and its applications, acta mechanica et automatica 16 (2) (2022), pp. 98–102. doi:10.2478/ama-2022-0012.
  • A. Hussain, A.H. Kara, and F.D. Zaman, An invariance analysis of the vakhnenko–parkes equation, Chaos Solitons Fractals 171 (2023), pp. 113423. doi:https://doi.org/10.1016/j.chaos.2023.113423.
  • A. Hussain, M. Usman, F.D. Zaman, and S.M. Eldin, Optical solitons with DNA dynamics arising in oscillator-chain of Peyrard–Bishop model, Results Phys 50 (2023), pp. 106586. doi:10.1016/j.rinp.2023.106586.
  • M. Usman, A. Hussain, and F.D. Zaman, Invariance analysis of thermophoretic motion equation depicting the wrinkle propagation in substrate-supported graphene sheets, Phys. Scr. 98 (9) (2023), pp. 095205. doi:https://doi.org/10.1088/1402-4896/acea46.
  • A. Hussain, M. Usman, F.D. Zaman, and S.M. Eldin, Symmetry analysis and invariant solutions of Riabouchinsky Proudman Johnson equation using optimal system of Lie subalgebras, Results Phys 49 (2023), pp. 106507. doi:10.1016/j.rinp.2023.106507.
  • M. Usman, A. Hussain, F.D. Zaman, I. Khan, and S.M. Eldin, Reciprocal bäcklund transformations and traveling wave structures of some non-linear pseudo-parabolic equations, Partial Differ. Equ. Appl. Math 7 (2023), pp. 100490. doi:10.1016/j.padiff.2023.100490.
  • M. Usman and F.D. Zaman, Lie symmetry analysis and conservation laws of non-linear (2+1) elastic wave equation, Arab J. Math 12 (1) (2022), pp. 265–276. doi:10.1007/s40065-022-00392-y.
  • H. Okamoto and J. Zhu, Some similarity solutions of the Navier-Stokes equations and related topics, Taiwanese J. Math 4 (1) (2000), pp. 65–103. doi:10.11650/twjm/1500407199.
  • F. Moukalled, The Finite Volume Method in Computational Fluid Dynamics, Vol. 113. Cham: Springer, 2016.
  • D. Causona, C. Mingham, and L. Qia, Introductory Finite Volume Methods for PDEs, Manchester Metropolitan University, Manchester, UK, 2011.
  • F. Moukalled, L. Mangani, and M. Darwish, The Finite Volume Method in Computational Fluid Dynamics, Vol. 6, Springer, Berlin/Heidelberg, Germany, 2016.
  • N. Muhammad and K.A.M. Alharbi, OpenFoam for computational hydrodynamics using finite volume method, Int. J. Mod. Phys. B. 37 (3) (2022). doi:10.1142/S0217979223500261
  • N. Muhammad and N. Ullah, Simulation of flow on the hydroelectric power dam spillway via OpenFOAM, Eur. Phys. J. Plus. 136 (11) (2021). doi:10.1140/epjp/s13360-021-02128-x
  • N. Muhammad, M.M.A. Lashin, and S. Alkhatib, Simulation of turbulence flow in OpenFOAM using the large eddy simulation model, Proc. Inst. Mech. Eng, Part E: J. Process Mech. Eng. 236 (5) (2022), pp. 2252–2265. doi:10.1177/09544089221109736.
  • N. Muhammad, S. Ullah, and U. Khan, Energy recovery mechanism of air injection in higher methane cut reservoir, Int. J. Mod. Phys. B. 36 (24) (2022). doi:10.1142/S0217979222501533
  • N. Muhammad, F.D. Zaman, and M.T. Mustafa, OpenFOAM for computational combustion dynamics, Eur. Phys. J. Spec. Top 231 (13–14) (2022), pp. 2821–2835. doi:10.1140/epjs/s11734-022-00606-6.
  • N. Muhammad, Finite volume method for simulation of flowing fluid via OpenFOAM, Eur. Phys. J. Plus. 136 (10) (2021). doi:10.1140/epjp/s13360-021-01983-y
  • A. Hussain, Z. Zheng, and E.F. Anley, Numerical analysis of convection–diffusion using a modified upwind approach in the finite volume method, Math. 8 (1869) (2020), pp. 1–21. doi:10.3390/math8111869.
  • Z.F. Tiana and P.X. Yua, A high-order exponential scheme for solving 1D unsteady convection–diffusion equations, J. Comput. Appl. Math. 235 (8) (2011), pp. 2477–2491. doi:10.1016/j.cam.2010.11.001.
  • T. Linss, Uniform point-wise convergence of an upwind finite volume method on layer-adapted meshes, Zeitschrift für Angewandte Mathematik und Mechanik 82 (4) (2002), pp. 247–254. doi:10.1002/1521-4001(200204)82:4<247:AID-ZAMM247>3.0.CO;2-9.
  • M.R. Patel and J.U. Pandya, A research study on unsteady state convection diffusion flow with the adoption of the finite volume technique, J. Appli. Math. Comput. Mech 20 (4) (2021), pp. 65–76. doi:10.17512/jamcm.2021.4.06.
  • R. Edwan, S. Al-Omari, M. Al-Smadi, S. Momani, and A. Fulga, A new formulation of finite difference and finite volume methods for solving a space fractional convection–diffusion model with fewer error estimates, Adv. Differ. Equ 2021 (1) (2021), pp. 510. doi:https://doi.org/10.1186/s13662-021-03669-2.
  • ] R. Saadeh, Numerical solutions of fractional convection-diffusion equation using finite-difference and finite-volume schemes, J. Math. Comput. Sci. 11, 6 (2021), pp. 1927–5307. doi:10.28919/jmcs/6658
  • M.R. Patel and J.U. Pandya, Numerical study of a one and two-dimensional heat flow using finite volume, Mater. Today Proc. 10.1016/j.matpr.2021.04.413.
  • J. Nakao, J. Chen, and J.M. Qiu, An Eulerian-Lagranian Runge-Kutta finite volume (EL-RK-FV) method for solving convection and convection-diffusion equation, J. Comput. Phys. 470 (2022), pp. 111589. doi:10.1016/j.jcp.2022.111589.
  • C. Chainais-Hillairet and M. Herda, Large-time behaviour of a family of finite volume schemes for boundary-driven convection-diffusion equations, IMA J. Numer. Anal 40 (4) (2020), pp. 2473–2504. doi:10.1093/imanum/drz037.
  • I. Asmouh, M. El-Amrani, M. Seaid, and N. Yebari, A conservative semi-Lagrangian finite volume method for convection–diffusion problems on unstructured grids, J. Sci. Comput 85 (1) (2020), pp. 11. doi:https://doi.org/10.1007/s10915-020-01316-8.
  • M. Xu, A finite volume scheme for unsteady linear and nonlinear convection-diffusion-reaction problems, Int. Commun. Heat Mass Transf 139 (2022), pp. 106417. doi:10.1016/j.icheatmasstransfer.2022.106417.
  • E.F. Anley and Z. Zheng, Finite difference approximation method for a space fractional convection-diffusion equation with variable coefficients, Symmetry 12 (3) (2020), pp. 485. doi:10.3390/sym12030485.
  • H.F. Peng, K. Yang, M. Cui, and X.W. Gao, Radial integration boundary element method for solving two-dimensional unsteady convection-diffusion problem, Eng. Anal. Bound. Elem. 102 (2019), pp. 39–50. doi:10.1016/j.enganabound.2019.01.019.
  • V. Aswin, A. Awasthi, and C. Anu, A comparative study of numerical schemes for convection-diffusion equation, Procedia. Eng 127 (2015), pp. 621–627. doi:10.1016/j.proeng.2015.11.353.
  • M. Xu, A modified finite volume method for convection-diffusion-reaction problems, Int. J. Heat Mass Tran. 117 (2018), pp. 658–668. doi:10.1016/j.ijheatmasstransfer.2017.10.003.
  • M.T. Xu, A type of high order schemes for steady convection-diffusion problems, Int. J. Heat Mass. Transf. 107:1044–1053, (2017).
  • R. Mohammadi, Exponential B–Spline solution of convection-Diffusion equations, Appl. Math. 4 (6) (2013), pp. 933–944. doi:10.4236/am.2013.46129.
  • B.P. Leonard, A stable and accurate convective modelling procedure based on quadratic upstream interpolation, Comput. Methods Appl. Mech. Eng. 19 (1) (1979), pp. 59–98. doi:10.1016/0045-7825(79)90034-3.
  • J. Fuhrmann, M. Ohlberger, and C. Rohde, Finite Volumes for Complex Applications VII: Methods and Theoretical Aspects, Vol. 77, Springer; FVCA, Berlin, Germany, 2014.
  • J. Mencinger, Numerical simulation of melting in two-dimensional cavity using adaptive grid, J. Comput. Phys. 198 (1) (2004), pp. 243–264. doi:10.1016/j.jcp.2004.01.006.
  • E.J. Sellountos, A single domain velocity - vorticity Fast Multipole Boundary Domain Element Method for three dimensional incompressible fluid flow problems, Eng. Anal. Bound. Elem. 114 (2020), pp. 74–93. doi:10.1016/j.enganabound.2020.02.006.
  • P. Pathmanathan, M.O. Bernabeu, R. Bordas, J. Cooper, A. Garny, J.M. Pitt-Francis, J.P. Whiteley, and D.J. Gavaghan, A numerical guide to the solution of the bidomain equations of cardiac electrophysiology, Prog. Biophys. Mol. Biol. 102 (2–3) (2010), pp. 136–155. doi:10.1016/j.pbiomolbio.2010.05.006.
  • Y. Coudière, C. Pierre, O. Rousseau, and R. Turpault, A 2D/3D discrete duality finite volume scheme, Application to ECG simulation, Int. J. Finite 6 (2009), pp. 1–24.
  • P.R. Johnston, A finite volume method solution for the bidomain equations and their application to modelling cardiac ischaemia, Comput. Methods Biomech. Biomed. Eng. 13 (2) (2010), pp. 157–170. http://dx.doi.org/10.1080/10255840903067072
  • T. Munir, Analysis of coupling interface problems for bi-domain diffusion equations, 2020 Ph.D. thesis.
  • H.K. Versteeg and W. Malalasekera, An Introduction to Computational Fluid Dynamics: The Finite Volume Method, Pearson Education, Edinburgh, UK, 2007. www.pearsoned.co.uk/versteeg.
  • R.D. Richtmyer and K.W. Morton, Difference Methods for Initial-Value Problems, Intencience, New York, 1967.
  • G.G. Botte, J.A. Ritter, and R.E. White, Comparison of finite difference and control volume methods for solving differential equations, Comput. Chem. Eng. 24 (12) (2000), pp. 2633–2654. doi:10.1016/S0098-1354(00)00619-0.

Appendix

The quadratic upwind differencing scheme in terms of the Taylor series truncation error is third-order accuracy, and its expansion about the east face fi+Δx2,j of the ith control volume gives:

(A1) fi+1,j=fi+Δx2,j+12Δxfxi+Δx2,j+1212Δx222fx2i+Δx2,j+OΔx3.(A1)
(A2) fi,j=fi+Δx2,j12Δxfxi+Δx2,j+1212Δx222fx2i+Δx2,j+OΔx3.(A2)
(A3) fi1,j=fi+Δx2,j32Δxfxi+Δx2,j+1232Δx222fx2i+Δx2,j+OΔx3.(A3)

If we add together 38×eq. (A1) +68×eq. (A2)18×eq. (A3) we obtain:

(A4) fi+Δx2,j=38fi+1,j+68fi,j18fi1,j+OΔx3.(A4)

and eq. (A1)eq. (A2) gives:

(A5) fxi+Δx2,j=fi+1,jfi,jΔx+OΔx3.(A5)

Taylor series expansion about the west face fiΔx2,j of the ith control volume gives:

(A6) fi,j=fiΔx2,j+12ΔxfxiΔx2,j+1212Δx222fx2iΔx2,j+OΔx3.(A6)
(A7) fi1,j=fiΔx2,j12ΔxfxiΔx2,j+1212Δx222fx2iΔx2,j+OΔx3.(A7)
(A8) fi2,j=fiΔx2,j32ΔxfxiΔx2,j+1232Δx222fx2iΔx2,j+OΔx3.(A8)

If we add together 38× eq. (A6) +68× eq. (A7)18×eq. (A8) we obtain:

(A9) fiΔx2,j=38fi,j+68fi1,j18fi2,j+OΔx3.(A9)

and eq. (A6)eq. (A7) gives:

(A10) fxiΔx2,j=fi,jfi1,jΔx+OΔx3.(A10)