Next Article in Journal / Special Issue
Modified Hybrid Method with Four Stages for Second Order Ordinary Differential Equations
Previous Article in Journal
Weak Solutions to a Fluid-Structure Interaction Model of a Viscous Fluid with an Elastic Plate under Coulomb Friction Coupling
Previous Article in Special Issue
Numerical Solution of Bending of the Beam with Given Friction
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Sixth-Order Combined Compact Finite Difference Scheme for the Numerical Solution of One-Dimensional Advection-Diffusion Equation with Variable Parameters

Department of Civil Engineering, Pamukkale University, Denizli 20160, Turkey
Mathematics 2021, 9(9), 1027; https://doi.org/10.3390/math9091027
Submission received: 16 April 2021 / Revised: 26 April 2021 / Accepted: 28 April 2021 / Published: 1 May 2021
(This article belongs to the Special Issue Numerical Analysis and Scientific Computing)

Abstract

:
A high-accuracy numerical method based on a sixth-order combined compact difference scheme and the method of lines approach is proposed for the advection–diffusion transport equation with variable parameters. In this approach, the partial differential equation representing the advection-diffusion equation is converted into many ordinary differential equations. These time-dependent ordinary differential equations are then solved using an explicit fourth order Runge–Kutta method. Three test problems are studied to demonstrate the accuracy of the present methods. Numerical solutions obtained by the proposed method are compared with the analytical solutions and the available numerical solutions given in the literature. In addition to requiring less CPU time, the proposed method produces more accurate and more stable results than the numerical methods given in the literature.

1. Introduction

The transport of solutes by water takes place in a large variety of environmental, agricultural, and industrial conditions. An accurate prediction of the pollutant transport is crucial to the effective management of these systems [1]. In the deterministic approach with constant transport parameters with respect to time and position the advection-diffusion equation (ADE) is linear and explicit closed-form solutions can generally be derived. Because of the large variability of flow and transport properties in the field, the often transient nature of the flow regime, and the non-ideal nature of applicable initial and boundary conditions, the usefulness of analytical solutions is often limited and numerical methods may be needed [2].
A variety of numerical methods have been proposed for solving ADE, such as the method of characteristics [3,4,5,6,7,8,9], the finite difference method [10,11,12,13,14,15,16,17,18,19], the finite element method [20,21,22,23], the differential quadrature method [24,25], the Lattice Boltzman method [26], and the meshless method [27,28,29,30]. In these studies, solutions of the ADE with constant parameters have been obtained. However, field and laboratory scale experiments indicate that the dispersivity in subsurface transport problems may be space- and time-dependent [31,32,33,34,35].
Several numerical solutions of the ADE with variable parameters have been proposed in the literature. A numerical solution for one-dimensional transport of conservative and non-conservative pollutants in an open channel with steady unpolluted lateral inflow uniformly distributed over the whole length of the channel was presented by Ahmad [36]. In Ahmad [36], the flow velocity was considered to be proportional to the distance and the diffusion parameter proportional to the square of velocity to account for the lateral inflow into the channel. The governing equation was converted into an equation with constant parameters using a transformation approach. The transformed equation was then solved using a cubic spline interpolation and the Crank-Nicolson finite difference scheme for advection and diffusion parts, respectively. The computed results were compared with the analytical solution for a continuous injection of the pollutant at the upstream boundary. Ahmed [37] developed a finite difference scheme based on a mathematical combination of the Siemieniuch and Gradwell approximation of time and the Dehghan’s approximation of the space variable. The author stated that the results were compared with analytical solutions and showed a good agreement. Savović and Djordjevich [38] proposed an explicit finite difference method for the numerical solution of the one-dimensional ADE with variable parameters in semi-infinite media. The continuous point source of uniform nature was considered at the origin of the medium. Savović and Djordjevich [39] then solved the same equation with a uniform pulse type input condition and the initial solute concentration that decreased with distance. In both studies, numerical solutions were obtained using the first-order explicit time integration approach and results were compared with analytical solutions reported in the literature. Gharehbaghi [40] used the differential quadrature method to obtain the numerical solution of the ADE with variable parameters in the semi-infinite domain. Numerical solutions were obtained using the first-order explicit and implicit time integration approaches. To examine the accuracy and the efficiency of the suggested explicit and implicit differential quadrature approaches, obtained solutions were compared with solutions of the finite difference method. The author stated that numerical predictions of the implicit form gave better results than the explicit one. Gharehbaghi [41] used the third- and fifth-order finite volume schemes [42] to solve a time-dependent, one-dimensional ADE with variable parameters in a semi-infinite domain. Numerical solutions were obtained using the first-order explicit time integration approach. The results of the two schemes were compared with the performance of the QUICK scheme [43]. The author stated that numerical predictions of the fifth-order finite volume scheme gave better results than the third-order finite volume and the QUICK schemes.
As can be seen from the afore-mentioned studies, low-order time integration schemes have been used in solving the ADE with variable parameters. To improve the accuracy of numerical solutions, it is required to use higher-order schemes in both time and space. The method of lines (MOL) is a well-established numerical procedure where the spatial derivatives in the partial differential equation (PDE) are approximated algebraically. Thanks to the MOL approach, a PDE system is converted into an ordinary differential equation (ODE) system. This ODE system is then integrated using standard numerical integration routines. Important variations of the MOL are possible. For example, the PDE spatial derivatives can be approximated using finite difference, finite element, finite volume, weighted residual method, and spectral method [44]. In this study, we propose another variation of the MOL approach for solving ADE with constant and variable parameters. Spatial derivatives in the proposed MOL approach are approximated using a sixth-order combined compact difference scheme. The explicit fourth order Runge–Kutta method (ERK4) is used as the numerical integration routine in the MOL approach.

2. Advection-Diffusion Equation

