Professional Documents
Culture Documents
Fluid Mechanics and Its Applications 113 Fluid Mechanics and Its Applications
This textbook explores both the theoretical foundation of the Finite Volume Method
(FVM) and its applications in Computational Fluid Dynamics (CFD). Readers will
F. Moukalled
discover a thorough explanation of the FVM numerics and algorithms used in the
simulation of incompressible and compressible fluid flows, along with a detailed L. Mangani
examination of the components needed for the development of a collocated
unstructured pressure-based CFD solver. Two particular CFD codes are explored. The
first is uFVM, a three-dimensional unstructured pressure-based finite volume academic
M. Darwish
CFD code, implemented within Matlab®. The second is OpenFOAM®, an open source
The Finite
framework used in the development of a range of CFD programs for the simulation of
industrial scale flow problems.
With over 220 figures, numerous examples and more than one hundred exercises on
FVM numerics, programming, and applications, this textbook is suitable for use in an
introductory course on the FVM, in an advanced course on CFD algorithms, and as a
Volume Method
reference for CFD programmers and researchers.
9 783319 168739
Mathematical Description
of Physical Phenomena
Chapter 03
Conservation Equations
Physical Mathematical
Principles Equations
2
Lagrangian vs Eulerian
z
z
MV(t+∆t)
MV(t+∆t)
CV(t)
MV(t)
MV(t)
y
y
Governing equations can be derived using either framework and converted to the other form.
3
Reynolds Transport Theorem
φ ( x, y, z,t ) outward directed
Material or dS
surface normal
derivative
Dφ ∂φ ∂φ ∂x ∂φ ∂y ∂φ ∂z
= + + +
Dt ∂t ∂x ∂t ∂y ∂t ∂z ∂t
∂φ Convective
= + v ⋅ ∇φ
Rate of change for ∂t derivative
a moving particle
Rate of change at a
fixed point
f
d ∂
∫∫ φ ( r,t ) dΩ + ∂Ω!∫ φ ( r,t )( v − w ) ⋅ dS
∫∫Ω φ ( r,t ) dΩ = ∂t Ω=Ω
n
dt t t
dS
dΦ ∂Φ ! ! in
= + Φ out − Φ
dt ∂t
4
Transport Theorem
For any global system property B and property per unit mass b=B/m
⎛ dB ⎞ d⎛ ⎞
⎜⎝ dt ⎟⎠ = dt ⎜⎜ ∫ bρ dV ⎟⎟ + ∫ bρ v r ⋅ n dS
MV ⎝ V (t ) ⎠ S (t )
d⎛ ⎞ ∂ ⎛ dB ⎞ ∂
dt ⎜⎝ V∫
bρ dV ⎟⎠ ∫ ∂t ( bρ ) dV
= ⎜⎝ dt ⎟⎠ = ∫V ∂t ( bρ ) dV + ∫S bρ v ⋅ n dS
V MV
⎛ dB ⎞ ⎡∂ ⎤
⎜⎝ dt ⎟⎠ = ∫V ⎢⎣ ∂t ( ρ b ) + ∇ ⋅ ( ρ vb ) ⎥ dV
MV ⎦
⎛ dB ⎞ ⎡D ⎤
⎜⎝ dt ⎟⎠ = ∫V ⎢⎣ Dt ( ρ b ) + ρ b∇ ⋅ v ⎥ dV
MV ⎦
At t=0 the control volume occupy the same space as the control mass.
Physical laws are derived for control mass
5
Conservation of mass
System property B=m ⎛ dm ⎞
m ⎜⎝ dt ⎟⎠ = 0
Property per unit mass b= =1 MV
dS outward directed
surface normal
m volume V with
enclosing surface ∂V
# Dρ &
∫ %$ Dt + ρ∇ ⋅ v(' dV = 0
V
Dρ ∂ρ
+ ρ∇ ⋅ v = 0 + ∇ ⋅ ⎡⎣ ρ v ⎤⎦ = 0 ∇⋅v = 0
Dt ∂t
6
Second Law of Motion
! d ( mv ) $ ! $ f
System property B = mv
mv
Property per unit mass b= =v
m
⎡∂ ⎤
∫V ⎢⎣ ∂t ⎣ ⎦
⎡ ρ v ⎤ + ∇ ⋅ { ρ vv } − f ⎥ dV = 0
⎦
∂
⎡⎣ ρ v ⎤⎦ + ∇ ⋅ { ρ vv } = f
∂t
f = fs + fb Volume forces
Surface forces
7
⎛ !"#
τ xx ⎞ fs = Σ ⋅ dS = Σ ⋅ ndS
⎜ Σ +p τ xy τ xz ⎟
⎛ p ⎜ ⎟
0 ⎞ ⎜
xx n
0 τ yy ⎟ dS
⎜ ⎟ !"#
Σ = −⎜ 0 p 0 ⎟ +⎜ ⎟ = − pI + τ
⎜ τ yx Σ yy + p τ yz ⎟
⎜ 0 0 p ⎟⎠ ⎜
⎝ τ zz ⎟
⎜ !"# ⎟
⎜⎝ τ zx τ zy Σ zz + p ⎟⎠
⎛ Σ Σ xz ⎞
1
(
p = − Σ xx + Σ yy + Σ zz
3
) ⎜
xx
Σ xy
⎟
Σ = ⎜ Σ yx Σ yy Σ yz ⎟
⎜ ⎟
⎜⎝ Σ zx Σ zy Σ zz ⎟⎠
∫f
V
s
dV = ∫ Σ ⋅ n dS = ∫ ∇ ⋅ Σ dV ⇒ fs = ⎡⎣∇ ⋅ Σ ⎤⎦ = −∇p + ⎡⎣∇ ⋅ τ ⎤⎦
S V
∂
⎡ ρ v ⎤ + ∇ ⋅ { ρ vv } = −∇p + ⎡⎣∇ ⋅ τ ⎤⎦ + fb
∂t ⎣ ⎦
{
τ = µ ∇v + ( ∇v )
T
} + λ (∇ ⋅ v ) I
8
⎡ ∂u ⎛ ∂v ∂u ⎞ ⎛ ∂u ∂w ⎞ ⎤
⎢ 2 µ + λ∇ ⋅ v µ ⎜ + ⎟ µ⎜ + ⎥
⎢ ∂x ⎝ ∂x ∂ y ⎠ ⎝ ∂z ∂x ⎟⎠ ⎥
⎢ ⎥
⎛ ∂v ∂u ⎞ ∂v ⎛ ∂w ∂v ⎞
τ = ⎢ µ ⎜ + ⎟ 2µ + λ∇ ⋅ v µ ⎜ + ⎥
⎢ ⎝ ∂x ∂ y ⎠ ∂y ⎝ ∂ y ∂z ⎟⎠ ⎥
⎢ ⎥
⎢ ⎛ ∂u ∂w ⎞ ⎛ ∂w ∂v ⎞ ∂w ⎥
⎢ µ +
⎜⎝ ∂z ∂x ⎟⎠ µ +
⎜⎝ ∂ y ∂z ⎟⎠ 2 µ + λ∇ ⋅ v ⎥
∂z
⎣ ⎦
(
⎢⎣
T
)
⎡⎣∇ ⋅ τ ⎤⎦ = ∇ ⋅ ⎡ µ ∇v + ( ∇v ) ⎤ + ∇ ( λ∇ ⋅ v )
⎥⎦
⎡ ∂ ⎡ ∂u ⎤ ∂ ⎡ ⎛ ∂v ∂u ⎞ ⎤ ∂ ⎡ ⎛ ∂u ∂w ⎞ ⎤ ⎤
⎢ ⎢ 2 µ + λ∇ ⋅ v ⎥ + ∂ y ⎢ µ ⎜⎝ ∂x + ∂ y ⎟⎠ ⎥ + ∂z ⎢ µ ⎜⎝ ∂z + ∂x ⎟⎠ ⎥ ⎥
⎢ ∂x ⎣ ∂x ⎦ ⎣ ⎦ ⎣ ⎦ ⎥
⎢ ⎥
⎢ ∂ ⎡ ⎛ ∂v ∂u ⎞ ⎤ ∂ ⎡ ∂v ⎤ ∂ ⎡ ⎛ ∂w ∂v ⎞ ⎤ ⎥
=⎢ ⎢ µ + ⎥ + 2 µ + λ∇ ⋅ v ⎥ + ∂z ⎢ µ ⎜⎝ ∂ y + ∂z ⎟⎠ ⎥
∂x ⎣ ⎜⎝ ∂x ∂ y ⎟⎠ ⎦ ∂ y ⎢⎣ ∂ y ⎦ ⎣ ⎦
⎥
⎢ ⎥
⎢ ∂ ⎡ ⎛ ∂u ∂w ⎞ ⎤ ∂ ⎡ ⎛ ∂w ∂v ⎞ ⎤ ∂ ⎡ ∂w ⎤ ⎥
⎢ ⎢µ ⎜ + ⎟ ⎥ + ⎢ µ ⎜ + ⎟ ⎥ + ⎢ 2 µ + λ ∇ ⋅ v ⎥ ⎥
⎢⎣ ∂x ⎣ ⎝ ∂z ∂x ⎠ ⎦ ∂ y ⎣ ⎝ ∂ y ∂z ⎠ ⎦ ∂z ⎣ ∂z ⎦ ⎥⎦
9
Momentum Equation
∂
∂t { ⎢⎣
T
⎦⎥ }
⎡⎣ ρ v ⎤⎦ + ∇ ⋅ { ρ vv } = −∇p + ∇ ⋅ µ ⎡∇v + ( ∇v ) ⎤ + ∇ ( λ∇ ⋅ v ) + fb
∂
∂t {
!#####"#####
}
⎡⎣ ρ v ⎤⎦ + ∇ ⋅ { ρ vv } = ∇ ⋅ { µ∇v } − ∇p + ∇ ⋅ µ ( ∇v ) + ∇ ( λ∇ ⋅ v ) + fb
T
$
Qv
∂
⎡⎣ ρ v ⎤⎦ + ∇ ⋅ { ρ vv } = ∇ ⋅ { µ∇v } − ∇p + Q v
∂t
∂
∂t { ⎣
T
⎦ }
⎡⎣ ρ v ⎤⎦ + ∇ ⋅ { ρ vv } = −∇p + ∇ ⋅ µ ⎡⎢∇v + ( ∇v ) ⎤⎥ + fb
10
Momentum Equation
∂ ⎡ ∂u ⎤ ∂ ⎡⎛ ∂v ∂u ⎞ ⎤ ∂ ⎡⎛ ∂u ∂w ⎞ ⎤
µ 2 + µ ⎢ + ⎥ + µ ⎢ + ⎥
∂x ⎢⎣ ∂x ⎥⎦ ∂ y ⎣⎜⎝ ∂x ∂ y ⎟⎠ ⎦ ∂z ⎣⎜⎝ ∂z ∂x ⎟⎠ ⎦
⎡ ∂2 u ∂2 u ∂2 u ∂2 v ∂2 u ∂2 w ⎤
= µ⎢ 2 + 2 + 2 + + 2+ ⎥
⎣ ∂x ∂x ∂ y ∂ yx ∂z ∂zx ⎦ viscosity is constant
⎡⎛ ∂2 u ∂2 u ∂2 u ⎞ ∂2 u ∂2 v ∂2 w ⎤
= µ ⎢⎜ 2 + 2 + 2 ⎟ + 2 + + ++ ⎥
⎣ ⎝ ∂x ∂ y ∂z ⎠ ∂x ∂ yx ∂zx ⎦
⎡⎛ ∂ 2 u ∂ 2 u ∂ 2 u ⎞ ∂ ⎛ ∂u ∂v ∂w ⎞ ⎤
= µ ⎢⎜ 2 + 2 + 2 ⎟ + ⎜ + + ⎟⎠ ⎥
⎣ ⎝ ∂x ∂ y ∂z ⎠ ∂x ⎝ ∂x ∂ y ∂z ⎦
∂
⎡⎣ ρ v ⎤⎦ + ∇ ⋅ { ρ vv } = −∇p + µ∇ 2 v + fb
∂t
∂
⎡ ρ v ⎤ + ∇ ⋅ { ρ vv } = −∇p + fb invscid
∂t ⎣ ⎦
11
Conservation of Energy
⎛ dE ⎞ ! − W! Rate of change of the energy of the system is
⎜⎝ dt ⎟⎠ = Q equal to the rate of transfer of energy
MV
dE ∂ ( ρe )
= ∫∫ dΩ + !∫ ρe ( v − w ) ⋅ dS = Q" − W"
dt Ω=Ωt ∂t ∂Ω
dE & ∂ ( ρe ) )
= ∫∫ ' + ∇ ⋅ ( ρe v − w ) * dΩ = Q! − W!
[ ]
dt Ω=Ωt ( ∂t +
where
v2 p
e = C vT + + − g ⋅ r
2 ρ
12
Conservation of Energy
dE & ∂ ( ρe ) )
= ∫∫ ' + ∇ ⋅ ( ρe v − w ) * dΩ
[ ]
dt Ω=Ωt ( ∂t +
= !∫ k∇T ⋅ dS + !∫ v ⋅ p dS + ∫∫ ( Φ + ρv ⋅ g ) dΩ
"$#$%
∂Ω
"$#$
∂Ω
% "$$$#$$$
Ω=Ωt
%
Flux of heat through mechanical contribution of heat Internal heat generation and body forces
the surface arising from compression
and viscous dissipation
= ∫∫ {∇ ⋅ ( k∇T ) + ∇ ⋅ ( vp ) + Φ + ρv ⋅ g} dΩ
Ω=Ωt
∂ ( ρe )
+ ∇ ⋅ ( ρe [ v − w ]) = ∇ ⋅ ( k∇T ) + ∇ ⋅ (σ ⋅ v ) + Φ + ρv ⋅ g
∂t
13
Generalized Form
dt ⎝ MV ⎠ V ⎣ ∂t ⎦
(
Term II = − ∫ Jφdiffusion ⋅ n dS = − ∫ ∇ ⋅ Jφdiffusion dV = ∫ ∇ ⋅ Γφ ∇φ dV )
S V V
Term III = ∫ Qφ dV
V
∂
∂t
( !# " #$ ! # "
(
ρφ ) + ∇ ⋅ ( ρ vφ ) = ∇ ⋅ Γ φ ∇φ + Q
#$ !
φ
)
!"
# # $ convection
source
unsteady diffusion term term
term
term
14
Characterizing Flows
Reynolds Number
•The Reynolds number ReReis= ρUL
defined as: Turbulent flow region
µ Transition region
•Here L is a characteristic length, Laminar flow region Re > 5x105
16
Grashof Number
17
Prandtl Number
µc p viscous diffusion rate υ
•In heat transfer problems, Pr =
k
== =
thermal diffusion rate α
the Prandtl number
controls the relative
thickness of the Velocity
Temperature
y
momentum and thermal Thermal
Hydrodynamic Free Stream Free Stream
boundary layers. boundary layer Velocity Temperature
boundary layer
18 Pr >1
Prandtl Number
19
Peclet Number
The Péclet number is defined as the ratio of the advective transport rate of a physical
quantity to its diffusive transport rate. For the case of heat transfer, the Péclet number
is given by
ρULc p UL
Pe = = = Re * Pr
k α
Pe = 1 Pe = 10 Pe = 100 Pe = 1000
Isotherms at increasing values of Péclet number for fluid flow over a flat plate maintained at
a hot uniform temperature.
20
Schmidt Number
Sc = 0.07 Sc = 0.7 Sc = 7
ν
Sc =
D
Iso-concentrations at increasing values of Schmidt number (other parameters held fixed) for natural convection
mass transfer in the annulus between concentric horizontal cylinders of rhombic cross sections with larger
solute concentration on the inner wall
21
Nusselt Number
hL
Nu =
k
is the dimensionless form of the convection heat transfer coefficient and provides
a measure of the convection heat transfer at a solid surface.
22
Mach Number
•Ma < 0.3 incompressible Ma =
v Flow speed
=
•Otherwise compressible a Sound seed
23
Eckert Number
v⋅v
Ec =
c p ΔT
For small Eckert number several the terms in the energy equation become
negligible (e.g., viscous dissipation, body forces, etc.). This reduces the energy
equation to its incompressible form (i.e., a balance between conduction and
( Ec ≪ 1)
convection).
24
Froude Number
U Velocity
Fr = = U
c Wave propagation velocity Fr =
gL
c = gL L : length of ship at the waterline level
A
c= g A : cross − sectional area, B :free − surface width
B
rapid flow
25
Weber Number
ρU 2 L
We =
σ
26