Numerical Solution of One-dimensional Advection-diffusion Equation Using Simultaneously Temporal and Spatial Weighted Parameters

Similar documents
A semi-lagrangian scheme for advection-diffusion equation

Finite Difference Methods for

THREE-DIMENSIONAL FINITE DIFFERENCE MODEL FOR TRANSPORT OF CONSERVATIVE POLLUTANTS

Solving One-Dimensional Advection-Dispersion with Reaction Using Some Finite-Difference Methods

Finite Difference Methods (FDMs) 2

ME Computational Fluid Mechanics Lecture 5

Pollution. Elixir Pollution 97 (2016)

A Numerical Algorithm for Solving Advection-Diffusion Equation with Constant and Variable Coefficients

FDM for parabolic equations

Conditional stability of Larkin methods with non-uniform grids

Module 3: BASICS OF CFD. Part A: Finite Difference Methods

An Exponential High-Order Compact ADI Method for 3D Unsteady Convection Diffusion Problems

O.R. Jimoh, M.Tech. Department of Mathematics/Statistics, Federal University of Technology, PMB 65, Minna, Niger State, Nigeria.

Partial Differential Equations

A Differential Quadrature Algorithm for the Numerical Solution of the Second-Order One Dimensional Hyperbolic Telegraph Equation

FUNDAMENTALS OF FINITE DIFFERENCE METHODS

Solving the One Dimensional Advection Diffusion Equation Using Mixed Discrete Least Squares Meshless Method

A note on benchmarking of numerical models for density dependent flow in porous media

COMPLETED RICHARDSON EXTRAPOLATION IN SPACE AND TIME

Numerical Hydraulics

Introduction to Heat and Mass Transfer. Week 9

Schur Complement Technique for Advection-Diffusion Equation using Matching Structured Finite Volumes

Approximations of diffusions. Mathématiques appliquées (MATH0504-1) B. Dewals, Ch. Geuzaine

Numerical Algorithms for Visual Computing II 2010/11 Example Solutions for Assignment 6

Problem Set 4 Issued: Wednesday, March 18, 2015 Due: Wednesday, April 8, 2015

A numerical method for the wave equation subject to a non-local conservation condition

Lecture 17: Initial value problems

Discretization of Convection Diffusion type equation

2.29 Numerical Fluid Mechanics Spring 2015 Lecture 13

Numerical Methods for Engineers and Scientists

A PRACTICALLY UNCONDITIONALLY GRADIENT STABLE SCHEME FOR THE N-COMPONENT CAHN HILLIARD SYSTEM

The behaviour of high Reynolds flows in a driven cavity

1906 Dilip kumar Jaiswal et al./ Elixir Pollution 31 (2011) Available online at (Elixir International Journal)

[Yadav*, 4.(5): May, 2015] ISSN: (I2OR), Publication Impact Factor: (ISRA), Journal Impact Factor: 2.114

Numerical Solution of the Two-Dimensional Time-Dependent Transport Equation. Khaled Ismail Hamza 1 EXTENDED ABSTRACT

Finite difference method for heat equation

Chapter 3. Finite Difference Methods for Hyperbolic Equations Introduction Linear convection 1-D wave equation

The Homotopy Perturbation Method (HPM) for Nonlinear Parabolic Equation with Nonlocal Boundary Conditions

Math background. Physics. Simulation. Related phenomena. Frontiers in graphics. Rigid fluids

CRANK-NICOLSON FINITE DIFFERENCE METHOD FOR SOLVING TIME-FRACTIONAL DIFFUSION EQUATION

ABSTRACT GOVERNING EQUATIONS

Introduction to numerical schemes

Partial Differential Equations (PDEs) and the Finite Difference Method (FDM). An introduction

5. FVM discretization and Solution Procedure

Chapter 5. Formulation of FEM for Unsteady Problems

A Comparison of Service Life Prediction of Concrete Structures using the Element-Free Galerkin, Finite Element and Finite Difference Methods

q t = F q x. (1) is a flux of q due to diffusion. Although very complex parameterizations for F q

The Power of Spreadsheet Models. Mary P. Anderson 1, E. Scott Bair 2 ABSTRACT

NUMERICAL METHODS FOR ENGINEERING APPLICATION

Stability of solution of the diffusion equation using various formulation of finite difference method

1 Finite difference example: 1D implicit heat equation

Finite Differences: Consistency, Stability and Convergence

Richardson Extrapolated Numerical Methods for Treatment of One-Dimensional Advection Equations

Introduction to Heat and Mass Transfer. Week 8

