Professional Documents
Culture Documents
What Is Computational Fluid Dynamics (CFD) ?!: Finite Difference Or! Finite Volume Grid!
What Is Computational Fluid Dynamics (CFD) ?!: Finite Difference Or! Finite Volume Grid!
What is Computational
Fluid Dynamics (CFD)?!
Incompressible flows—Vorticity-Streamfunction Method Incompressible flows—the MAC Method pi-1,j+1 ui-1/2,j+1 pi,j+1 ui+1/2,j+1 pi+1,j+1
grid
pi-1,j ui-1/2,j pi,j ui+1/2,j pi+1,j
Marker particles used to track the different fluids The dam breaking problem
simulated by the MAC
method, assuming a free
Computations of the development of a von Karman vortex street surface. From F. H. Harlow
behind a blunt body by the method developed by J. Fromm. Time fig1.pdf
and J. E. Welch. Numerical
goes from left to right showing the wake becoming unstable. calculation of time-
dependent viscous
incompressible flow of fluid
From: J. E. Fromm and F. H. HarIow, Numerical Solution of the with a free surface. Phys.
Problem of Vortex Street Development: Phys. Fluids 6 (1963), 975. Fluid, 8: 2182–2189, 1965.
Specialized techniques for free surface potential and stokes flows (1976)
and vortex methods
!t "t !t 2 2
!" !$ !" !$ !" 1 % ! 2" ! 2" ( The vorticity at the new time is given by:!
=# + + +
!t ! y ! x ! x ! y Re '& ! x 2 ! y 2 *) ! i,n+1
+ %$ n #$ n ( %!n #!n (
= ! i,n j + "t - # '
i, j +1 i, j #1 i+1, j i#1, j
j *' *
-, & 2h )& 2h )
The advection equation is:!
% $ i+1,
n
# $ i#1,
n
( % ! i,n j +1 # ! i,n j #1 (
! n+1
i, j
" ! i,n j +'
j j
*' *
= & 2h )& 2h )
#t
1 % ! i+1, j + ! i#1, j + ! i, j +1 + ! i, j #1 # 4! i, j ( .
n n n n n
% $ i,n j +1 " $ i,n j "1 ( % ! i+1,
n
" ! i"1,
n
( % $ i+1,
n
" $ i"1,
n
( % ! i,n j +1 " ! i,n j "1 (
"'
j j j j + ' *0
*' * +' *' * Re & h2 ) 0/
& 2h )& 2h ) & 2h )& 2h )
1 % ! i+1, j + ! i"1, j + ! i, j +1 + ! i, j "1 " 4! i, j (
n n n n n
+ ' 2 *
Re & h )
Computational Fluid Dynamics
Computational Fluid Dynamics
Finite Difference Approximations! The Driven Cavity Problem!
Stationary wall!
Stationary wall!
! x2 ! y2 cavity is a square domain
with a moving wall at the top
and stationary side and
bottom walls. The simple
! i+1,
n
+ ! i"1,
n
+ ! i,n j +1 + ! i,n j "1 " 4! i,n j geometry and the absence of
= "# i,n j
j j
in and outflow makes this a
h2 particularly simple and Stationary wall!
popular test problem.!
j=2!
j=1!
i=1! i=2! i=NX!
These equations allow us to obtain the solution at To update the vorticity in the interior of the domain, we need
interior points! the vorticity at the wall. Once the streamfunction (and thus the
j=ny! ! i, j = 0 velocity) everywhere has been found, this can be done. !
!
on the boundary! At the bottom wall:!
t=t+dt! t=t+!t!
17 by 17!
Vorticity! Streamfunction!
Dt=0.01!
25 0.1
D=0.1!
20
0.08
15
10 0.06
!" " i, j +1 $ "i, j$1
5 ui, j = #
!y
0.04
0
0.02
2h
" i+1, j $" i$1, j
-5
!"
v i, j = $ #$
-10 0
20 20
15
10
15
20 15
10
15
20
!x 2h
10 10
5 5
5 5
0 0 0 0
!
For incompressible flow the inflow must matched by
outflow and if we specify the outflow velocity the the
streamfunction must be decreased by the same amount
Vorticity! Streamfunction! elsewhere on the boundary!