The following convection diffusion equation is considered here2
c ρ [ ∂ T ( x , t ) ∂ t + ϵ u ∂ T ( x , t ) ∂ x ] = λ ∂ 2 T ( x , t ) ∂ x 2 + Q ( x , t ) {\displaystyle c\rho \left[{\frac {\partial T(x,t)}{\partial t}}+\epsilon u{\frac {\partial T(x,t)}{\partial x}}\right]=\lambda {\frac {\partial ^{2}T(x,t)}{\partial x^{2}}}+Q(x,t)}
In the above equation, four terms represents transience, convection, diffusion and a source term respectively, where
The equation above can be written in the form
∂ T ∂ t = a ∂ 2 T ∂ x 2 − ϵ u ∂ T ∂ x + Q c ρ {\displaystyle {\frac {\partial T}{\partial t}}=a{\frac {\partial ^{2}T}{\partial x^{2}}}-\epsilon u{\frac {\partial T}{\partial x}}+{\frac {Q}{c\rho }}}
where a = λ/cρ is the diffusion coefficient.
A solution of the transient convection–diffusion equation can be approximated through a finite difference approach, known as the finite difference method (FDM).
An explicit scheme of FDM has been considered and stability criteria are formulated. In this scheme, temperature is totally dependent on the old temperature (the initial conditions) and θ, a weighting parameter between 0 and 1. Substitution of θ = 0 gives the explicit discretization of the unsteady conductive heat transfer equation.
T i f − T i f − 1 Δ t = a T i − 1 f − 1 − 2 T i f − 1 + T i + 1 f − 1 h 2 − ϵ u T i + 1 f − 1 − T i − 1 f − 1 2 h + Q i f − 1 c ρ {\displaystyle {\frac {T_{i}^{f}-T_{i}^{f-1}}{\Delta t}}=a{\frac {T_{i-1}^{f-1}-2T_{i}^{f-1}+T_{i+1}^{f-1}}{h^{2}}}-\epsilon u{\frac {T_{i+1}^{f-1}-T_{i-1}^{f-1}}{2h}}+{\frac {Q_{i}^{f-1}}{c\rho }}}
where
T i f = ( 1 − 2 a Δ t h 2 ) T i f − 1 + ( a Δ t h 2 + ϵ u Δ t 2 h ) T i − 1 f − 1 + ( a Δ t h 2 − ϵ u Δ t 2 h ) T i + 1 f − 1 + Q i f − 1 c ρ Δ t {\displaystyle T_{i}^{f}=\left(1-{\frac {2a\Delta t}{h^{2}}}\right)T_{i}^{f-1}+\left({\frac {a\Delta t}{h^{2}}}+{\frac {\epsilon u\Delta t}{2h}}\right)T_{i-1}^{f-1}+\left({\frac {a\Delta t}{h^{2}}}-{\frac {\epsilon u\Delta t}{2h}}\right)T_{i+1}^{f-1}+{\frac {Q_{i}^{f-1}}{c\rho }}\Delta t}
The inequalities h < 2 a | ϵ u | , Δ t < a ϵ 2 u 2 / 4 + a 2 / h 2 < h 2 2 a < h | ϵ u | {\displaystyle {\begin{aligned}h&<{\frac {2a}{|\epsilon u|}},&\Delta t&<{\frac {a}{\epsilon ^{2}u^{2}/4+a^{2}/h^{2}}}<{\frac {h^{2}}{2a}}<{\frac {h}{|\epsilon u|}}\end{aligned}}} follow from setting Q i f → 0 {\displaystyle Q_{i}^{f}\to 0} and requiring the ansatz T i f → T 0 f exp ( − 1 i θ ) {\displaystyle T_{i}^{f}\to T_{0}^{f}\exp({\sqrt {-1}}i\theta )} not to gain amplitude as f increases for any θ {\displaystyle \theta } . They set a stringent maximum limit to the time step that represents a serious limitation for the explicit scheme. This method is not recommended for general transient problems because the maximum possible time step has to be reduced as the square of h.
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.
In the 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.
Δ t < h 2 a {\displaystyle \Delta t<{\frac {h^{2}}{a}}}
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
Unlike the conduction equation (a 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 the Péclet 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 the characteristic Galerkin method (which uses an implicit algorithm). For scalar variables, the above two methods are identical.
“Discontinuous Finite in Fluid Dynamics and Heat transfer” by Ben Q. Li, 2006. /wiki/Heat_transfer ↩
"The Finite Difference Method For Transient Convection Diffusion", Ewa Majchrzak & Łukasz Turchan, 2012. /wiki/Finite_Difference_Method ↩
H.Versteeg & W. Malalasekra, "an Introduction to Computational Fluid Dynamics" 2009, pages 262–263. /wiki/Computational_Fluid_Dynamics ↩
H.Versteeg & W. Malalasekra, "an Introduction to Computational Fluid Dynamics" 2009, page no. 262. /wiki/Computational_Fluid_Dynamics ↩
Ronald W. Lewis, Perumal Nithiarasu & Kankanhally N. Seetharamu, "Fundamentals for the finite element method for heat and fluid flow". /wiki/Finite_element_method ↩