Conservation Laws of Fluid Motion and Boundary Conditions: Ibrahim Sezai
Conservation Laws of Fluid Motion and Boundary Conditions: Ibrahim Sezai
Conservation Laws of Fluid Motion and Boundary Conditions: Ibrahim Sezai
Ibrahim Sezai
Department of Mechanical Engineering
Eastern Mediterranean University
Fall 2009-2010
1
The six faces are labelled
N, S, E, W, T, B
ρ = ρ (x, y, z, t) p = p (x, y, z, t)
T = T (x, y, z, t) u = u (x, y, z, t) Fig. 2-1 Fluid element for
conservation laws.
Fluid properties at faces are approximated by means of the two terms
of the Taylor series
The pressure at the W and E faces, can be expressed as
∂p 1 ∂p 1
p− δx and p+ δx
∂x 2 ∂x 2
ME555 : Computational Fluid Dynamics 3 I. Sezai – Eastern Mediterranean University
∂ ∂ρ ⎛ ∂( ρu) 1 ⎞ ⎛ ∂( ρu) 1 ⎞
( ρδ xδ yδ z ) = (δ xδ yδ z ) = ⎜ ρ u − δ x ⎟ δ yδ z − ⎜ ρ u + δ x ⎟ δ yδ z
∂t ∂t ⎝ ∂x 2 ⎠ ⎝ ∂x 2 ⎠
⎛ ∂( ρ v) 1 ⎞ ⎛ ∂ ( ρ v) 1 ⎞
+ ⎜ ρv − δ y ⎟ δ xδ z − ⎜ ρ v + δ y ⎟ δ xδ z
⎝ ∂y 2 ⎠ ⎝ ∂y 2 ⎠
⎛ ∂ ( ρ w) 1 ⎞ ⎛ ∂ ( ρ w) 1 ⎞
+ ⎜ ρw − δ z ⎟ δ xδ y − ⎜ ρ w + δ z ⎟ δ xδ y
⎝ ∂z 2 ⎠ ⎝ ∂z 2 ⎠
2
Rates of change following a fluid particle and for a fluid element
Dφ ∂φ ∂φ dx ∂φ dy ∂φ dz
= + + +
Dt ∂t ∂x dt ∂y dt ∂z dt
A fluid particle follows the flow, so
dx / dt = u
dy / dt = v
dz / dt = w
3
Rewriting eq. (2-9) = 0 (due to conservation
of mass)
∂ ( ρφ ) ⎡ ∂φ ⎤ ⎡ ∂ρ ⎤ Dφ
+ div( ρφ u) = ρ ⎢ + u ⋅ gradφ ⎥ + φ ⎢ + div( ρ u) ⎥ = ρ
∂t ⎣ ∂t ⎦ ⎣ ∂t ⎦ Dt
x-momentum u Du ∂( ρu)
ρ + div ( ρ uu )
Dt ∂t
y-momentum v Dv ∂ ( ρ v)
ρ + div ( ρ vu )
Dt ∂t
z-momentum w Dw ∂ ( ρ w)
ρ + div ( ρ wu )
Dt ∂t
energy E DE ∂( ρ E )
ρ + div ( ρ Eu )
Dt ∂t
ME555 : Computational Fluid Dynamics 7 I. Sezai – Eastern Mediterranean University
The rates of increase of x-, y-, and z-momentum per unit volume are
Du Dv Dw
ρ ρ ρ
Dt Dt Dt
We distinguish two types of forces on fluid particles:
• surface forces - pressure forces
- viscous forces
• body forces - gravity forces
- centrifugal forces source terms
- Coriolis forces
- electromagnetic force
The pressure, a normal stress, is denoted by p.
Viscous stresses are denoted by τ.
ME555 : Computational Fluid Dynamics 8 I. Sezai – Eastern Mediterranean University
4
Fig. 2-3 Stress components on three
faces of fluid element.
The suffices i and j in τij indicate that
the stress component acts in the j-
direction on a surface normal to the i-
direction.
⎡⎛ ∂p 1 ⎞ ⎛ ∂τ xx 1 ⎞ ⎤
⎢⎜ p − ∂x 2 δ x ⎟ − ⎜τ xx − ∂x 2 δ x ⎟ ⎥ δ yδ z
⎣⎝ ⎠ ⎝ ⎠⎦
⎡ ⎛ ∂p 1 ⎞ ⎛ ∂τ xx 1 ⎞ ⎤
+ ⎢− ⎜ p + δ x ⎟ + τ xx + δ x δ yδ z
⎣ ⎝ ∂x 2 ⎠ ⎜⎝ ∂x 2 ⎟⎠ ⎥⎦
⎛ ∂p ∂τ ⎞ (2-12a)
= ⎜ − + xx ⎟ δ xδ yδ z
⎝ ∂x ∂x ⎠
The net force in the x-direction on the pair of faces (N, S) is
⎛ ∂τ ⎞ ⎛ ∂τ ⎞ ∂τ
− ⎜ τ yx − yx 12 δ y ⎟ δ xδ z + ⎜ τ yx + yx 12 δ y ⎟ δ xδ z = yx δ xδ yδ z (2-12b)
⎝ ∂y ⎠ ⎝ ∂y ⎠ ∂y
The net force in the x-direction on the pair of faces (T, B) is
⎛ ∂τ ⎞ ⎛ ∂τ ⎞ ∂τ
− ⎜ τ zx − zx 12 δ z ⎟ δ xδ y + ⎜ τ zx + zx 12 δ z ⎟ δ xδ y = zx δ xδ yδ z (2-12c)
⎝ ∂z ⎠ ⎝ ∂z ⎠ ∂z
ME555 : Computational Fluid Dynamics 10 I. Sezai – Eastern Mediterranean University
5
The total force per unit volume on the fluid due to these surface
stresses is equal to the sum of (2-12a), (2-12b), (2-12c) divided by the
volume δxδyδz:
∂ (− p + τ xx ) ∂τ yx ∂τ zx (2.13)
+ +
∂x ∂y ∂z
To find x-component of the momentum equation:
⎛ Rate of change of ⎞ ⎛ Total force in x-direction ⎞ ⎛ Total force in x -direction ⎞
⎜ x-momentum of ⎟ = ⎜ on the element due to ⎟ + ⎜ on the element due to ⎟
⎜ fluid particle ⎟ ⎜ surface stresses ⎟ ⎜ body forces ⎟
⎝
⎠ ⎝
⎠ ⎝
⎠
Eqn.(2.11) Eqn.(2.13) S Mx
Du ∂ (− p + τ xx ) ∂τ yx ∂τ zx (2.14a)
ρ = + + + S Mx
Dt ∂x ∂y ∂z
SMx = Body force on the element per unit volume in x-direction
SMz = –ρg (body force due to gravity per unit volume)
ME555 : Computational Fluid Dynamics 11 I. Sezai – Eastern Mediterranean University
6
Energy Equation in Three Dimensions
( )
Rate of increase ⎛ Net rate of ⎞ ⎛ Net rate of work ⎞
= ⎜ heat added to ⎟ + ⎜ done on ⎟
of energy of fluid particle ⎜ fluid particle ⎟ ⎜ fluid particle ⎟
⎝ ⎠ ⎝ ⎠
DE
ρ
Dt
⎡ ∂ [u (− p + τ xx ) ] ∂ (uτ yx ) ∂ (uτ zx ) ⎤
⎢ + + ⎥ δ xδ yδ z (2.16a)
⎣ ∂x ∂y ∂z ⎦
7
Summing (2.16a-c) yields the total rate of work done on the fluid
particle by surface stresses:
where
∂ (up ) ∂ (vp ) ∂ ( wp )
− div( pu) = − − −
∂x ∂y ∂z
The net rate of heat transfer to the CV due to heat flow in x-direction is
8
Similarly, the net rates of heat transfer to the fluid due to heat flows in
the y- and z-direction are
∂q ∂q (2.18b-c)
− y δ xδ yδ z and − z δ xδ yδ z
∂y ∂z
The net rate of heat added to CV per unit volume is the sum of (2.18a-
c) divided by δxδyδz
∂q ∂q ∂q
− x − y − z = −div q (2.19)
∂x ∂y ∂z
∂T ∂T ∂T
qx = −k q y = −k qz = − k
∂x ∂y ∂z
This can be written in vector form as
q = −k grad T
Combining (2.19) and (2.20) yields the rate of heat addition to the
CV due to heat conduction
−div q = div(k grad T )
ME555 : Computational Fluid Dynamics 17 I. Sezai – Eastern Mediterranean University
Energy Equation
sum of the net rate of work done on the CV
by surface stresses (2.17)
⎡ ∂ (uτ xx ) ∂ (uτ yx ) ∂ (uτ zx ) ∂ (vτ xy ) ⎤
⎢ −div( pu) + + + + ⎥
DE ∂ x ∂y ∂z ∂x ⎥
ρ =⎢ (2.22)
Dt ⎢ + ∂ (vτ yy ) + ∂ (vτ zy ) + ∂ ( wτ xz ) + ∂ ( wτ yz ) + ∂ ( wτ zz ) ⎥
⎢⎣ ∂y ∂z ∂x ∂y ∂z ⎥⎦
+ div(k grad T ) + SE
N
net rate of heat addition rate of increase of energy
to the fluid (2.21) due to sources
E = i + 12 (u 2 + v 2 + w2 )
kinetic energy
i = internal (thermal) energy
SE = source of energy per unit volume per unit time (i.e. effects of
potential energy changes)
ME555 : Computational Fluid Dynamics 18 I. Sezai – Eastern Mediterranean University
9
Multiplying
the x-momentum equation (2.14a) by u
the y-momentum equation (2.14a) by v
the z-momentum equation (2.14a) by w
10
h =i+ p/ρ and ho = h + 12 (u 2 + v 2 + w2 )
Combining these two definitions with the one for specific energy E
ho = i + p / ρ + 12 (u 2 + v 2 + w2 ) = E + p / ρ (2.26)
Substituting of (2.26) into (2.22) yields the (total) enthalphy equation
∂ ( ρ ho )
+ div( ρ ho u) = div(k grad T )
∂t
∂p ∂ (uτ xx ) ∂ (uτ yx ) ∂ (uτ zx )
+ + + +
∂t ∂x ∂y ∂z
∂ (vτ xy ) ∂ (vτ yy ) ∂ (vτ zy )
+ + +
∂x ∂y ∂z
∂ ( wτ xz ) ∂ ( wτ yz ) ∂ ( wτ zz )
+ + + + Sh (2.27)
∂x ∂y ∂z
ME555 : Computational Fluid Dynamics 21 I. Sezai – Eastern Mediterranean University
Equations of State
Thermodynamic variables: ρ, p, i and T.
Relationships between the thermodynamic variables can be obtained
through the assumption of thermodynamic equilibrium.
Equations of state for pressure p and specific internal energy i:
p = p(ρ, T) and i = i(ρ, T)
For a perfect gas equations of state are
p = ρRT and i = CvT
In the flow of compressible fluids the equations of state provide the
linkage between the energy equation and mass conservation and
momentum equations.
Liquids and gases flowing at low speeds behave as incompressible
fluids.
Without density variations there is no linkage between the energy
equation and the mass conservation and momentum equations.
11
Navier-Stokes Equations for a Newtonian Fluid
We need a suitable model for the viscous stresses τij.
Viscous stresses can be expressed as functions of the
local deformation rate (or strain rate).
In 3D flows the local rate of deformation is
composed of the linear deformation rate and the
volumetric deformation rate.
All gases and many liquids are isotropic.
The rate of linear deformation of a fluid element has
nine components in 3D, six of which are
independent in isotropic fluids.
They are denoted by the symbol eij.
∂u ∂v ∂w
exx = eyy = ezz =
∂x ∂y ∂z
There are also shearing linear deformation components:
⎛ ∂u ∂v ⎞ ⎛ ∂u ∂w ⎞
exy = eyx = 12 ⎜ + ⎟ exz = ezx = 12 ⎜ + ⎟
⎝ ∂y ∂x ⎠ ⎝ ∂z ∂x ⎠
⎛ ∂v ∂w ⎞
eyz = ezy = 12 ⎜ + ⎟
⎝ ∂z ∂y ⎠
12
In a Newtonian fluid the viscous stresses are
proportional to the rates of deformation.
The 3D form of Newton’s law of viscosity for
compressible flows involves two constants of
proportionality:
- The (first) dynamic viscosity, μ, to relate stresses
to linear deformations,
- The second viscosity, λ, to relate stresses to the
volumetric deformation.
The nine viscous stress components, of which six are independent, are
∂u ∂v ∂w
τ xx = 2 μ + λ div u τ yy = 2μ + λ div u τ zz = 2μ + λ div u
∂x ∂y ∂z
⎛ ∂u ∂v ⎞ ⎛ ∂u ∂w ⎞
τ xy = τ yx = μ ⎜ + ⎟ τ xz = τ zx = μ ⎜ + ⎟
⎝ ∂y ∂x ⎠ ⎝ ∂z ∂x ⎠
(2.31)
⎛ ∂v ∂w ⎞
τ yz = τ zy = μ ⎜ + ⎟
⎝ ∂z ∂y ⎠
Not much is known about the second viscosity λ, because its effect is
small.
For gases a good working approximation is λ = –⅔μ
Liquids are incompressible so the mass conservation equation is
div u = 0
ME555 : Computational Fluid Dynamics 26 I. Sezai – Eastern Mediterranean University
13
Substitution of the above shear stresses (2.31) into (2.14a-c) yields the
Navier-Stokes equations
Du ∂p ∂ ⎡ ∂u ⎤ ∂ ⎡ ∂u ∂v ⎤
ρ = − + ⎢ 2μ + λ div u ⎥ + ⎢ μ + ⎥ (2.32a)
Dt ∂x ∂x ⎣ ∂x ⎦ ∂y ⎣ ∂y ∂x ⎦
∂ ⎡ ∂v ∂w ⎤
+ μ + + S Mx
∂z ⎣⎢ ∂z ∂x ⎦⎥
Dv ∂p ∂ ⎡ ∂u ∂v ⎤ ∂ ⎡ ∂v ⎤ (2.32b)
ρ = − + ⎢μ + + 2μ + λ div u ⎥
Dt ∂y ∂x ⎣ ∂y ∂x ⎥⎦ ∂y ⎢⎣ ∂y ⎦
∂ ⎡ ∂v ∂w ⎤
+ μ + + S My
∂z ⎢⎣ ∂z ∂y ⎥⎦
Dw ∂p ∂ ⎡ ∂u ∂w ⎤ ∂ ⎡ ∂v ∂w ⎤
ρ = − + ⎢μ + + μ + (2.32c)
Dt ∂z ∂x ⎣ ∂z ∂x ⎥⎦ ∂y ⎢⎣ ∂z ∂y ⎥⎦
∂ ⎡ ∂w ⎤
+ 2μ + λ div u ⎥ + S Mz
∂z ⎢⎣ ∂z ⎦
ME555 : Computational Fluid Dynamics 27 I. Sezai – Eastern Mediterranean University
14
the Navier-Stokes equations can be written in the most useful form for
the development of the finite volume method:
Du ∂p
ρ = − + div( μ grad u ) + S Mx
Dt ∂x (2.34a)
Dv ∂p
ρ = − + div( μ grad v) + S My (2.34b)
Dt ∂y
Dw ∂p
ρ = − + div( μ grad w) + S Mz (2.34c)
Dt ∂z
⎧ ⎡⎛ ∂u ⎞2 ⎛ ∂v ⎞ 2 ⎛ ∂w ⎞ 2 ⎤ ⎛ ∂u ∂v ⎞ 2 ⎫
⎪ 2 ⎢⎜ ⎟ + ⎜ ⎟ + ⎜ ⎟ ⎥+⎜ + ⎟ ⎪
⎪ ⎢⎣⎝ ∂x ⎠ ⎝ ∂y ⎠ ⎝ ∂z ⎠ ⎥⎦ ⎝ ∂y ∂x ⎠ ⎪
Φ=μ⎨ ⎬ + λ (div u)
2
(2.36)
2
⎪ ⎛ ∂u ∂w ⎞ ⎛ ∂v ∂w ⎞
2
⎪
⎪+ ⎜ + ⎟ +⎜ + ⎟ ⎪
⎩ ⎝ ∂z ∂x ⎠ ⎝ ∂z ∂y ⎠ ⎭
15
Conservative Form of the Governing Equations of Fluid Flow
∂ ( ρφ )
+ div( ρφ u) = div( μ grad φ ) + Sφ
∂t (2.39)
⎛ Rate of increase ⎞ ⎛ Net rate of flow ⎞ ⎛ Rate of increase ⎞ ⎛ Rate of increase ⎞
⎜ of φ of fluid ⎟ + ⎜ of φ out of ⎟ = ⎜ of φ due to ⎟ + ⎜ of φ due to ⎟
⎜ element ⎟ ⎜ fluid element ⎟ ⎜ diffusion ⎟ ⎜ sources ⎟
⎝ ⎠ ⎝ ⎠ ⎝ ⎠ ⎝ ⎠
16
In the finite volume method (2.39) is integrated over 3-D control
volume yielding
∂ ( ρφ )
∫
CV
∂t
dV + ∫ div( ρφ u)dV = ∫ div(Γ grad φ )dV + ∫ Sφ dV
CV CV CV
(2.40)
17
Auxiliary Conditions for Viscous Fluid Flow Equations
Table 2-5 Boundary conditions for compressible viscous flow.
Initial conditions for unsteady flows:
• Everywhere in the solution region ρ, u and T must be given at time t = 0
Boundary conditions for unsteady and steady flows:
• On solid walls u = uw (no-slip condition)
T = Tw (fixed temperature) or k∂T/∂n = –qw (fixed heat flux)
• On fluid boundaries inlet: ρ, u and T must be known as a function of position
outlet: –p +μ∂un/∂n =Fn and –p +μ∂ut/∂n =Ft (stress continuity)
Outflow boundaries:
• High Re flows far from solid objects in an external flow
• Fully developed flow out of a duct.
Pressure = specified
∂un/∂n = 0
∂T/∂n = 0
Sources and sinks of mass are placed on the inlet and outlet
boundaries to ensure the correct mass flow into and out of domain.
18
Boundary conditions for an internal flow problem.
19
Example to symmetry boundary conditions:
∂φ
=0
∂r
Cyclic b.c.: φ1 = φ2
1
1 2
20