Solute transport through a medium is described using a PDE of the parabolic/hyperbolic type. It is derived on the principle of conservation of mass and Fick’s laws of diffusion. This equation is usually known as the ADE. The one-dimensional ADE may be written in subscript notation as [45]:
C t = ( D C x ) x ( U C ) x ,
where C is the solute concentration, D is the diffusion parameter and U is the flow velocity at a position x along the longitudinal direction at time t. In Equation (1), D and U can be rewritten as:
D = D 0 g 1 ( x ,   t ) ,                 U = U 0 g 2 ( x , t ) ,
In the above equation, D 0 and U 0 may be referred to as the initial diffusion parameter and the uniform velocity, respectively. D 0 and U 0 are constants whose dimensions depend upon the expressions g 1 ( x , t ) and g 2 ( x , t ) . The initially solute-free state of the semi-infinite medium implies the following initial condition:
C ( x , 0 ) = 0 ,           x 0 ,
Because a continuous input concentration is introduced at the origin, whereas the concentration gradient at infinity is assumed to be zero, the following boundary conditions are obtained:
C ( 0 , t ) = C 0 ,     C t ( x , t ) = 0 ,         x L ,     t > 0 ,

3. Numerical Method

The numerical solution technique that we consider in this study is based on the sixth- order combined compact finite difference and the MOL approach. Detailed information and discussions about these methods are given in the following sub-sections.

3.1. Combined Compact Finite Difference Scheme

Combined compact difference (CCD) schemes are high accuracy methods, where first and second derivatives are evaluated simultaneously utilizing the Hermitian polynomial technique, as discussed in [46,47,48,49,50]. Since these methods provide first and second derivatives simultaneously, one expects an increased accuracy and economy of operations from these methods.
The analysis of the CCD schemes by depicting scale resolution [51,52] has been augmented by properties related to phase and dispersion errors represented by numerical group velocity and phase speed, and a new CCD scheme has been proposed in Sengupta et al. [48], which has been termed as the NCCD scheme.
Consider a domain with N equidistant points with a spacing h, on which a general function f ( x , t ) is defined. The NCCD scheme is used to simultaneously evaluate the first and second spatial derivatives, indicated by primes as ( f j ,   f j ) , which are evaluated at the spatial location ( x j ) , from the following implicit equations for interior nodes, in terms of the function ( f j ) values [46,48,49]:
For j = 1 and j = 2 :
f 1 = 1 2 h   ( 3 f 1 + 4 f 2 f 3 ) ,
f 1 = 1 h 2   ( f 1 2 f 2 + f 3 ) ,
f 2 = 1 h [ ( 2 γ 1 3 1 3 ) f 1 ( 8 γ 1 3 + 1 2 ) f 2 + ( 4 γ 1 + 1 ) f 3 ( 8 γ 1 3 + 1 6 ) f 4 + 2 γ 1 3 f 5 ] ,
f 2 = 1 h 2   ( f 1 2 f 2 + f 3 ) ,
For j = 3 to ( N 2 ) :
7 16 ( f j + 1 + f j 1 ) + f j h 16 ( f j + 1 + f j 1 ) = 15 16 h   ( f j + 1 + f j 1 ) ,
9 8 h ( f j + 1 f j 1 ) 1 8 ( f j + 1 + f j 1 ) + f j = 3 h 2   ( f j + 1 2 f j + f j 1 ) ,
For j = ( N 1 ) to N :
f N 1 = 1 h [ ( 2 γ 2 3 1 3 ) f N ( 8 γ 2 3 + 1 2 ) f N 1 + ( 4 γ 2 + 1 ) f N 2 ( 8 γ 2 3 + 1 6 ) f N 3 + 2 γ 2 3 f N 4 ] ,
f N 1 = 1 h 2   ( f N 2 f N 1 + f N 2 ) ,
f N = 1 2 h   ( 3 f N 4 f N 1 + f N 2 ) ,
f N = 1 h 2   ( f N 2 f N 1 + f N 2 ) ,
with γ 1 = 0.025 and γ 2 = 0.09 , are proposed by Sengupta [53] for better global numerical properties in the domain.
Multiplicative constants in Equations (6) and (7), are fixed by matching the Taylor series expansion coefficients up to the sixth-order. Thus, we have a complete linear algebraic system for evaluating the first and second derivatives. Equation (5) are used for j = 1 and Equation (8) are used for j = N . A full-domain spectral analysis [54] for individual derivatives is performed for the CCD schemes to solve non-periodic problems. For the purpose of this analysis, we can write Equations (5)–(8) as:
A 1 f + B 1 f = C 1 f ,
A 2 f + B 2 f = C 2 f ,
By decoupling these two simultaneous linear algebraic equations we get [48,53]:
f = 1 h ( D 1 f ) ,
f = 1 h 2 ( D 2 f ) ,
where
D 1 = ( A 1 B 1 B 2 1 A 2 ) 1 ( C 1 B 1 B 2 1 C 2 ) h ,
D 2 = ( B 2 A 2 A 1 1 B 1 ) 1 ( C 2 A 2 A 1 1 C 1 ) h 2 .
More details of this global spectral analysis for CCD scheme is available in Sengupta and Bhaumik [53].

3.2. Time Integration

The method of lines (MOL) is a procedure whereby one or more partial differential equations (PDEs) are reduced to a system of ordinary differential equations (ODEs) in time by approximating the spatial derivatives using standard approaches and then integrating in time using an ODE code [55]. The MOL consists of two steps. In the first step, partial differential equations are converted into a system of time-dependent ordinary differential equations by replacing spatial derivatives with any numerical schemes. In the second step, the resulting system of ODEs is numerically integrated in time using any numerical integration rule [56]. When the MOL approach is applied to Equation (1), the time-dependent initial value problem is established as follows:
d C j d t = θ ( t , C j ) ,                     1 j N ,
The first-order system of ODEs given by Equation (22) requires N initial conditions, which are given by Equation (3). The expression θ ( t , C j ) is called the right-hand side function at the location x j and θ ( t , C ) can be written in the vector form as follows:
θ ( t , C ) = D C x x + ( D x U ) C x U x C ,
As seen above, we need the boundary conditions in the calculation of derivative terms within θ ( t , C ) and these are given by Equation (4). The solution of the ODE system given in Equation (22) can be easily obtained by any time-integration scheme. In the MOL approach, the differential matrices ( D 1   and   D 2 ) and the initial and boundary conditions are first passed to the function which is needed to calculate the numerical values of θ ( t , C ) . Note that, the numerical derivatives in θ ( t , C ) are calculated with high accuracy using the NCCD scheme. The resulting ODE system is then solved using the explicit fourth order Runge–Kutta (ERK4) scheme. The ERK4 scheme is one of the most popular general-purpose integrators as it is simple to implement and has good stability characteristics [57]. The formulation of the ERK4 scheme from time step m to m + 1 can be written as:
k 1 = θ ( t m , C m ) ,
k 2 = θ ( t m + 1 2 Δ t , C m + 1 2 Δ t k 1 ) ,
k 3 = θ ( t m + 1 2 Δ t , C m + 1 2 Δ t k 2 ) ,
k 4 = θ ( t m + Δ t , C m + Δ t k 3 ) ,
C m + 1 = C m + Δ t 6 ( k 1 + 2 k 2 + 2 k 3 + k 4 ) ,

