Lecture 08 1D Convection Diffusion
Lecture 08 1D Convection Diffusion
1 Lecture 8
1D Convection-Diffusion Equation
Dr Gilbert Accary
LECTURE PLAN
1D convection-diffusion problem
Governing equation
Discretized equation
Central differencing scheme
Properties of a discretization scheme
Upwind scheme, false diffusion
Hybrid scheme
Power law scheme
2
1D STEADY CONVECTION-DIFFUSION PROBLEM
T1 T = T1 T = T2 T2
T (x)
Simplified problem:
3
GOVERNING EQUATION
Generalized convection-diffusion equation:
𝜕
𝛻. 𝑉 𝛻. Γ 𝛻 𝑄
𝜕𝑡
The flow must verify the continuity equation:
𝜕
𝛻. 𝑉 0
𝜕𝑡
1D steady convection-diffusion problem without source:
𝑑 𝑑 𝑑 𝑑 𝑢
𝑢 0 (continuity)
𝑑𝑥 𝑑𝑥 𝑑𝑥 𝑑𝑥
4
Analytical solution:
DISCRETIZED EQUATION (CONT.)
Integrating the convection-diffusion equation:
𝑑 𝑑 𝑑
𝑢 . 𝑑𝑣 . 𝑑𝑣 with 𝑑𝑣 𝐴. 𝛿𝑥
𝑑𝑥 𝑑𝑥 𝑑𝑥
𝑑
Using Gauss theorem: 𝑢 . 𝑑𝑠 . 𝑑𝑠
𝑑𝑥
yields 𝑑 𝑑
𝑢𝐴 𝑢𝐴 𝐴 𝐴
𝑑𝑥 𝑑𝑥
5
DISCRETIZED EQUATION (CONT.)
6
CENTRAL DIFFERENCING SCHEME
It is logical to try a linear interpolation to compute
the cell face values for the convective terms:
2 2
The discretized equation becomes:
𝐹 𝐹 𝐷 𝐷
2 2
This can be re-arranged as:
0 (continuity)
𝐹 𝐹 𝐹 𝐹
𝐷 𝐷 𝐹 𝐹 𝐷 𝐷
2 2 2 2
Analytical solution:
CD scheme
Good result for
Low F/D ratio
1. F/D = 0.2
2. F/D = 5
3. F/D = 1.25
9
PROPERTIES OF A DISCRETIZATION SCHEME
𝐹𝑙𝑢𝑥 𝐹𝑙𝑢𝑥
Linear Approximation: Always consistent
𝐹𝑙𝑢𝑥
𝜙 𝜙 𝜙 𝜙 yields 10
Γ Γ 𝐹𝑙𝑢𝑥𝑒𝑠 𝑞 𝑞
𝛿𝑥 𝛿𝑥
PROPERTIES OF A DISCRETIZATION SCHEME
11
Quadratic Interp. is not always bad QUICK scheme
PROPERTIES OF A DISCRETIZATION SCHEME
14
𝐹 𝜌𝑢𝛿 Convection
Grid Peclet number 𝑃
𝐷 Γ Diffusion
PROPERTIES OF A DISCRETIZATION SCHEME
Flow
W P e E
15
UPWIND DIFFERENCING SCHEME
16
UPWIND DIFFERENCING SCHEME (CONT.)
Since Fe = Fw (continuity) 𝑎 𝑎 𝑎
CD scheme
2nd order accurate
on uniform grid
Upwind scheme
1st order accurate
18
FALSE DIFFUSION IN UPWIND SCHEME
100
19
FALSE DIFFUSION IN UPWIND SCHEME (CONT.)
20
At high Reynolds, false diffusion can be large enough
to give physically incorrect results (Leschziner, 1980)
HYBRID SCHEME
22
POWER LAW SCHEME
The power-law differencing scheme of Patankar-1980
is obtained from an accurate approximation of the
exact solution of the 1D convection-diffusion problem
It produces better results than the hybrid scheme
It results approximately in the exact solution of the
1D convection-diffusion problem without source
term, it is however 1st order accurate in general
Flux at face west:
1 0.1𝑃𝑒
𝑞 𝐹 𝜙 𝜙 𝜙 for 0 𝑃𝑒 10
𝑃𝑒
𝑞 𝐹 𝜙 for 𝑃𝑒 10 (No diffusion)
23
Similar expressions are written for 𝑃𝑒 < 0
POWER LAW SCHEME (CONT.)
These expression yield:
𝑎 𝐷 Max 0, 1 0.1 𝑃𝑒 Max 𝐹 , 0
𝑎 𝐷 Max 0, 1 0.1 𝑃𝑒 Max 𝐹 ,0
Considering the transport of using power-law scheme:
24
QUICK SCHEME
Quadratic Upstream Interpolation for Convective Kinetics
6 3 1
If uw > 0, 𝜙 𝜙 𝜙 𝜙 for 𝛿𝑥 𝑐𝑜𝑛𝑠𝑡.
8 8 8
𝑎 𝑎 𝑎 𝑎 𝑎 𝑏
25
Assignment #3: Assessment of the QUICK scheme