CFD Class M.tech
CFD Class M.tech
Computational
Fluid Dynamics
Instructor : Bibhab Kumar Lodh
Assistant Professor, Chemical Engg. Department
Class : M.Tech
Course : CFD (Elective)
Fluid (gas and liquid) flows are governed by
partial differential equations which
represent conservation laws for the mass,
momentum, and energy.
safety experts to reduce health risks from radiation and other hazards
Experiments Simulations
Quantitative description of flow Quantitative prediction of flow
phenomena using measurements phenomena using CFD software
• for one quantity at a time • for all desired quantities
• at a limited number of points • with high resolution in
and time instants space and time
• for a laboratory-scale model • for the actual flow domain
• for a limited range of problems • for virtually any problem and
and operating conditions realistic operating conditions
Experiments Simulations
Equipment and personnel
•Expensive •Cheap(er)
are difficult to transport
•Slow •Fast(er)
CFD software is portable,
•Sequential •parallel
easy to use and modify
•Single-Purpose •Multi-Purpose
• the human being who inspects and interprets the simulation results
2. Identify the forces which cause and influence the fluid motion.
• finite differences/volumes/elements
• high- vs. low-order approximations
• Outer iterations: the coefficients of the discrete problem are updated using the
solution values from the previous iteration so as to
– Global errors refer to solution errors over the entire flow domain
Local errors contribute to the global error and may move throughout the
grid.
Classification of errors
Acknowledged errors
• Examine grid convergence: as the mesh and/or and the time step are
refined, the spatial and temporal discretization errors, respectively,
should asymptotically approach zero (in the absence of round-off errors)
2u 2u 2u
u u ) u 2 2 2
2
Laplacian
x y z
z v
y
k j
x i
Tensorial quantities in fluid dynamics
Velocity gradient
vx v y vz
x x x
v v y vz
v vx , v y , vz x
y y y v
vx v y vz
z z z
b1
a, b R 3 , a . b a b a1 a2 a3 b2 a1b1 a2b2 a3b3 R
T
b
3
Example.
u u u
v.u vx v y vz Convective derivative
x y z
Elementary tensor calculus
tij }, {tij } R3 X 3 , R
2. {t tij },
1 2
ij
1 2
, R
1 2 3X 3
,aR
t11 t12 t13 3
3. a . a1 a2 a3 t21 t22 t23 ai ti1 , ti 2 , ti3 , ith row
t i 1
31 t32 t33
t11 t12 t13 a1 t1 j
3
4. a t21 t22 t23 a2 t2 j a j ( j thColumn)
t t33 a3
j 1
31 t32 t
3j
Elementary tensor calculus
t1 t1 t1 t 2 t 2 t 2 k 1
31 32 33 31 32 33
3 3
6. : tr ( .( ) ) t t
1 2 1 2 T 1 2
ik ik
i 1 k 1
Divergence theorem
Let R3and n be the outward unit normal to the boundary
Then
fdx f . n ds
for any differentiable function f(x)
Example. A sphere:
x R : x 1 , x R : x 1
3 3
x.x
f . n ds
x
ds x ds ds 4
Governing equations of fluid dynamics
Physical principles Mathematical equations
1. Mass is conserved • continuity equation
2. Newton’s second law • momentum equations
3. Energy is conserved • energy equation
x dy
v y ( x, y, z, t ), y t y0
dt 0
dz
vz ( x, y, z, t ), z t z0
dt 0
Definition :
A streamline is a curve which is tangent to the
velocity vector v = (vx, vy, vz) at every point.
y
It is given by the relation:
v
dy v y
dx dy dz
y(x)
dx vx
vx vy vz
x
du u u dx u dy u dz u
v.u
dt t x dt y dt z dt t
d u ( x, t )
dt Vt
u ( x, t ) dV
V Vt t
dV u ( x, t )v. n dS
S St
S n
• conservation of mass f u d u
• conservation of momentum
• conservation of energy v dS Flux Function
f
2. Apply it to a suitable flow model Divergence theorem yields
u
• Eulerian/Lagrangian approach
• for a finite/infinitesimal CV V t dV V . f dV V q dV
3. Extract integral relations or PDEs Partial differential equation
u
• which embody the physical . f q in V
principle t
Derivation of the continuity equation
Physical principle: conservation of mass
dm d
dt
dt Vt
dV V V
t t
dV
S S t
v.n dS 0
Lagrangian representation
d
.( v) v. .v dt
.v 0
Incompressible flows: d
. v 0 (constant density)
dt
Conservation of momentum
Physical principle: f = ma (Newton’s second law)
dS Total force f g dV h dS where h .n
dV n Body forces g gravitational, electromagnetic,. . .
1 2
(. v) I 2 D(v), where D (v) (v vT ),
2 3
Conservation of momentum…………….
Normal stress: stretching
vx
xx . v 2 y
x
v y
yy . v 2 xx
y
vz
zz . v 2
z
x
Shear stress: deformation
v y
vx yx
xy yx ( ) y
x y
v vz
xz zx ( x )
z x
v v y
yz zy ( z )
y z x
Derivation of the momentum equations
Newton’s law for a moving volume
d ( v)
dt
Vt
v dV V Vt t
dV S St
( v v ). n dS
V Vt
g dV S S . n dS
t
( v)
V t .( v v ) dV V . g dV , pI
( v)
Momentum equations .( v v) p . g
t
( v) v dv
.( v v) v. v v .( v)
t t t dt
substantial derivative continuity equation
Conservation of energy
Physical principle: e s w (first law of thermodynamics)
dS
e accumulation of internal energy
dV n s heat transmitted to the fluid particle
k thermal conductivity
Work done per unit time = total force × velocity
w f . v g . v dV v .( . n) dS , pI
2
v
specific kinetic energy due to translational motion
2
Integral conservation law for a moving volume
d ( E )
dt
Vt
E dV
V Vt t
dV
S S t
Ev. n dS accumulation
q dV k T . n dS heating
V Vt S St
( E )
V t .( Ev ) dV V .(k T ) q .( . v) g. v dV ,
where .( .v) .( pv) .( . v) .( pv) v.(. ) v :
Different forms of the energy equation
Total energy equation
( E )
.( Ev) .(k T ) q .( pv) v.(. ) v : g. v
t
( E ) E dE
.( Ev) v. E E .( v)
t t t dt
substantial derivative continuity equation
dv
Momentum equations p . g (Lagrangian form)
dt
dE de dv ( e)
v. .( ev) v. p . g
dt dt dt t
Internal energy equation
( e)
.( ev) .(k T ) q p. v v :
t
Dimensionless form of equations
Motivation: sometimes equations are normalized in order to
t X v p T T0
t ,
*
X ,
*
v ,
*
p
*
, T
*
t0 L0 v0 v0 2
T1 T0
Reynolds number v0 L0 inertia
Re
vis cos ity
v inertia
Froude number Fr 0
L0 g gravity
v0 L0 convection
Peclet number Pe
k diffusion
v
Mach number M
c
L0
Strouhal number St
v0t0
Prandtl number Pr
k
Model simplifications
Objective: derive analytical solutions / reduce computational cost
Compressible Navier-Stokes equations
= const 0
Incompressible Navier-Stokes equations Compressible Euler equations
f 2 f (x) 2 n f (x) n
f ( x x) f ( x) x 2 n
x x 2 x n
gradient curvature
4
f ( x)
f 2 f (x) 2 n f (x) n 5
f ( x x) f ( x) x n f ( x)
x x 2 2 x n 2
1 3
x x x
Discretization
2 x 3 x
2 3
i 1, j i , j x 2 3
x i , j x i , j 2 x i , j 6
x
i 1, j 1 i, j 1 i 1, j 1
y
P
i 1, j i, j i 1, j
i 1, j 1 i, j 1 i 1, j 1