4. Numerical Applications

In this section, numerical solution of the ADE with constant and variable parameters are tested on three numerical examples. In these examples, input parameters are C 0 = 1   k g / m 3 , D 0 = 0.0002   m 2 / s and U 0 = 0.01   m / s . The transport domain is divided into intervals of a constant length h = 1   m . Calculated concentration values are presented in longitudinal region 0 x L at different times. Since the Neumann boundary condition is valid at the right boundary point, a large enough domain length is selected in all examples, i.e., L = 100   m . The numerical examples presented in this study are closely related each other. The initial and boundary conditions, the domain lengths ( L ) , and the input parameters ( C 0 ,   D 0 ,   U 0 ) are the same. The parameters m and , which control only temporal and spatial change, and the total simulation times ( t ) are different. The main goal of this approach is to observe how the behavior of the problem changes when the velocity ( U ) and diffusion coefficients ( D ) are selected as variables. If the velocity and diffusion coefficients are fixed, the second and the third problem is reduced to the first problem.

4.1. ADE with Constant Parameters

The advection–diffusion equation is solved for a transport domain in which the velocity and the diffusion coefficient are constant, i.e., g 1 ( x , t ) = 1 and g 2 ( x , t ) = 1 . These conditions describe the propagation of a steep front, which is simultaneously subjected to the diffusion. The analytical solution of the ADE with constant parameters is given by Szymkiewicz [3]:
C ( x , t ) = C 0 2 [ e r f c ( x U 0 t 4 D 0 t ) + e x p ( U 0 x D 0 ) e r f c ( x + U 0 t 4 D 0 t ) ] ,
In this example, a numerical solution of an ADE with constant parameters and sharp behavior was performed. The analytical solution of this example has been calculated incorrectly by various researchers [3,20,22]. Therefore, the results of these studies were not used in the comparison. Recently, Irk et al. [58] was conducted a study, by approximating the spatial derivatives with cubic B-spline collocation scheme and extended cubic B-spline collocation. They were adopted the Crank–Nicolson scheme for the time integration. These two schemes will be referred to as CN-CBSC and CN-ECBSC.
L norm errors of the ERK4-NCCD, CN-CBSC, and CN-ECBSC schemes for different time steps at t = 3000   s are compared in Table 1. In this example, the Peclet number ( P e ) was selected as 5. The Courant numbers ( C r ) were calculated as 0.01, 0.05, 0.1, 0.2, 0.3, 0.6, and 1, respectively, when the time steps used were ordered from the smallest to the largest. As can be seen from Table 1, the ERK4-NCCD scheme is more accurate and more stable than the CN-CBSC and the CN-ECBSC schemes.
Table 2 shows the numerical results obtained with ERK4-NCCD at t = 3000 s using different time steps. It can be observed from Table 2, the ERK4-NCCD scheme it produces the more accurate solutions for Δ t = 1   s , 5   s , and 10   s and gives acceptable solutions for larger time steps. Table 3 shows the numerical solutions of ERK4-NCCD at t = 2000 s, 4000 s, and 6000 s using the time step Δ t = 1   s . As seen from the Table 3, there is almost no difference between the analytical and numerical solutions.
Numerical and analytical solutions of the ADE with constant parameters for Δ t = 1 s is presented in Figure 1. Figure 1 shows that the numerical results obtained for Δ t = 1 s coincide very well with the analytical solution. Table 2 shows the numerical results obtained with ERK4-NCCD at t = 3000 s using different time steps. It can be observed from Table 2, the ERK4-NCCD scheme it produces the more accurate solutions for Δ t = 1   s , 5   s , and 10   s and gives acceptable solutions for larger time steps.

4.2. ADE with Spatially Variable Parameters

In this example, we assumed that the diffusion coefficient is proportional to the square of the velocity, i.e., g 1 ( x , t ) = ( 1 + x ) 2 and g 2 ( x , t ) = 1 + x . Under this assumptions, the analytical solution of the ADE with spatially variable parameters is given by Kumar et al. [59] as follows:
C ( x , t ) = C 0 2 { ( 1 + x ) 1 e r f c [ l n ( 1 + x ) 2 D 0 t β t ] + ( 1 + x ) δ e r f c [ l n ( 1 + x ) 2 D 0 t + β t ] }
where β = ( ( U 0 + D 0 ) / ( 2 D 0 ) ) and δ = U 0 / ( D 0 ) .
In this example, the velocity and the diffusion coefficient increase depending on the value of . The numerical results at t = 3000 s for different time steps and = 0.005   m 1 are presented in Table 4. Table 4 shows that the ERK4-NCCD scheme was able to produce acceptable solutions for the maximum time step Δ t = 75 s. When the simulation parameters were increased, there was a slight decrease in the stability of the scheme according to the previous example. Certainly, this inference is also valid for other numerical methods. Figure 2 depicts the analytical and numerical solution of the ADE with spatially dependent parameters at t = 3000 s for Δ t = 1 s and = 0.02   m 1 . These results can be compared with the problem presented above for = 0 and Δ t = 1 s in Figure 1. When we compare Figure 1 and Figure 2, we observe that a change in leads to a significant change in the solution of the problem. As can be observed in Table 5, this change becomes more evident when we significantly increase . The L norm errors of the ERK4-NCCD scheme for solving ADE with different values at t = 3000 s are provided in Table 5.