Last time: Diffusion - Numerical scheme (FD) Heat equation is dissipative, so why not try Forward Euler:

7 Hyperbolic Differential Equations

High-order ADI schemes for convection-diffusion equations with mixed derivative terms

Numerical Solutions of the Burgers System in Two Dimensions under Varied Initial and Boundary Conditions

Partial Differential Equations

Higher-Order Difference and Higher-Order Splitting Methods for 2D Parabolic Problems with Mixed Derivatives

1.72, Groundwater Hydrology Prof. Charles Harvey Lecture Packet #9: Numerical Modeling of Groundwater Flow

Research Article L-Stable Derivative-Free Error-Corrected Trapezoidal Rule for Burgers Equation with Inconsistent Initial and Boundary Conditions

Multi-Factor Finite Differences

Lecture Notes on Numerical Schemes for Flow and Transport Problems

Lecture Notes on Numerical Schemes for Flow and Transport Problems

A CCD-ADI method for unsteady convection-diffusion equations

Tutorial 2. Introduction to numerical schemes

On finite element methods for 3D time dependent convection diffusion reaction equations with small diffusion

The Modified Variational Iteration Method for Solving Linear and Nonlinear Ordinary Differential Equations

Advanced numerical methods for transport and reaction in porous media. Peter Frolkovič University of Heidelberg

Improving the Accuracy of the Adomian Decomposition Method for Solving Nonlinear Equations

Numerical Solution of an Inverse Diffusion Problem

Lecture 4.5 Schemes for Parabolic Type Equations

Open boundary conditions in numerical simulations of unsteady incompressible flow

Finite Differences for Differential Equations 28 PART II. Finite Difference Methods for Differential Equations

Universität des Saarlandes. Fachrichtung 6.1 Mathematik

International Research Journal of Engineering and Technology (IRJET) e-issn: Volume: 04 Issue: 09 Sep p-issn:

A robust uniform B-spline collocation method for solving the generalized PHI-four equation

B-splines Collocation Algorithms for Solving Numerically the MRLW Equation

Thermal Analysis Contents - 1

Time stepping methods

Advanced numerical methods for nonlinear advectiondiffusion-reaction. Peter Frolkovič, University of Heidelberg

Corona Losses Calculation in HVAC Transmission Lines Using FEM and Comparison with HVDC Corona Losses

Stabilitätsanalyse des Runge-Kutta- Zeitintegrationsschemas für das konvektionserlaubende Modell COSMO-DE

Numerical Study of Natural Convection in. an Inclined L-shaped Porous Enclosure

Two Successive Schemes for Numerical Solution of Linear Fuzzy Fredholm Integral Equations of the Second Kind

1D Verification Examples

Evolution equations with spectral methods: the case of the wave equation

Finite Difference Method for PDE. Y V S S Sanyasiraju Professor, Department of Mathematics IIT Madras, Chennai 36

MATLAB Solution of Flow and Heat Transfer through a Porous Cooling Channel and the Conjugate Heat Transfer in the Surrounding Wall

Math 7824 Spring 2010 Numerical solution of partial differential equations Classroom notes and homework

Numerical studies of non-local hyperbolic partial differential equations using collocation methods

Chebyshev finite difference method for solving a mathematical model arising in wastewater treatment plants

Soliton and Numerical Solutions of the Burgers Equation and Comparing them

QUESTIONS FOR THE TESTS-ECI 146

Basics of Discretization Methods

EVALUATION OF CRITICAL FRACTURE SKIN POROSITY FOR CONTAMINANT MIGRATION IN FRACTURED FORMATIONS

IOSR Journal of Mathematics (IOSRJM) ISSN: Volume 2, Issue 1 (July-Aug 2012), PP

10.34 Numerical Methods Applied to Chemical Engineering. Quiz 2

Comparison of homotopy analysis method and homotopy perturbation method through an evolution equation

Transcription:

