You are on page 1of 17

11/4/2013

1
2011 Sajid
Chapter
Dr Muhammad Sajid
Assistant Professor
NUST, SMME.
Reference Text:
Fundamental of
Computational Fluid
Dynamics, J. Anderson.
Email: m.sajid@smme.nust.edu.pk
Tel: 9085 6065
Computational Fluid
Dynamics
4-Nov-13
0
3
Governing Equations
Review
Conservation of mass
Conservation of Linear
Momentum
Navier Stokes Equation
Computational Fluid Dynamics
Introduction
CFD is fundamentally based on the governing
equations of fluid dynamics.
These equations represent mathematical
statements of the laws of physics regarding the
conservation of mass, momentum and energy.
The purpose of this chapter is to introduce the
derivation and discussion of these equations.
All of CFD is based on these equations; we must
therefore begin our understanding at the most
basic description of the fluid flow processes.

4
-
N
o
v
-
1
3

1
11/4/2013
2
Computational Fluid Dynamics
Introduction
After these equations are obtained, forms suited
for use in formulating CFD solutions will be
highlighted.
At the end of this chapter, some of the mysteries
surrounding CFD based predictions of fluid flow
problems will be replaced with an understanding
of the equations governing the fluid transport.

4
-
N
o
v
-
1
3

2
Computational Fluid Dynamics 3
Review of basic concepts
Fluid properties:
Physical laws are stated in terms of parameters like v, a etc.
Let u represent a fluid parameter/property and the amount
of that parameter per unit mass, i.e. u = m.
u is extensive property and is an intensive property.
Fluid element is a volume stationary in space,
Fluid particle is a volume of fluid moving with the flow.
A fluid particle in motion experiences two rates of
changes:
Due to changes in the fluid as a function of time.
Due to the fact that it moves to a different location in the fluid
with different conditions.
4
-
N
o
v
-
1
3

11/4/2013
3
Computational Fluid Dynamics 4
Review of basic concepts
The sum of these two rates of changes for a
property per unit mass | (extensive) is called
the total or substantive derivative D| /Dt:


With dx/dt=u, dy/dt=v, dz/dt=w, this results in:
dt
dz
z dt
dy
y dt
dx
x t Dt
D
c
c
+
c
c
+
c
c
+
c
c
=
| | | | |
4
-
N
o
v
-
1
3

|
| |
V +
c
c
= . u
t Dt
D
(
(
(

=
w
v
u
u
z y x c
c
+
c
c
+
c
c
= V
( ) ( ) ( ) ( ) ( )
z
w
y
v
x
u
t Dt
D
c
c
+
c
c
+
c
c
+
c
c
=
| | | | |
Computational Fluid Dynamics 5
Review of basic concepts
Fluid element and properties
The behavior of the fluid is
described in terms of macroscopic
properties:
Velocity u.
Pressure p.
Density .
Temperature T.
Energy E.
oy
ox
oz
(x,y,z)
1 1
2 2
W E
p p
p p x p p x
x x
o o
c c
= = +
c c
Properties at faces are expressed as first
two terms of a Taylor series expansion,
e.g. for p: and
Properties are averages of a sufficiently large
number of molecules.
A fluid element can be thought of as the smallest
volume for which the continuum assumption is
valid.
4
-
N
o
v
-
1
3

11/4/2013
4
Computational Fluid Dynamics
Review of basic concepts
Field representation
The flow field of a fluid can be thought of as being
comprised of a large number of finite sized fluid particles
which have mass, momentum, internal energy, and other
properties.
The distribution of fluid parameters (, v, P & a) over
space and time is called field representation.
Velocity field
Representation of fluid velocity as function of spatial
coordinates and time, V = f(x,y,z,t).

4
-
N
o
v
-
1
3

6
k

) , , , ( j

) , , , ( i

) , , , ( t z y x w t z y x v t z y x u V + + =

( )
2 2 2
w v u V V + + = =

Computational Fluid Dynamics
Review of basic concepts
System:
A fixed quantity of matter, and no mass is allowed to
cross the system boundary.
Control Volume:
A space of interest where mass can cross the boundary,
cv.
Control Surface:
The boundary of the control volume is called the control
surface, cs.
Reynolds transport theorem
4
-
N
o
v
-
1
3

7
( ) dA n V V d
t Dt
D
cs cv
sys
} }
+
c
c
=

() () () V +
c
c
= V
t Dt
D

11/4/2013
5
Computational Fluid Dynamics
Review of basic concepts
Lagrangian approach:
Fluid particles are tagged/identified
and their properties are determined
as they move in space.
Eulerian approach:
Fluid properties are determined at
fixed points in space as fluid flows
by.
Governing equations can be
derived using each method and
converted to the other form.

4
-
N
o
v
-
1
3

8
Computational Fluid Dynamics 10
The governing equations include the following
conservation laws of physics:
Conservation of mass.
Newtons second law: the change of momentum
equals the sum of forces on a fluid particle.
First law of thermodynamics (conservation of energy):
rate of change of energy equals the sum of rate of heat
addition to and work done on fluid particle.
The fluid is treated as a continuum. For length
scales of, say, 1m and larger, the molecular
structure and motions may be ignored.
Governing equations
4
-
N
o
v
-
1
3

11/4/2013
6
Computational Fluid Dynamics
Conservation of mass
Time rate of change of system mass = 0

For a fixed and nondeforming control volume:



t - ot, t (coincident), t + ot
From Reynolds transport theorem, we have.

4
-
N
o
v
-
1
3

11
0 =
sys
m
Dt
D
}
=
sys
sys
V d m
( )dA n V V d
t
m
Dt
D
cs cv
sys
} }
+
c
c
=


