Jump to content

Numerical solution of the convection–diffusion equation: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
No edit summary
No edit summary
Line 37: Line 37:


where <math>a = \frac{\lambda}{c \rho}</math> is the diffusion coefficient
where <math>a = \frac{\lambda}{c \rho}</math> is the diffusion coefficient
===Solving convection-diffusion equation through Finite Difference Method===

===Explicit scheme===
===Explicit scheme===


Line 61: Line 61:


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.
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.

[[File:Transient.jpg|200px|framed|right|Variation of temperature with time in 3 different schemes]]


===Implicit Scheme===
===Implicit Scheme===

Revision as of 11:13, 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 through 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. 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.

Variation of temperature with time in 3 different schemes

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].

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.


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 [4]. 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

References

  1. ^ “Discontinuous Finite in Fluid Dynamics and Heat transfer” by Ben Q. Li, 2006.
  2. ^ "The Finite Difference Method For Transient Convection Diffusion", Ewa Majchrzak & Łukasz Turchan, 2012.
  3. ^ H.Versteeg & W. Malalasekra, "an Introduction to Computational Fluid Dynamics" 2009.
  4. ^ Ronald W. Lewis, Perumal Nithiarasu & Kankanhally N. Seetharamu, "Fundamentals for the finite element method for heat and fluid flow".