Numerical solution of the convection–diffusion equation: Difference between revisions
No edit summary |
No edit summary |
||
Line 69: | Line 69: | ||
In Implicit Scheme, the temperature is dependent at the new time level <math> t+\Delta t</math>. After using implicit scheme, it was found that all coefficients are positive. It makes the implicit scheme unconditionally stable for any size of time step. This scheme is preferred for general purpose transient calculations because of its robustness and unconditional stability <ref> H.Versteeg & W. Malalasekra, "an Introduction to [[Computational Fluid Dynamics]]" 2009.</ref>. |
In Implicit Scheme, the temperature is dependent at the new time level <math> t+\Delta t</math>. After using implicit scheme, it was found that all coefficients are positive. It makes the implicit scheme unconditionally stable for any size of time step. This scheme is preferred for general purpose transient calculations because of its robustness and unconditional stability <ref> H.Versteeg & W. Malalasekra, "an Introduction to [[Computational Fluid Dynamics]]" 2009.</ref>. |
||
The disadvantage of this method is that more procedures are involved and due to larger <math>Delta t</math>, truncation error is also larger. |
The disadvantage of this method is that more procedures are involved and due to larger <math>\Delta t</math>, truncation error is also larger. |
||
====Crank-Nikolson Scheme==== |
====Crank-Nikolson Scheme==== |
Revision as of 14:17, 25 November 2013
This sandbox is in the article namespace. Either move this page into your userspace, or remove the {{User sandbox}} template. The transient convection diffusion equation governs the combined fluid flow and heat transfer that mainly involve convection and diffusion components. The same equation can also be called as time dependent convection diffusion equation. Since much of the framework is similar to the steady state convection diffusion equation, only a general discontinuous finite element formulation is needed [1]. The unsteady convection-diffusion problem is considered, at first the known temperature T is expanded into a taylor series with respect to time taking into account its three components. Next, using the convection diffusion equation and equation obtained from the differentiation of this equation.
Equation
General
The following convection diffusion equation is considered here [2]
In the above equation, four terms represents transient, convection, diffusion and source term respectively
where
- T is the temperature in particular case of heat transfer otherwise it is the variable of interest
- t is time
- c is the specific heat
- u is velocity
- is porosity that is the ratio of liquid volume to the total volume
- is mass density
- is thermal conductivity
- Q(x,t) is source term represents capacity of internal sources
above equation can be written in the form of:
where is the diffusion coefficient
Solving convection-diffusion equation using Finite Difference Method
A solution of transient convection-diffusion equation can be approximated through finite difference approach, known as finite difference method.
Explicit scheme
Explicit scheme of FDM (Finite Difference Method) has been considered and stability criteria are formulated. In this scheme, temperature is totally dependent on the old temperature (i.e. initial conditions). Substitution of gives the explicit discretization of the unsteady conductive heat transfer equation.
where is the weighing parameter between 0 and 1.
where
- h is uniform grid spacing (mesh step)
Stability Criteria
This inequality sets a stringent maximum limit to the time step size and represents a serious limitation for the explicit scheme. This method is not recommended for general transient problems because maximum possible time step has to be reduced as the square of h.
Implicit Scheme
In Implicit Scheme, the temperature is dependent at the new time level . After using implicit scheme, it was found that all coefficients are positive. It makes the implicit scheme unconditionally stable for any size of time step. This scheme is preferred for general purpose transient calculations because of its robustness and unconditional stability [3]. The disadvantage of this method is that more procedures are involved and due to larger , truncation error is also larger.
Crank-Nikolson Scheme
In Crank-Nicolson method, the temperature is equally dependent on t and . It is a second order method in time and this method is generally used in diffusion problems.
Stability Criteria
This time step limitation is less restricted than the explicit method. The Crank-Nicolson method is based on the central differencing and hence it is second order accurate in time [4].
Finite element solution to convection-diffusion problem
Unlike the conduction equation (finite element solution is used), a numerical solution for the convection-diffusion equation has to deal with the convection part of the governing equation in addition to diffusion. When peclet number (Pe) exceeds a critical value, the spurious oscillations result in space and this problem is not unique to finite elements as all other discretization techniques have the same difficulties. in a finite difference formulation, the spatial oscillations are reduced by a family of discretization schemes like upwind scheme [5]. In this method, the basic shape function is modified to obtain the upwinding effect. This method is an extension of runge kutta discontinuous for a convection diffusion equation. For time dependent equations, a different kind of approach is followed. The finite difference scheme has an equivalent in the finite element method (Galerkin method). Another similar method is characteristic galerkin method (uses an implicit algorithm). For scalar variables, above two methods are identical.
See Also
- convection-diffusion equation
- Double diffusive convection
- An Album of Fluid Motion
- Lagrangian and Eulerian specification of the flow field
- Fluid simulation
- Finite volume method for unsteady flow
References
- ^ “Discontinuous Finite in Fluid Dynamics and Heat transfer” by Ben Q. Li, 2006.
- ^ "The Finite Difference Method For Transient Convection Diffusion", Ewa Majchrzak & Łukasz Turchan, 2012.
- ^ H.Versteeg & W. Malalasekra, "an Introduction to Computational Fluid Dynamics" 2009.
- ^ H.Versteeg & W. Malalasekra, "an Introduction to Computational Fluid Dynamics" 2009.
- ^ Ronald W. Lewis, Perumal Nithiarasu & Kankanhally N. Seetharamu, "Fundamentals for the finite element method for heat and fluid flow".