Lecture13 PDF
Lecture13 PDF
Incompressible
Navier-Stokes Equations
WPI Computational Fluid Dynamics I
Advantages:
- Pressure does not appear explicitly (can be obtained later)
- Incompressibility is automatically satisfied
(by definition of stream function)
Drawbacks:
- Limited to 2-D applications
(Revised 3-D approaches are available)
WPI Computational Fluid Dynamics I
t
p
+ c u = 0
2
c 2 : arbitrary constant
t
p
2
With properly-chosen c , solve until 0 ( p = p ( x) )
t
Originally developed for steady problems
The term artificial compressibility is coined from
equation of state p = c
2
t
p
+ c 2 u = 0
t
Taking divergence of momentum equation,
n +1
h u h u n
p 2
+ h (u hu ) =
n n
+ 2h ( h u n )
h
t
p = h (u hu ) Poisson equation
2
h
n n
WPI Computational Fluid Dynamics I
Pressure Correction Method - 2
u n +1 u t 1 n +1 t
= h p u = u h p
t
t
h u n +1 = 0
0
n +1 t
h u = h u h h p
t
p=
2
h u t
t
h
WPI Computational Fluid Dynamics I
Pressure Correction Method - 3
un = un u = u + t A + D
t n
( n n
)
2. Poisson equation
p = h (u hu ) p= h ut
2 n n 2
t
h h
h p
WPI Computational Fluid Dynamics I
Pressure Correction Method - 4
t
3. Solve the pressure correction equation
p =
2
( u 0 )
t
WPI Computational Fluid Dynamics I
Pressure Correction Method - 5
Notes:
- Originally developed for the staggered grid system.
- The corrected velocity field satisfies the continuity equation
even if the pressure correction is only approximate.
- Sometimes p tends to be overestimated
p = p0 + p ( 0.8) underrelaxation
WPI Computational Fluid Dynamics I
Pressure Correction Method - 6
t
3. Solve the pressure Poisson equation
p =
2 *
( u )
t
WPI Computational Fluid Dynamics I
Pressure Correction Method - 7
*
5. Solve the momentum equation with p
u* u 0 1
= u u + u p *
* * 2 *
t
6. Pressure correction equation
p =
2
t
( u ) *
1/
t t =
h2
High-Re flow: advection-controlled 4
Spatial Accuracy
Explicit differencing - use larger stencils
f j +1 f j 1
f j = + O(h 2 )
2h
f j 2 8 f j 1 + 8 f j +1 f j + 2
f j = + O(h 4 )
12h
Tridiagonal - Pad (compact) schemes
f j1 + 4 f j + f j+1 = ( f j +1 f j 1 ) + O(h 4 )
3
h
Pentadiagonal
f j2 + f j1 + f j + f j+1 + f j+ 2 = af j 2 + bf j 1 + cf j + df j +1 + ef j + 2 + L
WPI Computational Fluid Dynamics I
Accuracy Improvement Spatial 2
3
Exact
2E
4E
6E
6T
8E
2 8T
k'
0
0 1 2 3
k
Temporal Accuracy
u 1
= A(u) + D(u) p
t
Implicit Crank-Nicolson
n +1
u u = n
[(
t
2
n
)
n +1 2 n
]
2 n +1 t
A(u ) + A(u ) + ( u + u ) p n +1/ 2
Nonlinear advection term requires iteration.
WPI Computational Fluid Dynamics I
Accuracy Improvement Temporal 2
can be linearized as
U U U
+ [A] + [B ] =0
t x y
E F
where [A] = , [B] = Jacobian matrix
U U
WPI Computational Fluid Dynamics I
Accuracy Improvement Temporal 3
u n +1 u t
= 2 1
t = u t
t
u n +1 = 0
Note that is different from the original pressure
t 2
p =
2 Re
WPI Computational Fluid Dynamics I
Accuracy Improvement Temporal 4
t t t
1 xx yy
(
zz u t u n = )
2 Re 2 Re 2 Re
t
2
[
3A (u ) A(u ) +
n n 1
]
t
Re
( xx + yy + zz )u n
Factorizing,
t t t
1
xx 1
yy 1
t
(
zz u u n = )
2 Re 2 Re 2 Re
t
2
[
3A (u ) A(u ) +
n n 1
]
t
Re
( xx + yy + zz )u n
TDMA in three directions
WPI Computational Fluid Dynamics I
Accuracy Improvement Temporal 5
Compressible
Navier-Stokes Equations
WPI Computational Fluid Dynamics I
U E F G
+ + + =0
t x y z
u v w
2
u u + p xx uv xy uw xz
2
U = v E = uv xy F = v + p yy G = vw
yz
w uw vw vw2 + p
E xz
yz zz
( E + p)u + ( E + p)v + ( E + p) w +
x y z
U E F G
= + +
t x y z
follows the same techniques used for hyperbolic equations
For smooth solutions with viscous terms, central differencing
usually works.
No need to worry about upwind method, flux-splitting,
TVD, FCT (flux-corrected transport), etc.
In general, upwind-like methods introduces numerical
dissipation, hence provides stability, but accuracy
becomes a concern.
WPI Computational Fluid Dynamics I
Explicit Methods
- MacCormack method
- Leap frog/DuFort-Frankel method
- Lax-Wendroff method
- Runge-Kutta method
Implicit Methods
- Beam-Warming scheme
- Runge-Kutta method
Most methods are 2nd order.
The Runge-Kutta method can be easily tailored to higher
order method (both explicit and implicit).
WPI Computational Fluid Dynamics I
E F G
n n n
[A] = , [B] = , [C ] =
U U U
+ ADI, factorization, etc.
WPI Computational Fluid Dynamics I
U E F G
= + +
t x y z
= F (t , U(t ) )
dU
dt
U(t = t0 ) = U 0 Initial condition