2.fluid Mechanics Overview Part I
2.fluid Mechanics Overview Part I
2.fluid Mechanics Overview Part I
ZHAO Xiaozheng:
A demo: accessing the department computer
CHEN Hao:
Unix commands 常用命令大全(新手入门)
Unix OS & Fortran programming
Xshell MAE Department
computer (A Unix ssh
computer)
Your Windows Xftp scp Your Mac
computer (1) Edit Fortran Codes Computer
(2) Run Fortran Codes
(3) Postprocessing
VcXsrv (4) ….
X11
Overview of fluid mechanics governing equations
CFD
Computer
Science
The Navier-Stokes Equations
+
(
∂ρ ∂ ρU j
=0
) Two general methods to derive these equations
∂t ∂x j
+ ! .
∂U i ∂U i ∂P ∂ - %' ∂U i ∂U j 2 ! ( V
ρ + ρU j = ρ gi − + µ + − ∇ ⋅ U δij * + µ ∇ ⋅ U δij 0
∂t ∂x j ∂xi ∂x j -, '& ∂x j ∂xi D *
) 0/
1 %' ∂U i ∂U j (*
D = spatial dimension, Sij ≡ +
2 '& ∂x j ∂xi *)
Total stress τ ij = −Pδij + σ ij
This ensures that the flow solution is independent of the inertial frame of reference
Any physical model (Reynolds stress model, SGS model, etc.) and numerical method
for the N-S equations must comply with the Galilean invariance
Energy equation (1st Law of Thermodynamics in differential form)
Primitive form (1), exactly as 1st Law of thermodynamics
# 1 & # 1 &
∂ % e + U 2 − g k xk ( ∂ % e + U 2 − g k xk (
$ 2 ' $ 2 ' ∂ ) + ∂ #% ∂T &(
ρ
∂t
+ ρU j
∂x j
=
∂xi *
( )
−Pδij + σ ij U j , + k
∂x j %$ ∂x j ('
Primitive form (2)
# 1 & # 1 &
∂% e + U 2 ( ∂% e + U 2 (
$ 2 ' $ 2 ' ∂ ) + ∂ #% ∂T &(
ρ
∂t
+ ρU j
∂x j
= ρ g jU j +
∂xi *
( )
−Pδij + σ ij U j , + k
∂x j %$ ∂x j ('
∂e ∂e ! ! 1 ! $2 V
! 2 ∂
!
∂T
$
ρ
∂t
+ ρU j
∂x j " 3 %
(
= −P∇ ⋅ U + 2µ # Sij − ∇ ⋅ U δij & + µ ∇ ⋅ U ) +
∂x j
#k
# ∂x &
&
" j%
or
! ! $
∂e ∂e ∂ #k ∂T &
ρ + ρU j = −P∇ ⋅ U + ρε +
∂t ∂x j ∂x j# ∂x &
" j%
where the dissipation rate per unit mass (irreversible energy transfer)
! 1 ! $2 µV ! 2
ε = 2ν # Sij − ∇ ⋅ U δij & +
" 3 % ρ
(
∇ ⋅U )
Entropy equation – the 2nd law of thermodynamics
! " %
∂e ∂e ∂ $k ∂T '
ρ + ρU j = −P∇ ⋅ U + ρε +
∂t ∂x j ∂x j $ ∂x '
# j&
9
A demo Fortran code: viscosity.f Compile, run, and check the results:
C Compare two models of viscosity
real mu1, mu2, b, S, mu0, T, TK
b = 1.458e-6
S = 110.4
mu0 = 1.71e-5
T0 = 273. Results
do i = -5,10
T = 10.0*real(i) ! in C
C Convert to K
TK = T + 273.
mu1 = b*TK**1.5/(TK+S)
mu2 = mu0*(TK/T0)**0.7
write(10,100) T,TK,mu1,mu2
C Print out a data table
end do
Bhatnagar-Gross-Krook (1954)
"∂ ∂ Fjext ∂ $ ! ! f − f (eq )
& + vj + ' f ( v, x, t ) = C12 ( f ), BGK model: C12 ( f ) = −
&# ∂ t ∂ xj m ∂ v j '% τ
change due to binary collisions of molecules
Why no slip?
It no slip BC always correct?
Interface-resolving simulations for flows laden with solid particles
D~
u
⇢f = u + f~(~
rp + µr2 ~ x, t)
Dt
On the surface of k th particle,
~ (k) + ⌦
u|on the surface of k th particle = V
~ ~ (k) ⇥ ~
r
together with
~ (k) Z ⇣ ⌘
d V
m (k)
= p~n+~ n dA + body force + interaction force
⌧ ·~
~
dt S (k)
~ Z ⇣ ⌘
(k) d⌦
(k)
I = r⇥
~ n+~
p~ ⌧ ·~
~ n dA + ......
dt S (k)
Gao, Li, LPW, 2013, Lattice Boltzmann Simulation of Turbulent Flow Laden with
Finite-Size Particles, Computers & Mathematics with Applications, 65:194-210.
Viscous flow through porous media
• Compare flows in different porous media with experimental permeability data
Z
X Y
IBEAD
1
-1
120
100
80
60
Z
40
20
0
0
0
20
20
40
40
60
Y 60
80 80 X
100 100
120 120
phase, with by aa
and materials,
separated V! f
n!
different
whose set
sharp interface
location of f
x ( s,t f
(density, viscosity, ρ , µ , k 2 2
conductivity,
Atomization! Splash! School of fish!
specific heat, etc.) Phase 1!
Dynamic condition If viscous fluids on both side of interface, then no tangential slip
ui − (u j ⋅ n j ) ni = ûi − (û j ⋅ n j ) ni
A solid surface can be
viewed as a special case
Interface evolution ∂F
+ u I ⋅ ∇F = 0 [The level set equation]
∂t
What is surface tension?
The intermolecular energy per unit surface area:
𝑆𝑖𝑧𝑒 𝑜𝑓 𝑚𝑜𝑙𝑒𝑐𝑢𝑙𝑒𝑠 = 𝑎
𝐶𝑜ℎ𝑒𝑠𝑖𝑜𝑛 𝑒𝑛𝑒𝑟𝑔𝑦 𝑏𝑒𝑡𝑤𝑒𝑒𝑛 𝑡𝑤𝑜 𝑚𝑜𝑙𝑒𝑐𝑢𝑙𝑒𝑠 = 𝑈~𝑅𝑇
1
𝑒𝑠𝑡𝑖𝑚𝑎𝑡𝑒 𝑜𝑓 𝑛𝑢𝑚𝑏𝑒𝑟 𝑜𝑓 𝑚𝑜𝑙𝑒𝑐𝑢𝑙𝑒 𝑝𝑎𝑖𝑟𝑠 𝑝𝑒𝑟 𝑢𝑛𝑖𝑡 𝑠𝑢𝑟𝑓𝑎𝑐𝑒 𝑎𝑟𝑒𝑎 =
𝑎R
Then we have an estimate
1 1 𝑅𝑇
𝑠𝑢𝑟𝑓𝑎𝑐𝑒 𝑡𝑒𝑛𝑠𝑖𝑜𝑛 𝛾 = 𝑈 =
2 𝑎R 2𝑎R
The ½ is added as cutting though (ripping apart) a surface will create two surfaces
𝐽 1𝑚𝑜𝑙𝑒
𝑅𝑇 8.314 𝑚𝑜𝑙. 𝐾 × 6.022𝐸23 ×300𝐾 4×104R% 𝑚𝑁
𝑠𝑢𝑟𝑓𝑎𝑐𝑒 𝑡𝑒𝑛𝑠𝑖𝑜𝑛 𝛾~ R ~ ~ ~26
2𝑎 2×2.75R ×104R< 2×7.56×104R< 𝑚
https://www.fun-mooc.fr/ 22
Actual values of surface tension
23
Boundary conditions at a fluid interface (II)
More dynamic conditions
[Sharp-interface formulation]
Notes:
Finally 1. Here the curvature is negative if the interface is concave and positive if the
! interface is convex, when viewed from the side of F < 0.
(τ ij − τˆij ) n j + ∇ Sγ − γ ni ( ∇ ⋅ n ) = 0 2. Both the radii of curvature and curvature it self can be positive or negative.
A little more differential geometry
Let an interface in 2D is defined as y = h ( x)
Define F ( x, y ) = y − h ( x )
Then the interface is F ( x, y ) = 0 interface is a contour line of F ( x, y )
! !
! ∇F ( ) = x( ) + j
x, y −h x i $ dh '
The normal of the interface is: n= h
&% x ≡ )(
∇F ( x, y ) 1+ ( h )
2 dx
x
It follows that the divergence is The normal points into the region above the
, 0 , 0 curve.
! ∂ . −hx ( x ) . ∂ . 1 .
∇⋅n = - 1 + - 1
∂x . 1+ ( h ) 2 . ∂y . 1+ ( h ) 2 .
/ x 2 / x 2
2 1 2hx hxx
−hxx 1+ ( hx ) + hx
2 1+ ( h ) 2
x
= 2
+0
1+ ( hx )
−hxx
= 3/2
$1+ ( h ) 2 '
% x (
25
The curvature !
dt
The curvature is written as κ=
ds
!
t = tangent unit vector= ( cosφ, sin φ )
φ = angle between the tangent and the horizontal (x axis)
!
dt ! d cos φ d sin φ $ ! dφ dφ $ dφ dφ
κ= =# , & = # −sin φ , cos φ &= sin 2 φ + cos 2 φ =
ds " ds ds % " ds ds % ds ds
dφ
We shall now define κ ≡
ds
dy Positive radius of
φ = tan −1 = tan −1 hx
dx curvature
dφ d tan −1 hx hxx
= = 2
dx dx 1+ ( hx )
x x
ds d 2 2 d 2 2
= ∫ ( dx ') + ( dy ') = ∫ 1+ ( hx (ζ )) dζ = 1+ ( hx ( x ))
dx dx 0 dx 0
dφ dφ / dx hxx
⇒ = =
ds ds / dx +1+ h 2 -3/2
, ( x) . 26
Sketch
The curvature is defined as
dφ
κ=
ds
− +
dφ dφ / dx hxx
⇒ = =
ds ds / dx "1+ h 2 $3/2
# ( x) %
hxx !
κ= 3/2
= −∇ ⋅ n
"1+ ( h ) 2 $
# x %
!
κ = −∇ ⋅ n
28
2D example: A circle
F ( x, y ) = R 2 − ( x 2 + y 2 )
Note that F ( x, y ) > 0 inside
! ∇F ( x, y ) (−x, −y) = (−x, −y) = − cosθ , −sin θ
n= = ( )
∇F ( x, y ) 2
x +y 2 R
! ∂ x ∂ y
−∇ ⋅ n = +
∂x x 2 + y2 ∂y x 2 + y2
1 1 2x2 1 1 2 y2
= − 3/2
+ −
2
x +y 2 2 (x + y )
2 2 2
x +y 2 2 ( x 2 + y 2 )3/2
1 1
= = =κ
x 2 + y2 R
x 2 + y2 + % 2 (
$ c '
! ∂ x ∂ y a2 ∂ z
−∇ ⋅ n = + +
∂x # a2 z &
2 ∂y # a2 z &
2 c 2 ∂z # a2 z &
2
2 2 2 2 2 2
x + y +% 2 ( x + y +% 2 ( x + y +% 2 (
$ c ' $ c ' $ c '
3 2
# a2 & 2 # a2 & 2 # a2 z &
a2 x 2
+ y 2
+ % ( z %1+ ( ( x + y 2
) %$ c 2 ('
+ 2
2+ 2 2
c2 '
c $c ' $
= − 3/2
=
2 &2 + 2 &2 . + 2 3/2
2 2
# a z 2 2
# a z 2 2
# a2 z & .
x + y +% 2 ( -x + y + % 2 ( 0 -x + y + % 2 ( 0
$ c ' -, $ c ' 0/ -, $ c ' 0/
3D example: A spheroid
Find the curvature at location (a, 0, 0)
location (0, 0, c)
2
$ a2 ' 2 $ a2 z '
&1+ 2 ) ( x + y ) + 2 & 2 )
2
! % c ( % c (
[−∇ ⋅ n ] = 3/2
* $ 2 '2 -
, x 2 + y 2 + & a 2z ) /
,+ % c ( /.
$ a2 '
&1+ 2 )
! % c ( 1 1
[−∇ ⋅ n ] (a, 0, 0) = = + 2 the two principal radii of curvature are a and c 2 / a
a a c /a
! 2 1 1
[−∇ ⋅ n ] (0, 0, c) = = +
a2 / c a2 / c a2 / c
Boundary conditions at a fluid interface (II)
More dynamic conditions
[Sharp-interface formulation]
Finally
!
(τ ij − τˆij ) n j + ∇ Sγ − γ ni ( ∇ ⋅ n ) = 0
Boundary conditions at a fluid interface (III)
More dynamic conditions
The normal stress balance
!
( P̂ − P ) + (σ ij − σˆ ij ) n j ni − γ ( ∇ ⋅ n ) = 0
For still fluid
! $1 1 '
( ) (
P̂ − P − γ ( ∇ ⋅ n ) = P̂ − P + γ & +
R
% 1 R
)
)=0
2 (
[The Young-Laplace equation]
Small bubbles are louder than large bubbles when they burst at a free surface.
Example 2: static planar meniscus at an air-water interface (1)
z
! !
z=η(x) n g
θ x
The free surface is defined as z = η (x)
Governing equation
!
( p − p̂) = γ ∇ ⋅ n
The surface equation is
Note that the pressure S(x, z) = z − η ( x ) S < 0 below, S > 0 above
below the surface is less
The pressure below the interface p = p0 − ρW gz
than the pressure above the
interface, so the pressure The pressure above the interface p̂ = p0 − ρ A gz
force is pushing down. p0 is the reference pressure at x → ∞ and z = 0
This downward force is So at a location x, p − p̂ = − ( ρW − ρ A ) gz ≈ − ρW gz
balanced by the surface
tension force. Notes: In this case, the curvature is positive since the interface is convex, when viewed
from the side of S < 0.
Example 2: static planar meniscus at an air-water interface (2)
! ∇S (−η x ,1)
n= =
∇S 1+ η x2
! ∂ ηx ∂ 1 η xx 1 2η xη xx −η xx
κ = ∇⋅n = − + =− + ηx 3/2
+ 0 = 3/2
∂x 1+ η x2 ∂z 1+ η x2 1+ η x2 2 (1+ ηx2 ) (1+ ηx2 )
η xx η xx
− ρW gη = −γ → ρW gη = γ
2 3/2 3/2
(1+ η x ) (1+ ηx2 )
Boundary conditions
η x = − cot (θ ), η ( x → ∞) = 0
In general, this nonlinear system has to be solved numerically.