4.3. ADE with Spatially and Temporally Variable Parameters

In this example, we assumed that the diffusion is proportional to square of the velocity parameter as considered second example. In addition, the diffusion and velocity are supposed to vary with temporally in the same proportion as considering g 1 ( x , t ) = g ( m , t ) ( 1 + x ) 2 and g 2 ( x , t ) = g ( m , t ) ( 1 + x ) . Under this assumptions, the analytical solution of the ADE with spatially and temporally variable parameters is given by Kumar et al. [59] as following:
C ( x , t ) = C 0 2 { ( 1 + x ) 1 e r f c [ l n ( 1 + x ) 2 D 0 T β T ] + ( 1 + x ) δ e r f c [ l n ( 1 + x ) 2 D 0 T + β T ] }
where T = 0 t g ( m , ϑ ) d ϑ , β = ( ( U 0 + D 0 ) / ( 2 D 0 ) ) , δ = U 0 / ( D 0 ) , g ( m , t ) = 1 s i n ( m t ) and ϑ is a dummy variable. In this example, the velocity and diffusion parameters are slightly increased depending on the m and .
L norm errors of the ERK4-NCCD scheme for m = 0.1   s 1 and different values at t = 1500   s can be found in Table 6. Increasing the value leads to increasing Courant number, C r = ( U Δ t ) / h . Therefore, we can face with stability problems for explicit time integration methods like ERK4. Referring to Table 6, it is seen that the stability range decreased for = 0.01   m 1 and = 0.02   m 1 . The numerical results of the ERK4-NCCD scheme with = 0.005   m 1 and Δ t = 1   s at t = 1500   s given in Table 7. As can be seen from the table, quite less L 2 and L values were obtained for all m values. Analytical and numerical solution of the ADE with spatially and temporally variable parameters at t = 2000   s for Δ t = 1   s , and = 0.05   m 1 are presented in Figure 3.

5. Conclusions

In this study, a combined compact finite difference scheme based on the method of lines is proposed for the numerical solution of the solute transport equation with variable parameters. In this approach, the partial differential equation representing the ADE is converted into many ordinary differential equations. These time-dependent ordinary differential equations are then solved using an explicit fourth order Runge–Kutta method. Numerical examples with sharp concentration fronts are presented to demonstrate the effectiveness of the method. In the first example, we compared the numerical results of the ERK4-NCCD scheme with CN-CBSC and CN-ECBSC. It is found that the ERK4-NCCD scheme is more accurate and more stable than the CN-CBSC and the CN-ECBSC schemes. It was observed that the numerical results obtained using small time steps and the analytical results coincided with each other. Moreover, acceptable results were obtained when large time steps were used as well. The ERK4-NCCD scheme gives excellent results for long time-integration, i.e., t = 2000 s, 4000 s, and 6000 s. In second example, the velocity and diffusion coefficients were slightly increased depending on the value of . When the parameters increased, there was a slight decrease in the stability of the scheme compared to the previous example. We observe that a small change in leads to a significant change in the solution of the problem. This change becomes more evident when we significantly increase the . In the third example, we observed that increasing value leads to increasing Courant number. Therefore, we can face with stability problems for explicit time integration methods like ERK4. As a result, the proposed method has produced more accurate and more stable results than CN-CBSC and the CN-ECBSC schemes in solving ADE with constant and variable parameters. The proposed scheme produces fairly accurate results for the C r 1 and the P e 5 . It is recommended to use compact upwind schemes for higher Peclet numbers. When the method given in Gurarslan (2014) is followed, the proposed scheme can be easily extended to the two- and three-dimensional ADE.

Funding

This study was supported by the Scientific and Technological Research Council of Turkey (TUBITAK) under the grant number 1059B191700986. I would like to thank TUBİTAK for providing me financial support for conducting this study and Jiri Jirka Simunek, who hosted me in the Department of Environmental Sciences, University of California at Riverside.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Acknowledgments

I would like to thank Tapan K. Sengupta from Indian Institute of Technology Kanpur for his support for the analysis of NCCD schemes.

Conflicts of Interest

The author declares no conflict of interest.

