Contents I: Master of Science in Thermal/Automotive Engineering
Contents I: Master of Science in Thermal/Automotive Engineering
1 Introduction
Computational Fluid Dynamics Computational Methods
Master of Science in Thermal/Automotive Engineering Partial Differential Equations
Governing Equations of Fluid Mechanics and Heat Transfer
2 Principles of Solution of the Governing Equations
Dr.-Ing. Getachew S. Tibba Discretization
Spatial Discretization
Addis Ababa Science and Technology University Temporal Discretization
Stability Analysis
Boundary and Initial Conditions
3 Modeling Diffusion
Steady State Diffusion
Transient Diffusion
4 Modeling Convection and Diffusion
May 25, 2021 Steady Convection and Diffusion
Central Differencing Scheme
G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 1 / 160 G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 1 / 160
G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 4 / 160 G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 5 / 160
G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 6 / 160 G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 7 / 160
Introduction Computational Methods Introduction Partial Differential Equations
Since analytical calculations are limited to simple problems, The governing equations of fluid flow and heat transfer are mainly
computational methods are becoming more and more popular methods in the form of partial differential equations.
of predicting physical processes, especially with rapid advancement of The main work of computational methods is, therefore, solving
computing technology. single or set of partial differential equations.
Any valid numerical solution of the governing equations should
Few application areas of computational methods:
exhibit the property of obeying the general mathematical
Automotive and engine applications, properties of partial differential equations.
Manufacturing applications, Eventhough partial differential equations have similar form, they show
Civil engineering applications, different properties that affect their solution procedures and
Air conditioning applications, application of boundary and initial conditions.
Fluid machine applications, · · ·
G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 8 / 160 G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 9 / 160
Condition
Boundary
R
Figure 2: Classification of Partial Differential Equations R
The curves y(x) that satisfy equation (9) are called the
characteristics of the partial differential equation.
The characteristics are paths in the solution domain along which
information propagates. The terminology hyperbolic, parabolic, and elliptic chosen to
Discontinuities in derivatives of the dependent variable, if exist, also classify partial differential equations reflects the analogy between
propagate through these characteristic paths. the form of the discriminant, b2 − 4ac, for partial differential
Based on the discreminant D, the PDE can be classified as, equations reflects and the form of the discriminant, b2 − 4ac, which
classifies conic sections given by
D Type of PDE Characteristic Curve Families
ax2 + bxy + cy 2 + dx + ey + f = 0 (10)
b2 − 4ac > 0 Hyperbolic Two real
b2 − 4ac = 0 Parabolic Single real
b2 − 4ac < 0 Elliptic No real
If a, b and c are not constants, the classification may change from
point to point in the domain.
G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 14 / 160 G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 15 / 160
Introduction Partial Differential Equations Introduction Partial Differential Equations
G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 16 / 160 G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 17 / 160
Introduction Partial Differential Equations Introduction Governing Equations of Fluid Mechanics and Heat Tran
G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 18 / 160 G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 19 / 160
Introduction Governing Equations of Fluid Mechanics and Heat Tran Introduction Governing Equations of Fluid Mechanics and Heat Tran
X-momentum equation
du ∂p ∂τxx ∂τyx ∂τzx
ρ =− + + + + ρfx (16) 3 Energy equation – First Law of Thermodynamics
dt ∂x ∂x ∂y ∂z
Y-momentum equation Energy equation in compact form
de ~ ~ ~ · (k ∇T
~ )+∇
~ · (V
~ · τ ) + Se
dv ∂p ∂τxy ∂τyy ∂τzy ρ + ∇ · (V p) = ∇ (20)
ρ =− + + + + ρfy (17) dt
dt ∂y ∂x ∂y ∂z
Z-momentum equation Generalized form of the governing equations:
dw ∂p ∂τxz ∂τyz ∂τzz ∂ ~ Φ) = div(ΓgradΦ) + S
ρ =− + + + + ρfz (18) (ρΦ) + div(ρV (21)
dt ∂z ∂x ∂y ∂z ∂t
Equations (16), (17) and (18) are the scalar forms of the linear The general procedures of computationally solving equation (21) are:
momentum equation in x-, y- and z- coordinates, respectively. 1 Dividing the geometry of the flow and/or heat transfer domain in
Linear momentum equation in compact form to smaller regions-meshing
~
dV
ρ ~ · σ + ρ~b
=∇ (19)
dt
G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 20 / 160 G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 21 / 160
Introduction Governing Equations of Fluid Mechanics and Heat Tran Introduction Governing Equations of Fluid Mechanics and Heat Tran
(δx)w (δx)e
Δx
aP TP = aE TE + aW TW + b (23)
G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 22 / 160 G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 23 / 160
Principles of Solution Discretization Principles of Solution Discretization
Discretization
is the process of transferring continuous models and equations into
discrete counterparts. Spatial Discretization
results in a set of algebraic equations. Spatial discretization is the process of dividing the computational
Consider the general transport equation below: domain in to smaller sub domains. The most common spatial
discretization methods are:
∂ ~ Φ) = div(ΓgradΦ) + S
(ρΦ) + div(ρV (24) The finite difference method,
∂t
The finite volume method, and
The first term accounts for the variation of φ with time while the
rest terms account for variation of φ with space. The finite element method.
Disretization methods:
Spatial Discretization- with respect to space
Temporal Discretization- with respect to time
G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 24 / 160 G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 25 / 160
G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 26 / 160 G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 27 / 160
Principles of Solution Discretization Principles of Solution Discretization
G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 28 / 160 G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 29 / 160
G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 30 / 160 G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 31 / 160
Principles of Solution Discretization Principles of Solution Discretization
Given
W
q̇ = 50000 m Three interior nodes
q̇ 3
W
k k = 15 mK 1 o
Ti = 1000 C i 2 3
To = 2000 C
L = 1.0m
Node 1: T2 −2T1 +Ti
Δx2 + kq̇ = 0 ⇒ 2T1 − T2 = kq̇ ∗ Δx2 + Ti = 308.33
x Node 2: T3 −2T2 +T1
Δx2
+ kq̇ = 0 ⇒ −T1 + 2T2 − T3 = kq̇ ∗ Δx2 = 208.33
Figure 8: Example 1 Node 3: To −2T3 +T2
Δx2
+ kq̇ = 0 ⇒ −T2 + 2T3 = kq̇ ∗ Δx2 + To = 408.33
The system of equations obtained can be solved in direct or iterative
methods.
The onedimensional conduction heat transfer equation is,
d dT
dx k dx + q̇ = 0
2
Assuming uniform thermal conductivity, ddxT2 + kq̇ = 0
G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 32 / 160 G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 33 / 160
G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 36 / 160 G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 37 / 160
G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 38 / 160 G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 39 / 160
Principles of Solution Discretization Principles of Solution Discretization
In Galerkin’s method, φ is assumed to vary in the element according to, Figure 10: Finite Element Mesh
G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 44 / 160 G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 45 / 160
The next step is to assemble the equations written for the four
elements,
(1) (1)
(1)
Example
k11 k12 0 0 0 φ1 F1
(1) (1) (2) (2) Determine the temperature distribution in the one dimensional heat
+ 0 0 φ2 F2(1) + F1(2)
k21 k22 k k
(2)
11
(2)
12
(3) (3)
(2) (3)
conduction problem with uniform heat generation shown using the
φ3 = F2 + F1
0 k21 k22 + k11 k12 0 finite element methods and validate the results with the analytical
(3) (3) (4) (4) (3) (4)
0 0 k21 k22 + k11 k12 φ4 F2 + F1 solution.
(4) (4) φ5 (4)
0 0 0 k21 k22 F2
(49)
Just as in the case of the fine difference case, the next step is to apply
boundary/initial conditions and solve equation (49).
G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 46 / 160 G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 47 / 160
Principles of Solution Discretization Principles of Solution Discretization
1 2 3 4
1 2 3 4 5
Given
W
q̇ q̇ = 50000 m3
W
Ti = 1000 C k k = 15 mK
Figure 12: Example 2
To = 2000 C
We will follow the above procedure to solve this problem. We have four
L = 1.0m elements as shown in Figure 5. Since the temperatures at nodes i and o
x are known, the unknown temperatures are only at nodes 1, 2 and 3.
So, our coefficient matrix in equation (49) will be a 3x3 one.
Figure 11: Example 2 The problem is governed by the one dimensional heat equation with
heat source.
d dT
dx k dx + q̇ = 0
Assuming uniform thermal conductivity the above equation becomes,
d2 T q̇
dx2 + k = 0
G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 48 / 160 G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 49 / 160
The Finite Volume Method Referring to Figure 13, integration of equation (50) between points
directly utilizes the conservation laws - the integral formulation w and e gives us,
over a differential volume. Z e Z e
d kdT
divides physical space into a number of arbitrary polyhedral dx + Sdx = 0 (51)
w dx dx w
control volumes
surface integral is approximated by the sum of the fluxes crossing
the individual faces (δx)w (δx)e
G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 54 / 160 G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 55 / 160
Principles of Solution Discretization Principles of Solution Discretization
G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 56 / 160 G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 57 / 160
Δyn
n
In addition to the west (W) and east (E) nodes for
one-dimensional case, the node of interest P has neighboring nodes
Δy
W w P e E in south (S) and in north (N) directions for two-dimensional cases.
Δys
s The integration over the control volume will be,
Z eZ n Z eZ n Z eZ n
S ∂ ∂T ∂ ∂T
k dxdy+ k dxdy+ q̇dxdy = 0
w s ∂x ∂x w s ∂y ∂y w s
Δxw Δxe (62)
Δx Similar to the case of the one-dimensional heat conduction, this
integral finally results in,
Figure 14: Grid used for the Discretization of Two-Dimensional Heat ∂T ∂T ∂T ∂T
Conduction Ae ke |e −Aw kw |w +An kn |n −As ks |s +q̇ΔxΔy = 0 (63)
∂x ∂x ∂y ∂y
G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 60 / 160 G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 61 / 160
⇒ aP TP = aE TE + aW TW + aN TN + aS TS + b (64)
where aP = AΔx
e ke
e
+ AΔxw kw
w
+ AΔx
n kn
n
+ AΔx
s ks
s
, aE = AΔx
e ke
e
, aW = Aw k w
Δxw ,
Δxe
An k n As k s
aN = Δxn , aS = Δxs Δxe− Δxe+
For three-dimensional problems, equation (64) becomes,
P e E
aP TP = aE TE + aW TW + aN TN + aS TS + aB TB + aT TT + b (65)
Figure 15: Approximation of Thermal Conductivity
For materials with variable thermal conductivity, k, thermal
conductivity at faces, for example at face e, is given by
ke = fe kP + (1 − fe )kE (66)
Δxe+
where fe = Δxe
G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 62 / 160 G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 63 / 160
Diffusion Steady State Diffusion Diffusion Steady State Diffusion
G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 64 / 160 G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 65 / 160
β1 γ1 T0 + b where
⇒ T1 = T2 + (71) βi
α1 α1 Pi =
αi − γi Pi−1
⇒ T1 = P1 T2 + Q1 (72)
and
For i=2, γi Qi−1 + b
Qi =
α2 T2 = β2 T3 + γ2 T1 + b (73) αi − γi Pi−1
G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 66 / 160 G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 67 / 160
Diffusion Steady State Diffusion Diffusion Steady State Diffusion
Tn−4 = Pn−4 Tn−3 + Qn−4 Figure 17: Grid for the Line-by-Line Method
...
In Fig. 17, ’*’ show nodes with assumed temperatures while ’o’ show
...
nodes whose temperature to be calculated.
... For multi-dimensional problems, the TDMA method combined
T2 = P2 T3 + Q2 with an iterative method is employed through what is called the
’Line-by-line’ method, shown in Fig. 17.
G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 68 / 160 G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 69 / 160
G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 70 / 160 G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 71 / 160
Diffusion Transient Diffusion Diffusion Transient Diffusion
Spatial integral of the first left hand side term is performed like in
the steady case,
For transient condition, the heat diffusion equation in rectangular Z e
coordinates is given by, ∂ ∂T
k dx = (aE TE − aP TP + aW TW )
w ∂x ∂x
∂ ∂T ∂ ∂T ∂ ∂T ∂T
k + k + k + q̇ = ρc (84) and as temperature is assumed constant between sides w and e,
∂x ∂x ∂y ∂y ∂z ∂z ∂t
right hand side integral becomes
For simplicity, let us start with one dimensional transient Z e
conduction. FVM integration of equation (84) gives us, ∂T ∂Tp
ρc dx = ρc Δx
w ∂t ∂t
Z Δt Z e Z Δt Z e
∂ ∂T ∂T
k dxdt + q̇ΔxΔt = ρc dxdt (85) Then equation (85) becomes,
0 w ∂x ∂x 0 w ∂t
Z Δt Z Δt
∂Tp
(aE TE − aP TP + aW TW )dt + q̇ΔxΔt = ρc Δxdt (86)
0 0 ∂t
G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 72 / 160 G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 73 / 160
G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 76 / 160 G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 77 / 160
(Δx)2
Δt < ρc . (95)
k
G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 78 / 160 G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 79 / 160
Diffusion Transient Diffusion Diffusion Transient Diffusion
G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 80 / 160 G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 81 / 160
Example I Example II
Consider a one-dimensional heat transfer through a 0.9m thick wall
shown below. Taking grid spacing of Δx = 0.15, determine the Solution:
transient temperature distribution in the wall at 10 time points. After As top and bottom sides of the geometry are insulated, the problem
what time will the steady state temperature be reached? Use the three can be considered as one-dimensional. The governing equation of this
transient schemes. problem is
Insulated ∂2T q̇ ρcp ∂T
2
+ =
∂x k k ∂t
Modified version of equation (89) can be used to solve this problem.
W
k=100 mK
ρcp Δx2
h=20 mW
TpΔt = θ TEΔt + TW
Δt
+ (1 − θ) TE0 + TW0
2K
W
q=1000 m2 W
q̇ = 3000 m
2θ + +
3 k Δt
ρc = 10000 mJ3 K T∞ = 300K
ρcp Δx2
−2 + 2θ + Tp0
k Δt
Insulated
G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 82 / 160 G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 83 / 160
Convection and Diffusion Steady Convection and Diffusion Convection and Diffusion Steady Convection and Diffusion
Convection and Diffusion Steady Convection and Diffusion Convection and Diffusion Steady Convection and Diffusion
The diffusive terms on the right hand side of equation (100) can The central differencing scheme assumes linear-piecewise profile for
be represented in a similar manner as we saw in chapter 3. φ.
φe = 0.5(φP + φE ), φw = 0.5(φP + φW )
There are different schemes used to represent the convective term
(ρuφ) on faces e and w. Then equation (4.4) can be written as,
These schemes include:
(φE − φP ) (φP − φW )
Central Differencing Scheme 0.5(ρu)e (φP +φE )−0.5(ρu)w (φP +φW ) = Γe −Γw
Upwind Differencing Scheme δxe δxw
(101)
Hybrid Differencing Scheme
Power-Law Scheme 0.5Fe (φP + φE ) − 0.5Fw (φP + φW ) = De (φE − φP ) − Dw (φP − φW )
QUICK Scheme (102)
Where, F=flow(convection) strength and D=diffusion conductance
G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 86 / 160 G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 87 / 160
Convection and Diffusion Steady Convection and Diffusion Convection and Diffusion Steady Convection and Diffusion
The discretization equation can be written in standard form as, Boundedness- when a convergent solution of iterative methods is
obtained, the scheme is said to be bounded.
aP φP = aW φW + aE φE (103)
For the solution to be convergent (bounded scheme) the
where Scarborough condition must be satisfied,
P
aE = De − 0.5Fe , aW = Dw + 0.5Fw , aP = De + 0.5Fe + Dw − 0.5Fw |anb | n≤1 at all nodes
<1 at one node, at least (104)
|aP |
To get realistic solution of convection-diffusion problems, the �
fundamental properties of discretization schemes must be fulfilled, where |a|aPnb |
| is sum of neighboring coefficients, and aP is net
Conservativeness, coefficient of central node P.
Boundedness, and
For converged solution, coefficients should be diagonally dominant.
Transportiveness.
Transportiveness- In cases where convection is more dominant over
Conservativeness- the flux of φ leaving a given cell across a face
diffusion, conditions down stream do not have significant effect on
should be equal to the flux of φ entering adjacent cell across the
upstream conditions.
same cell.
G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 88 / 160 G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 89 / 160
Convection and Diffusion Steady Convection and Diffusion Convection and Diffusion Steady Convection and Diffusion
where Pe=0 ⇒ purely diffusive flow while Pe=∞ ⇒ purely The central differencing scheme assumes equal effect of upstream
convective flow. and downstream conditions at a node, so it lacks the
transportiveness property at high Pe.
The central differencing scheme is always conservative.
Referring to the coefficients aW = Dw + 0.5Fw and
aE = De − 0.5Fe , there is a possibility for these coefficients to be
negative, which gives unstable solution.
F
aE = De − 0.5Fe > 0 ⇒ = Pe < 2
D
Central differencing scheme is bounded for Pe<2.
G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 90 / 160 G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 91 / 160
Convection and Diffusion Steady Convection and Diffusion Convection and Diffusion Steady Convection and Diffusion
φw = φW , φe = φP
u φW φw φE
φP φe Under the standard discretized equation, aP φP = aW φW + aE φE ,
the coefficients are given by,
W w P e E aE = De + max(0, −Fe )
φw = φP , φe = φE aW = Dw + max(0, Fw )
φW φw φP φe φE
u aP = aE + aW + (Fe − Fw )
The upwind scheme is conservative, bounded and transportive.
w e The accuracy of Upwind scheme is first order.
W P E
G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 92 / 160 G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 93 / 160
Convection and Diffusion Steady Convection and Diffusion Convection and Diffusion Steady Convection and Diffusion
aP = aE + aW + aEE + aW W + (Fe − Fw )
WW W w P e E EE
|Fw | |Fe |
Figure 20: QUICK Scheme αw = max 0, , αe = max 0,
Fw Fe
G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 96 / 160 G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 97 / 160
Convection and Diffusion Steady Convection and Diffusion Convection and Diffusion Steady Convection and Diffusion
Example
Water at a temperature of 400K enters a tube and leaves at a
temperature of 300K. Determine the temperature distribution in the
The QUICK scheme is:
tube assuming one-dimensional problem using the Central differencing,
Conservative, Upwind differencing, Hybrid differencing, Power-law, and QUICK
Third order accurate, kg
schemes. For water assume density to be ρ=1000 m3 and thermal
Transportive, and
conductivity to be k=0.6W/mK. Take the velocity to be u=0.001m/s.
Conditionally stable.
Compare the results with analytical solution.
To alleviate the stability problems, continuous modifications are
being made to the standard QUICK scheme. Solution
A program has been written using Python programming language and
the graphical result is given below. By varying the velocity and the
number of volumes see the effect of the Peclet number.
G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 98 / 160 G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 99 / 160
Convection and Diffusion Steady Convection and Diffusion Convection and Diffusion Steady Convection and Diffusion
G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 100 / 160 G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 101 / 160
Convection and Diffusion Steady Convection and Diffusion Convection and Diffusion Steady Convection and Diffusion
Peclet number=�0.02
Peclet number=�4.12
G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 102 / 160 G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 103 / 160
Convection and Diffusion Steady Convection and Diffusion Convection and Diffusion Multidimensional Convection and Diffusion
∂φ ∂φ
Jx = ρuφ − Γ and Jy = ρvφ − Γ (108)
∂x ∂y
G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 104 / 160 G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 105 / 160
Convection and Diffusion Multidimensional Convection and Diffusion Convection and Diffusion Multidimensional Convection and Diffusion
⇒ Fe − Fw + Fn − Fs = 0 (111)
Δy
Jw Je
W w e E
In standard form, the discretized equation becomes,
s
aP φP = aE φE + aW φW + aN φN + aS φS (112)
Js
S
where
The discretized form of equation (107) will be, Expressions for aE , aW , aN and aS vary for different schemes.
They can be obtained from one-dimensional cases with slight
Je − Jw + Jn − Js = 0 (109) modifications as follows.
G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 106 / 160 G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 107 / 160
Convection and Diffusion Multidimensional Convection and Diffusion Convection and Diffusion Multidimensional Convection and Diffusion
aW = Dw max 0, (1 − 0.1kP ew k)5 + max(0, Fw ), We can follow the same procedure to derive the FVM equations
aN = Dn max 0, (1 − 0.1kP en k)5 + max(0, −Fn ), for three dimensional problems.
aS = Ds max 0, (1 − 0.1kP es k)5 + max(0, Fs )
G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 108 / 160 G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 109 / 160
Convection and Diffusion False Diffusion Convection and Diffusion False Diffusion
ΓW + (ρu)w
2 δxw (ρu)w Cold Fluid Cold Fluid Cold Fluid
Upwind Differencing: aW = DW + Fw = +
δxw 2
a) b) c)
The diffusion coefficient in upwind scheme is equivalent to the
diffusion coefficient in central differencing scheme plus additional Figure 22: Effect of Diffusion on Temperature Distribution, a) Expected
term (ρu)w
2 δxw .
Result with Γ 6= 0. b) Expected with Γ = 0. c) Computational Result
with Γ = 0. (False Diffusion)
This additional term is called false diffusion and has unrealistic
implication.
The effect of false diffusion is significant in case of
multi-dimensional problems.
G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 110 / 160 G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 111 / 160
Convection and Diffusion One-way Coordinate System Convection and Diffusion Transient Convection and Diffusion
A coordinate system where the future event does not affect the
present or past events is called a one-way coordinate. A steady
one dimensional heat conduction in a plate is an example of
two-way coordinate.
Definitely time is a one-way coordinate.
Space coordinates can be one-way depending on the size of the
Peclet number.
Elliptic problems are always two-way coordinate problems while
parabolic problems are one-way coordinate problems.
G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 112 / 160 G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 113 / 160
Fluid flow Difficulties in Fluid Flow Modeling Fluid flow Difficulties in Fluid Flow Modeling
G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 114 / 160 G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 115 / 160
Fluid flow Difficulties in Fluid Flow Modeling Fluid flow Difficulties in Fluid Flow Modeling
∂ ∂ ∂ ∂v ∂ ∂v ∂P
(ρuv) + (ρvv) = (µ ) + (µ ) − + Sv (117)
∂x ∂y ∂x ∂x ∂y ∂y ∂y
In addition to the momentum equations, the flow should satisfy
the continuity equation.
∂ ∂
(ρu) + (ρv) = 0 (118)
∂x ∂y
The above equations indicate some difficulties,
Non-linear quantities, (ρu2 , ρv 2 )
Strong coupling of equations (u, and v in all equations) Figure 23: Scalar and Staggered Control Volumes
No transport equation for pressure.
G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 116 / 160 G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 117 / 160
Fluid flow Difficulties in Fluid Flow Modeling Fluid flow Difficulties in Fluid Flow Modeling
G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 118 / 160 G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 119 / 160
Fluid flow Difficulties in Fluid Flow Modeling Fluid flow Difficulties in Fluid Flow Modeling
Difficulties in Fluid Flow Modeling VII Difficulties in Fluid Flow Modeling VIII
Fluid flow Difficulties in Fluid Flow Modeling Fluid flow Difficulties in Fluid Flow Modeling
G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 126 / 160 G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 127 / 160
Fluid flow The SIMPLE Algorithm Fluid flow The SIMPLE Algorithm
The next step is to correct the pressure and the velocities, The main feature of SIMPLE algorithm is to drop the summation
terms from equations (130a) and (130b) to simplify the solution
P = P∗ + P′ (129a)
procedure. Then these equations reduce to:
u = u∗ + u′ (129b) ai,J u′i,J = (PI−1,J
′ ′
− PI,J )Ai,J
(131a)
v = v∗ + v′ (129c) ⇒ u′i,J = di,J (PI−1,J
′ ′
− PI,J )
where P, u and v are the correct pressure and velocities and P’, u’, ′ ′ ′
aI,j vI,j = (PI,J−1 − PI,J )AI,j
and v’ are pressure and velocity corrections. (131b)
′ ′ ′
Subtraction of equations (128a) and (128b) from equations (126) ⇒ vI,j = dI,j (PI,J−1 − PI,J )
and (127), respectively, give us, The corrected equations now become,
X
ai,J u′i,J = anb u′nb − (PI,J
′ ′
− PI−1,J )Ai,J (130a) ui,J = u∗i,J + u′i,J = u∗i,J + di,J (PI−1,J
′ ′
− PI,J ) (132a)
∗ ′ ∗ ′ ′
vI,j = vI,j + vI,j = vI,j + dI,j (PI,J−1 − PI,J ) (132b)
X
′ ′ ′ ′
aI,j vI,j = anb vnb − (PI,J − PI,J−1 )AI,j (130b)
G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 128 / 160 G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 129 / 160
Fluid flow The SIMPLE Algorithm Fluid flow The SIMPLE Algorithm
∗ ′ ∗ ′ ′
vI,j+1 = vI,j+1 + vI,j+1 = vI,j+1 + dI,j+1 (PI,J − PI,J+1 ) (133b)
Exercise
The flow should also satisfy the continuity equation. Write expressions for coefficients aI,J , aI+1,J , aI−1,J I, J + 1, aI,J−1 and
The continuity equation is discretized using the scalar grid. for the source term bI,J in equation (135).
(ρuA)i+1,J − (ρuA)i,J + (ρvA)I,j+1 − (ρvA)I,j = 0 Once P ′ is determined from its transport equation, it will be used
⇒ (ρA)i+1,J ui+1,J − (ρA)i,J ui,J + (134) to correct the pressure and velocities.
(ρA)I,j+1 vI,j+1 − (ρA)I,j vI,j = 0 After finding the correct pressure and velocities, other scalar
quantities (such as temperature) will be determined from their
own transport equations.
G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 130 / 160 G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 131 / 160
Fluid flow The SIMPLE Algorithm Fluid flow The SIMPLE Algorithm
G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 132 / 160 G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 133 / 160
Fluid flow The SIMPLER Algorithm Fluid flow The SIMPLER Algorithm
Fluid flow The SIMPLER Algorithm Fluid flow The SIMPLEC Algorithm
G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 138 / 160 G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 139 / 160
Fluid flow The PISO Algorithm Fluid flow The PISO Algorithm
G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 140 / 160 G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 141 / 160
Fluid flow The PISO Algorithm Fluid flow The PISO Algorithm
To enhance the SIMPLE procedure PISO performs a second Subtraction of equations (144a) from (145a) and (144b) from
corrector step. (145b), respectively gives us,
X
ai,J (u∗∗∗ ∗∗
i,J − ui,J ) = anb (u∗∗ ∗ ” ”
nb − unb ) + Ai,J (PI−1,J − PI,J ) (146a)
X
ai,J u∗∗
i,J =
∗∗
anb u∗nb + Ai,J (PI−1,J ∗∗
− PI,J ) + bi,J (144a)
X
∗∗∗ ∗∗ ∗∗ ∗ ” ”
∗∗
aI,j vI,j =
X
∗
anb vnb + ∗∗
AI,j (PI,J−1 − ∗∗
PI,J ) + bI,j (144b) aI,j (vI,j − vI,j )= anb (vnb − vnb ) + AI,j (PI,J−1 − PI,J ) (146b)
The velocities can be corrected once more as Substitution of equations (146a) and (146b) in to the continuity
equation gives us the transport equation for the second pressure
correction,
X
ai,J u∗∗∗
i,J = anb u∗∗ ∗∗∗ ∗∗∗
nb + Ai,J (PI−1,J − PI,J ) + bi,J (145a)
” ” ”
∗∗∗
X
∗∗ ∗∗∗ ∗∗∗
aI,J PI,J = aI+1,J PI+1,J + aI−1,J PI−1,J +
aI,j vI,j = anb vnb + AI,j (PI,J−1 − PI,J ) + bI,j (145b) ” ”
(147)
aI,J+1 PI,J+1 + aI,J−1 PI,J−1 + b”I,J
G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 142 / 160 G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 143 / 160
Fluid flow The PISO Algorithm Fluid flow The PISO Algorithm
G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 144 / 160 G. S. Tibba (AASTU) Computational Fluid Dynamics May 25, 2021 145 / 160