Hexagonal sampling

From formulasearchengine
Revision as of 22:06, 27 December 2013 by en>DGG (DGG moved page Multidimensional sampling and the importance of hexagonal sampling to Hexagonal sampling: actual subject)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The convection–diffusion equation describes the flow of heat, particles, or other physical quantities in situations where there is both diffusion and convection or advection. For information about the equation, its derivation, and its conceptual importance and consequences, see the main article convection–diffusion equation. This article describes how to use a computer to calculate an approximate numerical solution of the equation, in a time-dependent situation.

In order to be concrete, this article focuses on heat flow, an important example where the convection–diffusion equation applies. However, the same mathematical analysis works equally well to other situations like particle flow.

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]

cρ[T(x,t)t+ϵuT(x,t)x]=λ2T(x,t)x2+Q(x,t)

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

The equation above can be written in the form

Tt=a2Tx2ϵuTx+Qcρ

where a=λcρ 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 θ=0 gives the explicit discretization of the unsteady conductive heat transfer equation.

where θ is the weighing parameter between 0 and 1.

TifTif1Δt=aTi1f12Tif1+Ti+1f1h2ϵuTi+1f1Ti1f12h+Qif1cρ

where

Tif=(12aΔth2)Tif1+(aΔth2+ϵuΔt2h)Ti1f1+(aΔth2ϵuΔt2h)Ti+1f1+Qif1cρΔt
Stability criteria
h<2aϵu
Δt<h22a

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 t+Δt. 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 Δt, truncation error is also larger.

Crank–Nikolson scheme

In Crank–Nicolson method, the temperature is equally dependent on t and t+Δt. It is a second order method in time and this method is generally used in diffusion problems.

Stability criteria
Δt<h2a

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

References

43 year old Petroleum Engineer Harry from Deep River, usually spends time with hobbies and interests like renting movies, property developers in singapore new condominium and vehicle racing. Constantly enjoys going to destinations like Camino Real de Tierra Adentro.

  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, pages 262–263.
  4. H.Versteeg & W. Malalasekra, "an Introduction to Computational Fluid Dynamics" 2009, page no. 262.
  5. Ronald W. Lewis, Perumal Nithiarasu & Kankanhally N. Seetharamu, "Fundamentals for the finite element method for heat and fluid flow".