References

  1. Zoppou, C. Analytical solutions for advection and advection-diffusion equations with spatially variable coefficients. J. Hydraul. Eng. 1997, 123, 144–148. [Google Scholar] [CrossRef]
  2. Leij, F.J.; Skaggs, T.H.; Van Genuchten, M.T. Analytical Solutions for Solute Transport in Three-Dimensional Semi-infinite Porous Media. Water Resour. Res. 1991, 27, 2719–2733. [Google Scholar] [CrossRef]
  3. Szymkiewicz, R. Solution of the advection-diffusion equation using the spline function and finite elements. Commun. Numer. Methods Eng. 1993, 9, 197–206. [Google Scholar] [CrossRef]
  4. Holly, F.M.; Preissmann, A. Accurate calculation of transport in two dimensions. ASCE J. Hydraul. Div. 1977, 103, 1259–1277. [Google Scholar] [CrossRef]
  5. Tsai, T.-L.; Yang, J.-C.; Huang, L.-H. Characteristics Method Using Cubic–Spline Interpolation for Advection–Diffusion Equation. J. Hydraul. Eng. 2004, 130, 580–585. [Google Scholar] [CrossRef] [Green Version]
  6. Tsai, T.L.; Chiang, S.W.; Yang, J.C. Examination of characteristics method with cubic interpolation for advection-diffusion equation. Comput. Fluids 2006, 35, 1217–1227. [Google Scholar] [CrossRef]
  7. Bahar, E.; Gurarslan, G. Numerical Solution of Advection-Diffusion Equation Using Operator Splitting Method. Int. J. Eng. Appl. Sci. 2017, 9, 76–88. [Google Scholar] [CrossRef] [Green Version]
  8. Bahar, E.; Gurarslan, G. A semi-lagrangian scheme for advection-diffusion equation. Epic Ser. Eng. 2018, 3, 162–172. [Google Scholar]
  9. Bahar, E.; Korkut, S.O.; Cicek, Y.; Gurarslan, G. A numerical solution for advection-diffusion equation based on a semi-Lagrangian scheme. J. BAUN Inst. Sci. Technol. 2018, 20, 36–52. [Google Scholar] [CrossRef]
  10. Chen, Y.; Falconer, R.A. Advection-diffusion modelling using the modified QUICK scheme. Int. J. Numer. Methods Fluids 1992, 15, 1171–1196. [Google Scholar] [CrossRef]
  11. Mohebbi, A.; Dehghan, M. High-order compact solution of the one-dimensional heat and advection–diffusion equations. Appl. Math. Model. 2010, 34, 3071–3084. [Google Scholar] [CrossRef]
  12. Dehghan, M. Weighted finite difference techniques for the one-dimensional advection-diffusion equation. Appl. Math. Comput. 2004, 147, 307–319. [Google Scholar] [CrossRef]
  13. Sari, M.; Gürarslan, G.; Zeytinoǧlu, A. High-order finite difference schemes for solving the advection-diffusion equation. Math. Comput. Appl. 2010, 15, 449–460. [Google Scholar] [CrossRef] [Green Version]
  14. Gurarslan, G.; Karahan, H.; Alkaya, D.; Sari, M.; Yasar, M. Numerical solution of advection-diffusion equation using a sixth-order compact finite difference method. Math. Probl. Eng. 2013, 2013. [Google Scholar] [CrossRef] [Green Version]
  15. Gurarslan, G. Accurate Simulation of Contaminant Transport Using High-Order Compact Finite Difference Schemes. J. Appl. Math. 2014, 2014, 396738. [Google Scholar] [CrossRef]
  16. Mohamad, A.A. Spatially Fourth-Order-Accurate Scheme for Unsteady-Convection Problems. Numer. Heat Transf. Part B Fundam. 1997, 31, 373–385. [Google Scholar] [CrossRef]
  17. Rao, P.; Medina, M.A. A multiple domain algorithm for modeling two dimensional contaminant transport flows. Appl. Math. Comput. 2006, 174, 117–133. [Google Scholar] [CrossRef]
  18. Verma, P.; Hari Prasad, K.S.; Ojha, C.S.P. Maccormack Scheme Based Numerical Solution of Advection-Dispersion Equation. ISH J. Hydraul. Eng. 2006, 12, 27–38. [Google Scholar] [CrossRef]
  19. Man, C.; Tsai, C.W. A higher-order predictor–corrector scheme for two-dimensional advection–diffusion equation. Int. J. Numer. Methods Fluids 2008, 401–418. [Google Scholar] [CrossRef]
  20. Dag, İ.; Canivar, A.; Şahin, A. Taylor-Galerkin method for advection-diffusion equation. Kybernetes 2011, 40, 762–777. [Google Scholar] [CrossRef]
  21. Dhawan, S.; Kapoor, S.; Kumar, S. Numerical method for advection diffusion equation using FEM and B-splines. J. Comput. Sci. 2012, 3, 429–437. [Google Scholar] [CrossRef]
  22. Dag, I.; Irk, D.; Tombul, M. Least-squares finite element method for the advection-diffusion equation. Appl. Math. Comput. 2006, 173, 554–565. [Google Scholar] [CrossRef]
  23. Kadalbajoo, M.K.; Arora, P. Taylor-Galerkin B-Spline Finite Element Method for the One-Dimensional Advection-Diffusion Equation. Numer. Methods Partial. Differ. Equ. 2010, 26, 1206–1223. [Google Scholar] [CrossRef]
  24. Korkmaz, A.; Dag, I. Cubic B-spline differential quadrature methods for the advection-diffusion equation. Int. J. Numer. Methods Heat Fluid Flow 2012, 22, 1021–1036. [Google Scholar] [CrossRef]
  25. Korkmaz, A.; Dag, I. Quartic and quintic B-spline methods for advection-diffusion equation. Appl. Math. Comput. 2016, 274, 208–219. [Google Scholar] [CrossRef]
  26. Servan-Camas, B.; Tsai, F.T.C. Lattice Boltzmann method with two relaxation times for advection-diffusion equation: Third order analysis and stability analysis. Adv. Water Resour. 2008, 31, 1113–1126. [Google Scholar] [CrossRef]
  27. Zerroukat, M.; Djidjeli, K.; Charafi, A. Explicit and Implicit Meshless Methods for Linear Advection-Diffusion-Type Partial Differential Equations. Int. J. Numer. Meth. Eng. 2000, 48, 19–35. [Google Scholar] [CrossRef]
  28. Li, J.; Chen, Y.; Pepper, D. Radial basis function method for 1-D and 2-D groundwater contaminant transport modeling. Comput. Mech. 2003, 32, 10–15. [Google Scholar] [CrossRef]
  29. Askari, M.; Adibi, H. Numerical solution of advection–diffusion equation using meshless method of lines. Iran. J. Sci. Technol. Trans. A Sci. 2017, 41, 457–464. [Google Scholar] [CrossRef]
  30. Ciftci, E.; Avci, C.B.; Borekci, O.S.; Sahin, A.U. Assessment of advective- dispersive contaminant transport in heterogeneous aquifers using a meshless method. Environ. Earth Sci. 2012, 67, 2399–2409. [Google Scholar] [CrossRef]
  31. Aral, M.M.; Liao, B. Analytical Solutions for Two-dimensional Transport Equation with Time-dependent Dispersion Coefficients. J. Hydrol. Eng. 1996, 1, 20–32. [Google Scholar] [CrossRef]
  32. Gelhar, L.W.; Mantaglou, A.; Welty, C.; Rehfeldt, K.R. A Review of Field-Scale Physical Solute Transport Processes in Saturated and Unsaturated Porous Media; Electric Power Research Institute: Palo Alto, CA, USA, 1985. [Google Scholar]
  33. Gelhar, L.W.; Welty, C.; Rehfeldt, K.R. A critical review of data on field-scale dispersion in aquifers. Water Resour. Res. 1992, 28, 1955–1974. [Google Scholar] [CrossRef]
  34. Vanderborght, J.; Vereecken, H. Review of Dispersivities for Transport Modeling in Soils. Vadose Zone J. 2007, 6, 29. [Google Scholar] [CrossRef]
  35. Szymkiewicz, R. Numerical Modeling in Open Channel Hydraulics; Springer: Berlin/Heidelberg, Germany, 2010; Volume 106, ISBN 978-90-481-3673-5. [Google Scholar]
  36. Ahmad, Z. Numerical Solution for Advection-Diffusion Equation With Spatially Variable Coefficients. ISH J. Hydraul. Eng. 2000, 6, 46–54. [Google Scholar] [CrossRef]
  37. Ahmed, S.G. A Numerical Algorithm for Solving Advection-Diffusion Equation with Constant and Variable Coefficients. Open Numer. Methods J. 2012, 4, 1–7. [Google Scholar] [CrossRef] [Green Version]
  38. Savović, S.; Djordjevich, A. Finite difference solution of the one-dimensional advection-diffusion equation with variable coefficients in semi-infinite media. Int. J. Heat Mass Transf. 2012, 55, 4291–4294. [Google Scholar] [CrossRef]
  39. Savović, S.; Djordjevich, A. Numerical solution for temporally and spatially dependent solute dispersion of pulse type input concentration in semi-infinite media. Int. J. Heat Mass Transf. 2013, 60, 291–295. [Google Scholar] [CrossRef]
  40. Gharehbaghi, A. Explicit and implicit forms of differential quadrature method for advection–diffusion equation with variable coefficients in semi-infinite domain. J. Hydrol. 2016, 541, 935–940. [Google Scholar] [CrossRef]
  41. Gharehbaghi, A. Third- and fifth-order finite volume schemes for advection–diffusion equation with variable coefficients in semi-infinite domain. Water Environ. J. 2017, 31, 184–193. [Google Scholar] [CrossRef]
  42. Shu, C.-W. Essentially Non-Oscillatory and Weighted Essentially Non-Oscillatory Schemes for Hyperbolic Conservation Laws; Institute for Computer Applications in Science and Engineering, NASA Langley Research Center: Hampton, VA, USA, 1997.
  43. Leonard, B.P. A stable and accurate convective modelling procedure based on quadratic upstream interpolation. Comput. Methods Appl. Mech. Eng. 1979, 19, 59–98. [Google Scholar] [CrossRef]
  44. Schiesser, W.E.; Griffiths, G.W. A Compendium of Partial Differential Equation Models: Method of Lines Analysis with Matlab; Cambridge University Press: New York, NY, USA, 2009. [Google Scholar]
  45. Jaiswal, D.K.; Kumar, A.; Kumar, N.; Yadav, R.R. Analytical solutions for temporally and spatially dependent solute dispersion of pulse type input concentration in one-dimensional semi-infinite media. J. Hydro-Environ. Res. 2009, 2, 254–263. [Google Scholar] [CrossRef]
  46. Chu, P.C.; Fan, C. A Three-Point Combined Compact Difference Scheme. J. Comput. Phys. 1998, 140, 370–399. [Google Scholar] [CrossRef] [Green Version]
  47. Peyret, R.; Taylor, T.D. Computational Methods for Fluid Flow; Springer: New York, NY, USA, 1983. [Google Scholar]
  48. Sengupta, T.K.; Lakshmanan, V.; Vijay, V.V.S.N. A new combined stable and dispersion relation preserving compact scheme for non-periodic problems. J. Comput. Phys. 2009, 228, 3048–3071. [Google Scholar] [CrossRef]
  49. Sengupta, T.K.; Suman, V.K.; Singh, N. Solving Navier-Stokes equation for flow past cylinders using single-block structured and overset grids. J. Comput. Phys. 2010, 229, 178–199. [Google Scholar] [CrossRef]
  50. Zhou, Q.; Yao, Z.; He, F.; Shen, M.Y. A new family of high-order compact upwind difference schemes with good spectral resolution. J. Comput. Phys. 2007, 227, 1306–1339. [Google Scholar] [CrossRef]
  51. Lele, S.K. Compact finite difference schemes with spectral-like resolution. J. Comput. Phys. 1992, 103, 16–42. [Google Scholar] [CrossRef]
  52. Mahesh, K. A Family of High Order Finite Difference Schemes with Good Spectral Resolution. J. Comput. Phys. 1998, 145, 332–358. [Google Scholar] [CrossRef] [Green Version]
  53. Sengupta, T.K.; Vijay, V.V.S.N.; Bhaumik, S. Further improvement and analysis of CCD scheme: Dissipation discretization and de-aliasing properties. J. Comput. Phys. 2009, 228, 6150–6168. [Google Scholar] [CrossRef]
  54. Sengupta, T.K.; Ganeriwal, G.; De, S. Analysis of central and upwind compact schemes. J. Comput. Phys. 2003, 192, 677–694. [Google Scholar] [CrossRef]
  55. Tocci, M.D.; Kelley, C.T.; Miller, C.T. Accurate and economical solution of the pressure-head form of Richards’ equation by the method of lines. Adv. Water Resour. 1997, 20, 1–14. [Google Scholar] [CrossRef]
  56. Haq, S.; Bibi, N.; Tirmizi, S.I.A.; Usman, M. Meshless method of lines for the numerical solution of generalized Kuramoto-Sivashinsky equation. Appl. Math. Comput. 2010, 217, 2404–2413. [Google Scholar] [CrossRef]
  57. Griffiths, G.W. Numerical Analysis Using R: Solutions to ODEs and PDEs; Cambridge University Press: New York, NY, USA, 2016; ISBN 978-1-107-11561-3. [Google Scholar]
  58. Irk, D.; Dağ, İ.; Tombul, M. Extended cubic B-spline solution of the advection-diffusion equation. KSCE J. Civ. Eng. 2015, 19, 929–934. [Google Scholar] [CrossRef]
  59. Kumar, A.; Jaiswal, D.K.; Kumar, N. Analytical solutions to one-dimensional advection-diffusion equation with variable coefficients in semi-infinite media. J. Hydrol. 2010, 380, 330–337. [Google Scholar] [CrossRef]