Australian Journal of Basic and Applied Sciences, 5(6): 536-543, 0 ISSN 99-878 Numerical Solution of One-dimensional Advection-diffusion Equation Using Simultaneously Temporal and Spatial Weighted Parameters Abolfazl Mohammadi,, Mehrdad Manteghian, 3 Ali Mohammadi Department Of Chemical Engineering, Mahshahr Branch-Islamic Azad University, Mahshahr, Iran. Tarbiat Modares University, Tehran, Iran. 3 Islamic Azad University-Bojnourd Branch, Bojnourd, Iran Abstract: The Several numerical techniques have been developed and compared for solving the onedimensional advection-diffusion equation with constant coefficients. These techniques are based on the finite difference methods (FDM). By changing the values of temporal and spatial weighted parameters, solutions are obtained for both explicit and implicit techniques such as FTCS, FTBSCS, BTCS, BTBSCS and Crank Nicholson schemes. Numerical solution is given for two special cases which have been dealt with in the literature and for which an analytical solution has been provided. Comparison of the results has confirmed that the Crank-Nicholson numerical approach matches successfully with the analytical solution while the other techniques result in some levels of discrepancy. Key words: finite difference methods; advection diffusion equation; spatial weight; temporal weight; explicit and implicit techniques INTRODUCTION The significant applications of advection diffusion equation lie in fluid dynamics (Kumar, 988), heat transfer (Isenberg, 97) and mass transfer (Guvanasen, 983). Various approaches are available for solving one-dimensional advection diffusion partial differential equations. Analytical solutions (Dehghan, 004; Noye, 988; Noye, 989; Sankaranarayanan, 998) to solve engineering problems are highly desirable due to the elegant connection that becomes visible between physical and mathematical principles. But the analytical solution of these equations containing complex initial and boundary conditions are usually unavailable. Graphical methods, finite element methods and finite difference methods (Bear, 990; Kinzelbach, 986; Remson, 97; Wang, 98; Zheng, 995) are other approaches for solve partial differential equations (PDEs). Because the analytical solution of partial differential equations containing complex initial and boundary conditions are very difficult, it seems that the finite difference methods are appropriate for solving these equations. Eq. () shows the mathematical form of one-dimensional advection diffusion phenomenon. u D t x x c c c () initial condition cx (,0) f( x) 0 x L () and boundary conditions c(0, t) g( t), 0 t T (3) clt (, ) ht ( ) 0 t T (4) Where f, g and h are known functions. u and D are the speed of advection and diffusivity respectively. The domain contain 0 x L and 0 t T. Corresponding Author: Mehrdad Manteghian, Tarbiat Modares University, Tehran, Iran. 536

Aust. J. Basic & Appl. Sci., 5(6): 536-543, 0 By changing only the values of temporal, and spatial, weighted parameters, Eq. () can be solved by various finite difference methods in both explicit and implicit modes (Dehghan, 004; Karahan, 006; Karahan, 007).. Numerical Solution: The mesh of grid-lines are introduced as xi tn i x i 0,,,, M nt n 0,,,, N (5) (6) L T The constant spatial and temporal grid-spacing are x and t, respectively (Karahan, 006). M N Where M denotes the total number of spatial grid-spacing and N denotes the total number of temporal grid-spacing. Consider the following approximations of the derivatives in the advection diffusion equation which incorporate time and space weights and θ as follows: c cin t, cin, t c u u cin, ci, nci, ncin, x x u x cin, ci, n ci, n cin, c D D c i, n ci, nci, n x x D ci, n cin, ci, n x (7) (8) (9) where is a time weighting factor and θ is the spatial weighting factor. Substituting equations (7), (8) and (9) into Eq. () gives: cin Acin Aci n Aci 3 n Aci 4 n Aci 5 n A,,,,,, 0 (0) Where A0 a s A a s () () 537

Aust. J. Basic & Appl. Sci., 5(6): 536-543, 0 A a s A3 a s 4 A a s A5 a s and t a u x t s D x (3) (4) (5) (6) (7) (8) The stability of (0) for explicit finite difference schemes may be investigated using the von Neumann method (Hindmarsh, 984). Implicit finite difference schemes are unconditionally von Neumann stable. The application of this stability feature shows that Eq. (0) is stable if a a s 3. Explicit Finite Difference Schemes: In explicit finite difference schemes, for specified values of grid-nodes in n time levels, we could compute the value of grid-nodes in n + time levels, by solving a simple algebraic equation. A common feature of the explicit finite difference method is the restriction caused for the value of the time step due to the stability requirements. This restriction necessitates the choice of extremely small values for Δt (Isenberg, 97). 3.. The FTCS Technique: This scheme uses the forward-difference routine for the time-derivative and centered-difference routine for (9) all spatial derivatives. Application of the technique on solving Eq. (0) for below. 0 and θ = 0.5 is depicted a a cin s ci n s cin s ci n,,,, (0) Also by substituting the scheme. 0 and θ = 0.5 in Eq. (9), we can obtain the stability condition of this a s 0.5 () 3.. The FTBSCS Technique: This technique - also called the explicit Upwind - uses the forward-difference form for the time derivative, centered-difference forms for the diffusive derivatives and backward differences forms for the spatial derivatives in the advection terms. Application of the technique on solving Eq. (0) for below. 0 and θ = 0 is depicted 538