( ) dA n V V d
t Dt
D
cs cv
sys
} }
+
c
c
=

Computational Fluid Dynamics


Conservation of mass & Continuity

Or,

The continuity equation is an expression for the
conservation of mass in a control volume.






4
-
N
o
v
-
1
3

12
(
(
(

+
(
(
(

=
(
(
(

rface control su
orugh of mass th
f flow net rate o
lume control vo
side the of mass in
of change time rate
system coincident
s of the of the mas
of change time rate
}
c
c
=
(
(
(

cv
V d
t
lume control vo
side the of mass in
of change time rate
( )
}
=
(
(
(

cs
dA n V
rface control su
rough of mass th
f flow net rate o

( ) 0 = +
c
c
} }
dA n V V d
t
cs cv


11/4/2013
7
Computational Fluid Dynamics
Conservation of mass
Consider a differential fluid element.

Let density and velocities components at the
center of the element be , u, v and w.
The volume integral can be expressed as.


Next, we need to find the mass flow rate
through the surfaces

4
-
N
o
v
-
1
3

13
( ) 0 = +
c
c
} }
dA n V V d
t
cs cv


z y x
t
V d
t
cv
o o o

c
c
~
c
c
}
Computational Fluid Dynamics
Conservation of mass
If u is the horizontal mass flux at the center of
the element than at the faces the mass flux in
horizontal direction is.



Net rate of mass flowing through the surfaces is.





4
-
N
o
v
-
1
3

14
( ) ( ) ( )
z y x
x
u
z y
x
x
u
u z y
x
x
u
u o o o

o o
o
o o
o

c
c

c
c

(

c
c
+
2 2
11/4/2013
8
Computational Fluid Dynamics 15
Conservation of mass
The inflows (positive) and outflows (negative)
in all directions are:
x
y
z
( ) 1
.
2
w
w z x y
z

o o o
c | |
+
|
c \ .
( ) 1
.
2
v
v y x z
y

o o o
| | c
+
|
c
\ .
z y x
x
u
u o o o

|
.
|

\
|
c
c

2
1
.
) (
z x y
y
v
v o o o

|
|
.
|

\
|
c
c

2
1
.
) (
y x z
z
w
w o o o

|
.
|

\
|
c
c

2
1
.
) (
( ) 1
.
2
u
u x y z
x

o o o
c | |
+
|
c \ .
4
-
N
o
v
-
1
3

Computational Fluid Dynamics
Conservation of mass
Mass flow rate in the y and z directions is.



Combining these equations we get.


Thus,

4
-
N
o
v
-
1
3

16
( )
z y x
y
v
o o o

c
c
= direction y' ' in rate flow mass net
( )
( ) ( ) ( )
z y x
z
w
y
v
x
u
dA n V
cs
o o o

c
c
+
c
c
+
c
c
=
}
rate flow mass net

( ) ( ) ( )
0 =
(

c
c
+
c
c
+
c
c
+
c
c
z y x
z
w
y
v
x
u
z y x
t
o o o

o o o

( )
z y x
y
w
o o o

c
c
= direction z' ' in rate flow mass net
11/4/2013
9
Computational Fluid Dynamics 17
Continuity equation
Summing all terms in the previous slide and
dividing by the volume oxoyoz results in:

In vector notation:


For incompressible fluids c /c t = 0, and the
equation becomes: div u = 0.
Alternative ways to write this:
0
) ( ) ( ) (
=
c
c
+
c
c
+
c
c
+
c
c
z
w
y
v
x
u
t

0 ) ( = +
c
c
u

div
t
Change in density
Net flow of mass across boundaries
Convective term
0 =
c
c
+
c
c
+
c
c
z
w
y
v
x
u
0 =
c
c
i
i
x
u
4
-
N
o
v
-
1
3

Computational Fluid Dynamics
CONSERVATION OF MOMENTUM
4
-
N
o
v
-
1
3

20
11/4/2013
10
Computational Fluid Dynamics 22
Momentum equation in three dimensions
Newtons second law:
the sum of forces equals the rate of change of
momentum.
Rate of increase of momentum along x, y, and z
axis's.


Forces on fluid particles are:
Surface forces such as pressure and viscous forces.
Body forces, which act on a volume, such as gravity,
centrifugal and electromagnetic forces.




Dt
Dw
Dt
Dv
Dt
Du

4
-
N
o
v
-
1
3

() () () V +
c
c
= V
t Dt
D

Computational Fluid Dynamics
Conservation of Momentum
The surface forces are due to the stresses, t
exerted on the sides of the fluid element.
Stresses are forces per area. t = N/m
2
or Pa.
4
-
N
o
v
-
1
3

23
Two types of stresses:
normal stress (t
ij
), often shown as
(o
ij
) and
shear stress (t
ij
).
i refers to the axis normal to the surface,
j represents the direction of the stress.
Forces in direction of an axis are
positive, else negative.
11/4/2013
11
Computational Fluid Dynamics
All surface forces acting in the x-direction on the
fluid element are:













Conservation of momentum
4
-
N
o
v
-
1
3

24
x
z
y
z y x
x
p
p o o o )
2
1
. (
c
c
+
z y x
x
p
p o o o )
2
1
. (
c
c

z y z
z
zx
zx
o o o
t
t )
2
1
. (
c
c
+
y x z
z
zx
zx
o o o
t
t )
2
1
. (
c
c

z x y
y
yx
yx
o o o
t
t )
2
1
. (
c
c

z x y
y
yx
yx
o o o
t
t )
2
1
. (
c
c
+
z y x
x
xx
xx
o o o
t
t )
2
1
. (
c
c

z y x
x
xx
xx
o o o
t
t )
2
1
. (
c
c
+
Computational Fluid Dynamics 25
Conservation of Momentum
Set the rate of change of x-momentum for a
fluid particle Du/Dt equal to:
the sum of the forces due to surface stresses
shown in the previous slide, plus
the body forces. These are usually lumped
together into a source term S
M
:


p is a compressive stress and t
xx
is a tensile
stress.
Mx
zx
yx
xx
S
z y x
p
Dt
Du
+
c
c
+
c
c
+
c
+ c
=
t
t
t

) (
4
-
N
o
v
-
1
3

11/4/2013
12
Computational Fluid Dynamics 26
Conservation of Momentum


Similarly for y- and z-momentum:
Mx
zx
yx
xx
S
z y x
p
Dt
Du
+
c
c
+
c
c
+
c
+ c
=
t
t
t

) (
My
zy yy xy
S
z y
p
x Dt
Dv
+
c
c
+
c
+ c
+
c
c
=
t t t

) (
Mz
zz
yz
xz
S
z
p
y x Dt
Dw
+
c
+ c
+
c
c
+
c
c
=
) ( t
t
t

4
-
N
o
v
-
1
3

Computational Fluid Dynamics
Cauchys equation of motion
It is an expression for the acceleration, the
body forces, the pressure gradient forces, and
the viscous forces coupled with Newtons 2
nd

Law:


Note that this is an incredibly succinct
equation, and is much more complicated than
it at first appears.
4
-
N
o
v
-
1
3

27
ij
P k g
Dt
v D
t V + V =

11/4/2013
13
Computational Fluid Dynamics
Cauchys equation of motion
The full expanded version can be written for
each component, x, y, and z as:

4
-
N
o
v
-
1
3

28
z y x z
P
k g
z
v
v
y
v
v
x
v
v
t
v
z y x y
P
z
v
v
y
v
v
x
v
v
t
v
z y x x
P
z
v
v
y
v
v
x
v
v
t
v
zy yy xy
z
z
z
y
z
x
z
zy yy xy y
z
y
y
y
x
y
zx
yx
xx x
z
x
y
x
x
x
c
c
+
c
c
+
c
c
+
c
c
=
(

c
c
+
c
c
+
c
c
+
c
c
c
c
+
c
c
+
c
c
+
c
c
=
(

c
c
+
c
c
+
c
c
+
c
c
c
c
+
c
c
+
c
c
+
c
c
=
(

c
c
+
c
c
+
c
c
+
c
c
t t t

t t t

t
t
t

Computational Fluid Dynamics


Cauchys equation of motion
Things to notice about these equations:
only the z component equation has a body force,
because gravity only works in the z direction;
the x- and y-component equations are identical except
for subscripts;
the equations cannot be solved in their present form
because the stresses have not yet been recast in
terms of velocities.
In order to solve this equation for a specific
substance, like a fluid, we need to substitute
expressions involving velocity for the viscous
stress gradients.
4
-
N
o
v
-
1
3

29
11/4/2013
14
Computational Fluid Dynamics
Constitutive Relationship for Viscous Fluids
The mechanical behavior of every substance can
be described in terms of stress and strain, and the
relationship between these variables is called a
constitutive relationship.
Generally, these must be determined through
experiments and differ for every type of substance
(i.e., rock, plastic, fluid, gas, etc.).
Mathematically, the relationship is between the
stress tensor

and the strain tensor

(for rigid
solids) or strain-rate tensor

(for fluids).
4
-
N
o
v
-
1
3

30
Computational Fluid Dynamics
Constitutive Relationship for Viscous Fluids
Strain is a measure of distortion and the strain-
rate tensor has nine components just like the
stress tensor:



The diagonal entries

, and

represent
normal strain rates (elongation, contraction) and
the off-diagonal strains represent shear strains
rates. Remember


4
-
N
o
v
-
1
3

31
|
|
|
.
|

\
|
=
zz zy zx
yz yy yx
xz xy xx
ij
c c c
c c c
c c c
c


11/4/2013
15
Computational Fluid Dynamics
Strain and strain rate
The strain rates in the strain-rate tensor can be described
in terms of velocity gradients.
Consider a small elongate element of fluid moving in the
x-direction with a non-constant velocity.
The element is stretching as it is moving, resulting in a
normal strain-rate in the x-direction.
The element has a length of x and undergoes strain
which stretches it to x + x in the time t. x is the
small elongation of x and is always smaller than x.
The strain
xx
is:




4
-
N
o
v
-
1
3

32
x
x
xx
A
=
o
oc
Computational Fluid Dynamics
Strain and strain rate
There are different ways to determine the
relationship between strain rate and velocity gradients.
First Method:
The only way the box can deform (i.e., stretch; i.e.,
strain) is if the right-hand side moves faster than the
left-hand slide, which happens when > 0.
The rate of strain will equal because this is the
amount by which the right-hand side is moving faster
than the left-hand side.
So we can deduce the answer as:


4
-
N
o
v
-
1
3

33
11/4/2013
16
Computational Fluid Dynamics
Strain and strain rate
Second Method:
Take the expression for strain

= and
divide by the time increment, t;

The term in parentheses is the rate at which the
increment x grows with time or differential velocity,
the difference in velocity between the left and right
sides of the original box.





4
-
N
o
v
-
1
3

35
x
v
x
v
x
x t
x
x t
x x xx
xx
c
c
=
c
c
A
A
=
|
.
|

\
|
A
= =
1 1
o
o
o
oc
c
x
v
x v
x
v
x v v v
t
x
x
L
x
L L R
c
c
A = |
.
|

\
|
c
c
A + = =
o
o
x
x
xx
A
=
o
oc
|
.
|

\
|
A
=
A
=
t
x
x t x
x
t
xx
o
o
o
o
o
oc 1
Computational Fluid Dynamics
Strain and strain rate
Similar arguments show that the other diagonal
elements in the strain-rate tensor, are:

This is an example how just one of the 9
components of the strain-rate tensor is related to
the gradients of velocity in the x, y, and z
directions.


4
-
N
o
v
-
1
3

36
z
v
y
v
z
zz
y
yy
c
c
=
c
c
= c c ;
11/4/2013
17
Computational Fluid Dynamics
Strain and strain rate
The full strain-rate tensor can be expressed in terms of
velocity gradients as follows:







This is a symmetric tensor across the diagonal elements.
This strain-rate tensor is valid for all materials, including fluids.
It expresses the strain rates as a function of the velocity
gradients, and is constructed entirely from geometry.
4
-
N
o
v
-
1
3

37
|
|
|
|
|
|
|
|
.
|

\
|
c
c
|
|
.
|

\
|
c
c
+
c
c
|
.
|

\
|
c
c
+
c
c
|
|
.
|

\
|
c
c
+
c
c
c
c
|
|
.
|

\
|
c
c
+
c
c
|
.
|

\
|
c
c
+
c
c
|
|
.
|

\
|
c
c
+
c
c
c
c
=
|
|
|
.
|

\
|
=
z
v
y
v
z
v
x
v
z
v
y
v
z
v
y
v
x
v
y
v
x
v
z
v
x
v
y
v
x
v
z z
y
z x
z
y y y
x
z x
y
x x
zz zy zx
yz yy yx
xz xy xx
ij
2
1
2
1
2
1
2
1
2
1
2
1
c c c
c c c
c c c
c

You might also like