Professional Documents
Culture Documents
CFD Notes PDF
CFD Notes PDF
CFD Notes PDF
Dynamics
Plume Analysis
ELECTROSTATIC
PRECIPITATOR
qx g”’ qx+∆x
∆x
d 1 d2
q x + Δx = qx + (q x )∆ x + 2
(q x )∆ x 2
+ ...
dx 2! dx
Natteri M Sudharsan, Ph.D., 27
Neglecting higher order terms, we get,
d
qx+ ∆ x = qx + ( qx )∆ x (3)
dx
Substituting the Taylor series expansion for qx+∆x
In (2) yields
d
qx = qx + ( qx )∆ x
dx
dT
q x = − kA
dx
d dT
− kA ∆x= 0 (4)
dx dx
d 2T
− kA 2 ∆ x = 0
dx
since k, A or ∆x cannot be zero, in coordinate
invariant form yields:
∇ 2T = 0
d
q x + g ' ' ' A∆ x = q x + ( qx )∆ x
dx
dT
q x = − kA (6)
dx
d 2T g' ' '
2
+ = 0
dx k
∅d
Let,
T − T∞ x
θ = ;X =
Tb − T∞ L
dT = (Tb − T∞ )dθ ; dx = L dX and dx 2 = L2 dX 2
(Tb − T∞ ) d 2θ hP
2 2
− (θ (Tb − T∞ ) + T∞ − T∞ ) = 0
L dx kA
d 2θ (8)
2
− (mL ) 2
θ = 0
dx
2
d T
kA 2 − σ ε P (T 4 − T∞4 ) = 0
dx
Slug Flow
Tx Tx+∆x
d 2T
kA 2 ∆ x = ρ C p AUdT
dx
2
d T U dT
=
dx 2
α dx
x T − Ti
X= , θ =
L TL − Ti
d 2θ dθ UL
= Pe , Pe =
dX 2
dX α
∂ T ∂T
2
α =
∂x 2
∂τ
Natteri M Sudharsan, Ph.D., 36
DISCRETIZATION METHODS
2! 3!
1 '' 2 1 ''' 3
y ( x + h) = y i + y i ( h ) +
'
y i ( h ) + y i ( h)
2! 3!
Multiply y( x + h) by 2 and subtract from y( x + 2h)
yi + 2 − 2 y i + 1 = − y i + yi'' ( ∆ x ) 2
yi + 2 − 2 yi + 1 + yi
y =
''
i
∆ x2 Natteri M Sudharsan, Ph.D., 38
yi − 2 yi − 1 + yi − 2
Backward difference y =''
i
∆ x2
Central difference using yi − 1 − 2 yi + yi + 1
y(x+h) and y(x-h) yields y =
''
i
∆ x2
Non uniform grid size discretization
∂T ∂ 2T a 2 ∆ x 2
Ti − 1 = Ti − ( a∆ x ) +
∂x ∂ x2 2
∂T ∂ 2T ∆ x 2
i-1 i i+1 Ti + 1 = Ti + (∆ x) +
∂x ∂ x2 2
Let the distance Ti − 1 + aTi + 1 = (1 + a )Ti +
∂ 2T a∆ x 2 (1 + a )
from node i-1 to i be ∂ x2 2
Ti − 1 − (1 + a )Ti + aTi + 1 ∂ 2T
a∆x and i to i+1 be a∆ x (1 + a )
2
=
∂ x2
∆x. 2
Natteri M Sudharsan, Ph.D., 39
FVM Formulation
W P E
w e
∆xwP ∆xPe
∆xWP ∆xPE
∂ ∂φ ∂φ k
Γ = ρ ;Γ =
∂x ∂x ∂τ cp
Integrating the above yields
n+ 1
φ −φ
n+ 1 n
φE−φP φ P − φW
ρ P
= β Γ e
P
− Γw +
∆ τ ∆ x PE ∆ xWP
n
φE−φP φ P − φW
(1 − β ) Γ e − Γw + S∆ x( wP + Pe )
∆ x PE ∆ xWP
Where β = 0 is Explicit and β = 1 is Implicit
W P E
w e
∆xwP ∆xPe
∆xWP ∆xPE
1
Angular deformatio n = ( ∆ θ 1 + ∆ θ 2 )
2
1 ∂ v ∂ u
Or shear strain rate = +
2 ∂ x ∂ y
Natteri M Sudharsan, Ph.D., 50
Pure rotation occurs when
fluid particle rotates such that
both axis moves with the same
magnitude and direction
Vorticity is ∇ × V or 2ω
Natteri M Sudharsan, Ph.D., 51
Reynold’s Transport
Theorem
Consider a fluid mass occupying an
arbitrary volume. Let Φ be a transported
quantity, and φ its intensive property, i.e.
φ = Φ/m.
Let Sp be the space occupied by the fluid
and cv the control volume overlapping
fluid space Sp.
dΦ ∂
dt
= ∫cv ∂ t ( ρ φ )dV + cs∫ ( ρ φ )u • n dS
∫ ( ρ φ )u • n dS = ∫ ∇ • ( ρ φ u)dV
cs cv
Sp(t+∆ t)
Sp(∆ t)
CV
∫ (ρ φ ) t dV
sp ( t )
∫ (ρ φ )
sp ( t + ∆ t )
t+ ∆ t dV
− ∫ ( ρ
sp ( t )
φ ) t dV + ∫ ( ρ φ )
sp ( t + ∆ t )
t + ∆ t dV
∫ (ρ φ )
sp ( t + ∆ t )
t+ ∆ t dV − ∫ (ρ φ )
sp ( t )
t+ ∆ t dV +
∫ (ρ φ )
sp ( t )
t+ ∆ t dV − ∫ (ρ φ ) dV
sp ( t )
t
∆Φ dΦ ∂
Lim
∆t
=
dt
= ∫cv ∂ t (ρ φ )dV + cs
∫ (ρ φ )u • n dS
∫ (ρ φ )u • n dS = ∫ ∇
cs cv
• (ρ φ u )dV
∂m ∂Φ
= = 0
∂t ∂t
∂
∫CV ∂ t (ρ )dV + cs∫ ρ u • ndS = 0
Natteri M Sudharsan, Ph.D., 58
Hence , using Gauss divergence theorem
we have,
∂ρ
∫cv ∂ t + ∇ • (ρ u) dV = 0
For an incompressible fluid we have
∇ .u = 0
σxy
σxx
σyx
σyy
Natteri M Sudharsan, Ph.D., 61
Resolving the horizontal forces we have,
σ xx × dy − σ yx × dx
ds
dy
dx
∫ n • σ ds + ∫ X dV
cs cv
dΦ
dt
= ∫ (∇
cv
• σ + X ) dV
dΦ ∂
dt
= ∫cv ∂ t (ρ u) + ∇ • (uuρ ) dV
and equating this rate of change of
momentum to the forces =
∫ (∇
cv
• σ + X ) dV
∂
(ρ u ) + ∇ • (ρ uu ) = ∇ • σ + X
∂t
Natteri M Sudharsan, Ph.D., 65
∂ρ ∂u
u + ρ + u∇ .ρ u + ρ u • ∇ u
∂t ∂t
= ∇ •σ + X
Taking the first and third term in LHS
and second and fourth term of LHS we
have,
∂ρ ∂u
u + ∇ • ρ u + ρ + u • ∇ u = ∇ • σ + X
∂t ∂t
∂u
ρ + u • ∇ u = ∇ • σ + X
∂t
∂ / ∂ x ∂ u / ∂ x ∂ v / ∂ x ∂ w / ∂ x
∇ u = ∂ / ∂ y ( u v w) = ∂ u / ∂ y ∂ v / ∂ y ∂ w / ∂ y = D
∂ /∂ z ∂ u/∂ z ∂ v/∂ z ∂ w/∂ z
∂u ∂v ∂w
∇ •u= + +
∂x ∂y ∂z
D C It moves to a
position
A’B’C’D’.
A B
• ∂ ∂ε ∂ ∂η
•
δ1 = = u y δ2= = vx
∂t ∂y ∂t ∂x
1
( )
•
ε xy = uy + vx
2
2
σ ij = − pδ ij + µ 2ε ij − ∇ • uδ ij
3
Thus,
∂u
ρ + u • ∇ u = ∇ • σ + X
∂t
1
= X − ∇ p + 2∇ • µ ε ij − ∇ • uδ ij
3
Natteri M Sudharsan, Ph.D., 78
For isothermal and incompressible flow ∇•u =
0, hence the III term in LHS equation simplifies
as
∇ • 2 µ (ε ij ) = ∇ • 2 µ (ε ij + ε ji )
1
2
∂ 2u ∂ 2u ∂ 2u ∂ 2v ∂ 2w
2µ + µ + µ 2+ µ + µ
∂x 2
∂y 2
∂z ∂ x∂ y ∂ x∂ z
∂ 2v ∂ 2v ∂ 2v ∂ 2u ∂ 2w
= 2µ + µ 2+ µ 2+ µ + µ
∂y 2
∂x ∂z ∂ x∂ y ∂ y∂ z
∂ 2w ∂ 2w ∂ 2w ∂ 2u ∂ 2v
2 µ ∂ z 2 + µ ∂ x 2 + µ ∂ y 2 + µ ∂ x∂ z + µ ∂ y∂ z
Natteri M Sudharsan, Ph.D., 81
Re-arranging, we get:
∂ 2u ∂ 2u ∂ 2u ∂ 2u ∂ 2v ∂ 2w
µ + µ + µ 2+ µ + µ + µ
∂x 2
∂y 2
∂z ∂x 2
∂ x∂ y ∂ x∂ z
∂ 2v ∂ 2v ∂ 2v ∂ 2u ∂ 2v ∂ 2w
= µ 2+ µ + µ 2+ µ + µ + µ
∂x ∂y 2
∂z ∂ x∂ y ∂y 2
∂ y∂ z
∂ 2w ∂ 2w ∂ 2w ∂ 2u ∂ 2v ∂ 2w
µ ∂ x 2 + µ ∂ y 2 + µ ∂ z 2 + + µ ∂ x∂ z + µ ∂ y∂ z + µ
∂ z 2
∂ 2u ∂ 2u ∂ 2u ∂ ∂ u ∂ v ∂ w
µ + µ + µ 2+ µ + +
∂x ∂y ∂z ∂x ∂x ∂y ∂z
2 2
∂ 2v ∂ 2v ∂ 2v ∂ ∂u ∂u ∂u
= µ 2+ µ + µ 2+ µ + +
∂x ∂y ∂z ∂y ∂x ∂y ∂z
2
∂ 2w ∂ 2w ∂ 2w ∂ ∂ u ∂ v ∂ w
µ + µ + µ + µ + +
∂x ∂y ∂z ∂z ∂x ∂y ∂z
2 2 2
∂ w ∂ w ∂ 2
w
∂ x2 + ∂ y2 + ∂ z 2
Natteri M Sudharsan, Ph.D., 83
Thus,
∇ • 2µ (ε ij ) = ∇ • 2µ (ε ij + ε ji )
1
2
= µ ∇ 2u
We therefore have:
∇ •u= 0
∂u
ρ + u • ∇ u = X − ∇ p + µ ∇ 2u
∂t
∂u
ρ + u • ∇ u = X − ∇ p
∂t
Natteri M Sudharsan, Ph.D., 85
Integrating Euler equation over time
yields the Bernoulli equation
ρu• ∇ u = −∇ p *
Where, p* = p + X and
∂ u / ∂ x ∂ v / ∂ x ∂ w / ∂ x
u • ∇ u = ( u v w) ∂ u / ∂ y ∂ v / ∂ y ∂ w / ∂ y
∂ u/∂ z ∂ v/∂ z ∂ w/∂ z
k UL ρ C P UL ρ UL k
α = , Pe = = = Γ =
ρ Cp α k Γ CP
Continuity Equation
∂ρ ∂
+ (ρ u j ) = 0
∂ t ∂ xj
Generalized Transport Equation
∂ ∂ ∂ ∂ φ
(ρ φ ) + ( ρ u jφ ) = Γ + S
∂t ∂ xj ∂ xj ∂ xj
∂T ∂T ∂ T 2
ρ + ρU = Γ
∂t ∂x ∂x 2
τw
uτ = , Frictional Velocity
ρ
Natteri M Sudharsan, Ph.D., 97
Linear Sub Layer y+<5 Law of the wall
∂u
τ ( y) = µ ≈τ w
∂y
Integrating with B.C’s u =0, y=0, gives a linear
relationship and equated as,
τ wy τ wy u y 2
u= = = τ
µ ρν ν
u uτ y + +
= or u = y
uτ ν
Natteri M Sudharsan, Ph.D., 98
Far away form the wall one can expect
that velocity at a point be influenced by
the retarding effect of the wall through
the value of wall shear stress, but not by
viscosity itself. Thus,
umax − u
= g( y / δ )
uτ
is known as the velocity defect law.
Natteri M Sudharsan, Ph.D., 99
Log Layer – Turbulent region close to the
smooth wall. The region outside viscous sub
layer where both viscous and turbulent effects
are important.
30 < y+ < 500. τ varies slowly with distance
from the wall and within this inner region it is
assumed to be constant and equal to wall
shear stress.
+1 + 1 +
u = ln y + B, B = ln [Ey ]
k k
Natteri M Sudharsan, Ph.D., 100
k and B are universal constants, E is the
wall roughness, the constants are obtained
by measurements. B=5.5, k=0.4 and E =
9.8. The log layer is shown to be valid
from
0.02 < y/δ <0.2 by experiments.
umax − u 1 y
= ln + A
uτ k δ
A is a constant and called the law of the
wake
Natteri M Sudharsan, Ph.D., 102
TWO – DIMENSIONAL FLOW
∂u ∂v
+ = 0
∂x ∂y
∂u ∂u ∂p ∂ 2u ∂ 2u
ρ u + v = − + µ 2 +
2
∂x ∂y ∂x ∂x ∂y
∂v ∂v ∂p ∂ 2v ∂ 2v
ρ u + v = − + µ 2 +
2
∂x ∂y ∂y ∂x ∂y
∂u ∂v
+ = 0
∂x ∂y
∂u ∂u dU 1 ∂ τ
u +v ≈U +
∂x ∂y dx ρ ∂ y
∂u
τl = µ LAMINAR
∂y
∂u
τ t = µτ TURBULENT
∂y
Natteri M Sudharsan, Ph.D., 105
Boundary Layers with
Pressure Gradient
Flow separation is caused by excessive
momentum loss near the wall in a boundary
layer trying to move downstream against
increasing pressure dp/dx>0 is called adverse
pressure gradient. At the wall u = v = 0 thus
∂ 2 u 1 dp
=
∂y 2
µ dx
Natteri M Sudharsan, Ph.D., 106
Boundary Layers with
Pressure Gradient
∂u ∂u ∂u ∂ u ∂P ∂ ∂ ∂
ρ + u +v + w = − + µ ∇ u + σ ' xx +
2
τ ' yx τ 'zx
∂t ∂x ∂y ∂z ∂x ∂x ∂y ∂z
∂u 2 ∂ u ∂ v ∂ u ∂ w
σ xx = − P '+ 2 µ − ρ u' ; τ xy = µ + − ρ u' v' : τ xz = µ + − ρ u' w'
∂x ∂y ∂x ∂z ∂x
∂u ∂u
τ t = − ρ u ' v' = µ τ = ρντ
∂y ∂y
∂u ∂u
τl= µ = ρν
∂y ∂y
∂y
∂u
ντ = l 2
∂y
l is the Prandtl mixing length, For wall –
boundary layers
Natteri M Sudharsan, Ph.D., 117
l = χ y for y ≤ (λ / χ )δ and l = λ δ for y > (λ / χ )δ
λ mixing length const = 0.09, χ ,Von Karman const = 0.41,
δ , location where 0.99 U ∞ is realised and y , dist from wall .
− y (τ w / ρ )1 / 2
l = χ y 1 − e
+
A ν
τ w , is the wall shear stress, and A+
is the Von
Driest damping constant = 26 for smooth surface
without suction or blowing on low pressure
gradient surface.
Natteri M Sudharsan, Ph.D., 119
For free shear flows, the mixing length scales
with the shear layer thickness (δs). The eddie
viscosity can be written as
ν τ = CU d δ s
The x-momentum
∂u ∂ ∂ ∂P ∂ ∂ u ∂ ∂u ∂v
ρ + ρ ( u u) + ρ (u v ) = − + 2 µ eff + µ +
∂ x ∂ y ∂y ∂x
eff
∂t ∂x ∂y ∂x ∂x
µ eff = µ + µ τ ; µ τ = C µ ρ κ / ε ; C µ = 0.09
2
∂u
G = µτ 2 + + +
∂x ∂ y ∂ y ∂ x
∂ ∂ ∂ µ eff ∂ κ ∂ µ eff ∂ κ
ρ ( uκ ) + ρ (vκ ) = + + G− ρε
∂x ∂y ∂x σ κ ∂x ∂y σ κ ∂y
∂ ∂ ∂ µ eff ∂ ε ∂ µ eff ∂ ε ε ε2
ρ ( uε ) + ρ ( vε ) = + + C1 f1 G − C 2 f 2 ρ
∂x ∂y ∂x σ ε ∂x ∂y σ ε ∂y κ κ
Momentum Equation
∂
∫
∂tV
ρ vdV + ∫ ρ v(v − v ).n dS = ∫ T .n dS + ∫
∂S
s
∂S V
f b dV
T = pI + µ [∇ v + (∇ v ) ] T
∂
∫
∂tV
ρ vdV + ∫ ρ v(v − v ).n dS = − ∫ ∇ pdV + ∫ µ (∇ v ).n dS + ∫
∂S
s
V ∂S V
f b dV
Linear system
aPC0φ p 0 = ∑
j=1
aPj 0φ Pj 0 + bp 0
(momentum)
k
1 k
Pressure correction ∑j = 1 aC (∇ p′ ) j ⋅ Aj n j = ∑ ( v ⋅ n) j A j
P0 j j= 1
C
j Nj
rc
rj
φ SO
j
1
( 1
) [
= φ C + φ N j + ( grad φ )C .( r j − rC ) + ( grad φ ) N j .( r j − rN j )
2 2
]
Natteri M Sudharsan, Ph.D., 137
Term gives the value midway between cell
1
2
(
φ C + φ Nj ) centers connected by a straight line.
1
2
[
( grad φ )C .( r j − rC ) + ( grad φ ) N j .( r j − rN j ) ]
The above expression provides a correction which
takes into account that the cell-face center may not lie
on the line connecting the cell centers and/or that the
distances to the two CV’s may not be equal. This
would vanish otherwise.
φn+ 1
=φ +
n ∆τ
2
[ ]
F (φ n ,τ n ) + F (φ n + 1 ,τ n + 1 ) Crank − Nicolson
φ n+ 1 4 n 1 n− 1 2
= φ − φ
3 3 3
[ ]
+ F (φ n + 1 ,τ n + 1 ) ∆ τ Quadratic profile
Natteri M Sudharsan, Ph.D., 139
Moving Grid
∂
∫
∂tV
dV − ∫ v .n dS = 0
∂S
• δ Vj
Vj=
∂S
∫ v .n dS = ∆t
• 3δ V j − δ V jn
Vj = ∫ v dS =
Sj
s
2∆ t
•
Cj = ∫ ρ φ (v − v s ).dS ≈ m j φ *
j
Sj
Γφ j
SO 1
( 1
) [
= Γ C + Γ N j + ( grad Γ )C .( r j − rC ) + ( grad Γ ) N j .( r j − rN j )
2 2
]
The approximation of the gradient based on the SO
(second order) interpolation
1
∫ grad φ dV = ∫ φ dS ⇒ ( grad φ )C ≈
∆V
∑ j
φ jSj
V S
φ N j − φ C gradφ .d j Sj
( gradφ ) *
j = ( gradφ ) j +
dj
−
Sj
dj
TERMS I II III
d j = rC − rN j
Natteri M Sudharsan, Ph.D., 143
The over-bar in term III represents the arithmetic average
of values calculated at node C and Nj.
φ
aφ −
C C ∑ j
φ
a φ Nj = r
j
φ
C
∇ p' =
2 1
A
(
∇ .v 0 )
This is poisson’s equation for pressure correction
Natteri M Sudharsan, Ph.D., 147
As seen the velocity obtained in the predictor step
does not necessarily satisfy the continuity equation
and there exist a mass imbalance in each CV.
The velocity and pressure corrections are obtained
from
∆V ∂ρ
v' = v grad p' , ρ ' = p'
aC ∂p
∆V This coefficient comes from the discretized
aCv momentum equation.
v SO
j =
1
2
( ) [
1
vC + v N j + ( grad v )C .( r j − rC ) + ( grad v ) N j .( r j − rN j )
2
]
Cell-center pressure gradients are not sensitive to
oscillations between immediate neighbors. Hence a
dissipation term is added to the interpolated velocity
which can sense such oscillations and smoothen it.
Thank you
Natteri M Sudharsan, Ph.D., 150