Aust. J. Basic & Appl. Sci., 5(6): 536-543, 0,,,, cin s a ci n s c cin sci n Also by substituting the 0 and θ = 0 in Eq. (9), we can obtain the stability condition of this scheme () a a a s (3) 4. Implicit Finite Difference Schemes: In implicit finite difference schemes, for evaluating one node in n + time level, we must know the value of grid-nodes that exist around it, in n and n + time levels. Therefore we must solve a system of algebraic equations for each time step. We can solve these systems using the iterative method. The main disadvantage of these techniques is the extensive amount of computer time consumed in determining the numerical solution compared to the explicit methods for the same selection of values of s and a. One advantage of implicit techniques is that they are unconditionally von Neumann stable. Thus we are not restricted in selecting the size of time step Δt (Dehghan, 004). 4.. The BTCS Technique: This scheme uses the backward-difference form for the time-derivative and centered-difference forms for all spatial derivatives. Application of the technique on solving Eq. (0) for below. and θ = 0.5 is depicted a a cin s ci n cin s ci n s,,,, (4) 4.. The BTBSCS Technique: This technique - also called the implicit Upwind- utilizes the backward-difference form for the time derivative, centered-difference forms for the diffusive derivatives and backward difference forms for the spatial derivatives in the advection terms. Application of the technique on solving Eq. (0) for and θ = 0 is depicted below. cin, s a ci, n cin, sci, n as (5) 4.3. The Crank-Nicolson Type Technique: In the implicit Crank Nicholson type technique we replace all spatial derivatives with the average of their values at the n and n + th time levels and then substitute centered-difference forms for all derivatives. Application of the technique on solving Eq. (0) for 0.5 and θ = 0.5 is depicted below. a s ci, n a s ci, n a s ci, n cin, 4 4s as ci, n 44 s cin, (6) The formulas derived in above finite difference methods are applied to ( i,,, M ). 5. Numerical Applications: In order to test the numerical schemes developed for solving (), a special problem for which an exact solution is available is required so that approximate results obtained using the numerical techniques may be 539

Aust. J. Basic & Appl. Sci., 5(6): 536-543, 0 compared with an exact solution. In this section two examples which have the analytical solutions in literature (Dehghan, 004; Sankaranarayanan, 998), are solved numerically to test the used finite difference schemes. Example : The analytical solution of the one-dimensional advection diffusion in a region bounded by 0 x and 0t is taken from Ref. [4] and given as 0.05 x0.5 t cx, t exp 0.00065 0.0t 0.005 0.04t (7) In this example the values of various used parameters are D 0.0 m / s, u m/ s, x 0.0 m, t 0.004 s and the initial and boundary conditions are x 0.5 cx,0exp 0.005 (8) 0.05 0.5 t c0, t exp 0.00065 0.0t 0.005 0.04t (9) 0.05.5 t c, t exp 0.00065 0.0t 0.005 0.04t (30) Regarding the initial condition, we have an initial Gaussian pulse of unit height. Fig., shows the numerical solution of Eq. () at T = s utilizing five methods compared with analytical solution. Regarding Fig., the Crank-Nicolson scheme establishes results closer to the analytical solution. BTCS scheme provides suitable results too, and BTBSCS provides worst approximations. Fig., depicts the absolute errors associating various methods that were introduced in this paper at T = s. Maximum absolute error of Crank-Nicolson scheme tends to 3.5 0-3. The error of this scheme in x = 0.5m and T = s is 7.4 0-4 and this value is reported to be 9.8 0-4 in Ref. (Hindmarsh, 984), and 3.9 0-3 in Ref. (Dehghan, 004). Example : The analytical solution for the one-dimensional advection diffusion in a Gaussian pulse of unit height, centered at x=m in a region bounded by 0 x 9and 0 t.5 is taken from Ref. (Sankaranarayanan, 998) and given as x x0 ut cx, t exp 4t D 4t (3) Where u is the velocity in the x direction, x 0 is the center of the initial Gaussian pulse, D is the diffusion coefficient in the x direction and t is the time coordinate. The values of various used parameter are 540

Aust. J. Basic & Appl. Sci., 5(6): 536-543, 0 Fig. : Comparison of analytical and numerical solutions for Example. Fig. : Absolute errors of various methods for Example. D 0.005 m / s, u 0.8 m/ s, x 0.0 m, t 0.0 s The initial and boundary conditions could be obtained from Eq. (3). cx,0exp x D (3) t ut c0, t exp 4t D 4 (33) 54