Figure 1. Analytical and numerical solution of the ADE with constant parameters for Δ t = 1 s.
Figure 1. Analytical and numerical solution of the ADE with constant parameters for Δ t = 1 s.
Mathematics 09 01027 g001
Figure 2. Analytical and numerical solution of the ADE with spatially variable parameters at t = 3000 s for Δ t = 1 s and = 0.02   m 1 .
Figure 2. Analytical and numerical solution of the ADE with spatially variable parameters at t = 3000 s for Δ t = 1 s and = 0.02   m 1 .
Mathematics 09 01027 g002
Figure 3. Analytical and numerical solution of the ADE with spatially and temporally variable parameters at t = 2000 s for Δ t = 1 s, m = 0.1   s 1 , and = 0.05   m 1 .
Figure 3. Analytical and numerical solution of the ADE with spatially and temporally variable parameters at t = 2000 s for Δ t = 1 s, m = 0.1   s 1 , and = 0.05   m 1 .
Mathematics 09 01027 g003
Table 1. Comparison of the L norm errors of several methods for different time steps Δ t at t = 3000   s .
Table 1. Comparison of the L norm errors of several methods for different time steps Δ t at t = 3000   s .
Δ t   ( s ) ERK4-NCCD
(This Study)
CN-CBSC [58]CN-ECBSC [58]
1000.05830NANA
600.035380.043300.0425 *
300.017530.019620.01961
200.011500.012700.01260
100.005430.006850.00608
50.002640.004090.00307
10.001090.002240.00127
* After a personal interview with the author of this article (Prof. Dursun Irk), it was confirmed that the correct value should be 0.0425, while the published value of 0.00425 was due to a typographic error.
Table 2. Comparison of the analytical solution with the numerical results of the ERK4-NCCD scheme for different time steps Δ t at t   =   3000   s .
Table 2. Comparison of the analytical solution with the numerical results of the ERK4-NCCD scheme for different time steps Δ t at t   =   3000   s .
x   ( m ) Δ t   =   1 Δ t   =   5 Δ t   =   10 Δ t   =   20 Δ t   =   30 Δ t   =   60 Δ t   =   100 Analytical
01.0001.0001.0001.0001.0001.0001.0001.000
181.0001.0001.0001.0001.0001.0001.0001.000
190.9990.9990.9990.9990.9990.9990.9990.999
200.9980.9980.9980.9980.9980.9990.9990.998
210.9960.9960.9960.9960.9960.9970.9970.996
220.9910.9910.9910.9920.9920.9930.9930.991
230.9820.9820.9820.9830.9830.9840.9860.982
240.9650.9650.9650.9660.9670.9690.9730.964
250.9350.9360.9370.9380.9400.9440.9500.934
260.8900.8910.8920.8940.8970.9040.9130.889
270.8240.8260.8280.8310.8350.8450.8580.823
280.7390.7410.7430.7480.7530.7660.7830.738
290.6360.6390.6410.6470.6520.6690.6890.636
300.5230.5250.5280.5340.5400.5580.5810.523
310.4080.4100.4130.4190.4250.4430.4660.408
320.3000.3030.3050.3110.3160.3320.3540.301
330.2080.2100.2120.2170.2210.2350.2540.208
340.1350.1370.1380.1420.1450.1550.1700.135
350.0820.0830.0840.0870.0890.0960.1070.082
360.0470.0470.0480.0490.0510.0560.0630.046
370.0250.0250.0250.0260.0270.0300.0340.024
380.0120.0120.0120.0130.0130.0150.0170.012
390.0060.0060.0060.0060.0060.0070.0080.005
400.0020.0020.0020.0030.0030.0030.0030.002
410.0010.0010.0010.0010.0010.0010.0010.001
420.0000.0000.0000.0000.0000.0000.0000.000
Table 3. Comparison of the analytical solution with the numerical results of the ERK4-NCCD scheme for the time step Δ t = 1   s at times t = 2000   s , t = 4000 s, and t = 6000 s.
Table 3. Comparison of the analytical solution with the numerical results of the ERK4-NCCD scheme for the time step Δ t = 1   s at times t = 2000   s , t = 4000 s, and t = 6000 s.
x   ( m )   t   =   2000   s x   ( m )   t   =   4000   s x   ( m )   t   =   6000   s
NumericalAnalyticalNumericalAnalyticalNumericalAnalytical
101.0001.000261.0001.000441.0001.000
110.9990.999270.9991.000450.9990.999
120.9980.998280.9990.999460.9980.998
130.9950.995290.9970.998470.9970.997
140.9870.987300.9950.995480.9940.994
150.9690.968310.9900.990490.9890.989
160.9350.933320.9800.980500.9820.982
170.8750.873330.9650.965510.9700.970
180.7840.783340.9410.940520.9540.953
190.6650.665350.9050.904530.9300.930
200.5270.528360.8550.854540.8980.898
210.3870.388370.7900.789550.8570.856
220.2600.261380.7100.709560.8050.805
230.1590.159390.6190.618570.7440.744
240.0890.088400.5200.520580.6740.674
250.0440.044410.4200.420590.5970.597
260.0200.020420.3260.326600.5170.516
270.0080.008430.2410.241610.4350.435
280.0030.003440.1700.170620.3560.356
290.0010.001450.1140.114630.2830.283
300.0000.000460.0730.073640.2190.218
470.0440.044650.1630.163
480.0250.025660.1180.118
490.0140.014670.0820.082
500.0070.007680.0550.055
510.0030.003690.0360.036
520.0020.002700.0230.022
530.0010.001710.0140.014
540.0000.000720.0080.008
730.0040.004
740.0020.002
750.0010.001
760.0010.001
770.0000.000
L 2 0.00390 L 2 0.00160 L 2 0.00125
L 0.00203 L 0.00073 L 0.00046
Table 4. Comparison of the analytical solution with the numerical results of the ERK4-NCCD scheme for different time steps Δ t and   =   0.005   m 1 at t   =   3000   s .
Table 4. Comparison of the analytical solution with the numerical results of the ERK4-NCCD scheme for different time steps Δ t and   =   0.005   m 1 at t   =   3000   s .
x   ( m ) Δ t   =   1   s Δ t   =   5   s Δ t   =   10   s Δ t   =   20   s Δ t   =   30   s Δ t   =   60   s Δ t   =   75   s Analytical
01.0001.0001.0001.0001.0001.0001.0001.000
10.9950.9950.9950.9950.9950.9950.9950.995
20.9900.9900.9900.9900.9900.9900.9900.990
30.9850.9850.9850.9850.9850.9850.9850.985
40.9800.9800.9800.9800.9800.9800.9800.980
50.9760.9760.9760.9760.9760.9760.9760.976
60.9710.9710.9710.9710.9710.9710.9710.971
70.9660.9660.9660.9660.9660.9660.9660.966
80.9620.9620.9620.9620.9620.9620.9620.962
90.9570.9570.9570.9570.9570.9570.9570.957
100.9520.9520.9520.9520.9520.9520.9520.952
110.9480.9480.9480.9480.9480.9480.9480.948
120.9430.9430.9430.9430.9430.9430.9430.943
130.9390.9390.9390.9390.9390.9390.9390.939
140.9350.9350.9350.9350.9350.9350.9350.935
150.9300.9300.9300.9300.9300.9300.9300.930
160.9260.9260.9260.9260.9260.9260.9260.926
170.9220.9220.9220.9220.9220.9220.9220.922
180.9170.9170.9170.9170.9170.9170.9170.917
190.9130.9130.9130.9130.9130.9130.9130.913
200.9080.9080.9080.9080.9080.9090.9090.909
210.9030.9030.9040.9040.9040.9040.9040.904
220.8980.8980.8980.8980.8980.8980.8980.898
230.8900.8910.8910.8910.8910.8910.8920.891
240.8800.8810.8810.8810.8810.8820.8830.880
250.8660.8660.8660.8670.8670.8690.8700.865
260.8440.8450.8450.8460.8470.8500.8510.844
270.8140.8140.8150.8170.8180.8230.8250.813
280.7720.7720.7740.7760.7780.7850.7880.771
290.7160.7180.7190.7230.7260.7350.7390.716
300.6490.6500.6520.6560.6600.6720.6780.648
310.5700.5720.5750.5790.5840.5980.6040.570
Table 5. L norm errors of the ERK4-NCCD scheme for different time steps Δ t and values at t   =   3000   s . NA indicates that the solution did not converged.
Table 5. L norm errors of the ERK4-NCCD scheme for different time steps Δ t and values at t   =   3000   s . NA indicates that the solution did not converged.
Δ t   ( s )   =   0.001     =   0.005   =   0.01   =   0.02
750.043150.03812NANA
600.034520.03049NANA
300.016990.014980.01291NA
200.011100.009780.008440.00622
100.005320.004640.003960.00291
50.002570.002190.001850.00133
10.001090.000870.000720.00050
Table 6. L norm errors of the ERK4-NCCD scheme for m   =   0.1   s 1 with different time steps Δ t and values at t   =   3000   s . NA indicates that the solution did not converged.
Table 6. L norm errors of the ERK4-NCCD scheme for m   =   0.1   s 1 with different time steps Δ t and values at t   =   3000   s . NA indicates that the solution did not converged.
Δ t   ( s )   =   0.001   =   0.005   =   0.01   =   0.02
1000.08198NANANA
750.060420.05782NANA
600.048100.04577NANA
300.022530.021110.01951NA
200.013960.012970.012080.01029
100.006260.005670.005200.00427
50.004300.003770.003460.00270
10.003320.003050.002670.00210
Table 7. The numerical results of the ERK4-NCCD scheme for   =   0.05   m 1 and Δ t   =   1   s with different m values at t   =   1500   s .
Table 7. The numerical results of the ERK4-NCCD scheme for   =   0.05   m 1 and Δ t   =   1   s with different m values at t   =   1500   s .
x   ( m ) m   =   0.005 x   ( m ) m   =   0.01 x   ( m ) m   =   0.1
NumericalAnalyticalNumericalAnalyticalNumericalAnalytical
01.0001.00001.0001.00001.0001.000
10.9950.99510.9950.99510.9950.995
20.9900.99020.9900.99020.9900.990
30.9850.98530.9850.98530.9850.985
40.9800.98040.9800.98040.9800.980
50.9750.97650.9750.97650.9760.976
60.9700.97160.9690.97060.9700.971
70.9640.96570.9630.96470.9650.966
80.9570.95780.9560.95580.9600.960
90.9450.94490.9400.93890.9530.953
100.9210.918100.9060.903100.9420.941
110.8720.869110.8420.840110.9200.917
120.7880.787120.7400.741120.8790.875
130.6690.671130.6040.607130.8080.805
140.5230.527140.4500.454140.7040.703
150.3730.376150.3030.305150.5730.573
160.2390.241160.1820.182160.4300.431
170.1370.137170.0970.096170.2940.295
180.0700.069180.0450.044180.1830.182
190.0320.031190.0190.018190.1020.101
200.0130.012200.0070.006200.0510.050
210.0040.004210.0020.002210.0230.022
220.0010.001220.0010.001220.0090.009
230.0000.000230.0000.000230.0030.003
….….240.0010.001
1000.0000.0001000.0000.000250.0000.000
….
1000.0000.000
L 2 0.00729 L 2 0.00749 L 2 0.00590
L 0.00346 L 0.00360 L 0.00335
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Gurarslan, G. Sixth-Order Combined Compact Finite Difference Scheme for the Numerical Solution of One-Dimensional Advection-Diffusion Equation with Variable Parameters. Mathematics 2021, 9, 1027. https://doi.org/10.3390/math9091027

AMA Style

Gurarslan G. Sixth-Order Combined Compact Finite Difference Scheme for the Numerical Solution of One-Dimensional Advection-Diffusion Equation with Variable Parameters. Mathematics. 2021; 9(9):1027. https://doi.org/10.3390/math9091027

Chicago/Turabian Style

Gurarslan, Gurhan. 2021. "Sixth-Order Combined Compact Finite Difference Scheme for the Numerical Solution of One-Dimensional Advection-Diffusion Equation with Variable Parameters" Mathematics 9, no. 9: 1027. https://doi.org/10.3390/math9091027

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