Aust. J. Basic & Appl. Sci., 5(6): 536-543, 0 8 D t ut c9, t exp 4t 4 (34) Fig. 3, compares the numerical and analytical solutions in example, and Fig. 4 depicts the absolute errors of various methods for this example. Fig. 3: Comparison of analytical and numerical solutions for Example. Fig. 4: Absolute errors of various methods for Example. As shown in these two figures, the Crank-Nicolson scheme represents the minimum errors, such as previous example. And maximum absolute error of this scheme is 6. 0-3. Some examples about advection-diffusion equations are given in Ref. (Badrot-Nico, 007). 6. Conclusions: In this article several numerical methods were applied to the one-dimensional advection diffusion equation. The numerical schemes satisfy this model very good. As just the values of temporal and spatial weighted parameters are changed, the solutions could be determined for both explicit and implicit techniques such as FTCS, FTBSCS, BTCS, BTBSCS and Crank Nicolson schemes. The implicit methods are unconditionally stable but they need extensive computer time for determining the numerical solution. The explicit methods must satisfy the von Neumann stability conditions. By comparing the various techniques for determining the 54

Aust. J. Basic & Appl. Sci., 5(6): 536-543, 0 numerical solution, it was found that the Crank-Nicolson scheme has a very good agreement with analytical results. Since for implicit techniques, we must solve a system of algebraic equations, it seems that the iterative is a suitable method for solving these systems. Symbols: c u D L T i n concentration advection coefficient diffusivity length total time space counter time counter temporal weight θ spatial weight Δt time step Δx space step REFERENCES Badrot-Nico, F., F. Brissaud, V. Guinot, 007. A finite volume upwind scheme for the solution of the linear advection-diffusion equation with sharp gradients in multiple dimensions. Advances in Water Resources. Bear, J., Y. Bachma, 004. Introduction to modeling of transport phenomena, Dordrecht, Kluwer, 990. M. Dehghan, Numerical solution of the three-dimensional advection diffusion equation, Applied Mathematics and Computation, 50: 5-9. Dehghan, M., 004. Weighted finite difference techniques for one dimensional advection diffusion equation, Appl Math Comput., 47: 307-9. Guvanasen, V., R.E. Volker, 983. Numerical solutions for solute transport in unconfined aquifers, Int. J. Numer. Methods Fluids, 3: 03-3. Hindmarsh, A.C., P.M. Gresho, D.F. Griffiths, 984. The stability of explicit Euler time-integration for certain finite difference approximations of the advection diffusion equation, Int. J. Numer. Methods Fluids, 4: 853-897. Isenberg, J., C. Gutfinger, 97. Heat transfer to a draining film, Int. J. Heat Transfer, 6: 505-5. Karahan, H., 006. A third-order upwind scheme for the advection diffusion equation using spreadsheets, Advances in Engineering Software. Karahan, H., 006. Implicit finite difference techniques for the advection diffusion equation using spreadsheets, Adv Eng Software, 37(9): 60-8. Karahan, H., 007. Unconditional stable explicit finite difference technique for the advection diffusion equation using spreadsheets, Advances in Engineering Software, 38: 80-86. Kinzelbach, W., 986. Groundwater modeling: An introduction with sample rograms in BASIC, Amsterdam, Elsevier. Kumar, N., 988. Unsteady flow against dispersion in finite porous media, J. Hydrol., 63: 345-358. Noye, B.J., H.H. Tan, 988. A third-order semi-implicit finite difference method for solving the onedimensional convection diffusion equation, Int J Numer Methods Engrg, 6: 65-9. Noye, B.J., H.H. Tan, 989. Finite difference methods for the two-dimensional advection diffusion equation, Int J Numer Methods Fluids, 9: 75-98. Remson, I., G.M. Hornberger, F.J. Molz, 97. Numerical methods in subsurface hydrology, New York, Wiley Interscience. Sankaranarayanan, S., N.J. Shankar, H.F. Cheong, 998. Three-dimensional finite difference model for transport of conservative pollutants, Ocean Engrg., 5(6): 45-4. Wang, H.F., M.P. Anderson, 98. Introduction to groundwater modeling: Finite difference and finite element, London, Academic Press. Zheng, C., G.D. Bennett, 995. Applied contaminant transport modeling, New York, Int. Thomson Publishing Inc. 543