Professional Documents
Culture Documents
Lecture 16 Lid Driven Cavity Flow
Lecture 16 Lid Driven Cavity Flow
Minor 2
Proposed date : Mar 27 (Fri) Mar 30 (Mon).
Please let me know now (latest by Friday) if this conflicts with any other Minors etc
Pattern : A few programs will be put up and you will be asked to make corrections, inferences, modifications etc Will also be split into basic, intermediate and advanced problems
Final Project
Default Project : Systematical computational analysis of boundary layer over a flat plate Due on Apr 28, last day of class Auditors Those auditing the course officially need to either do a simple coding project or a literature review and answer a series of questions (your choice) Those auditing unofficially (just sitting in the class) obviously dont need to do anything People taking the course for credit : Please stay back and Make a project group today and communicate it to me today Choose on a project topic after discussing it with me today
a) b)
The circled convective terms have to be found by interpolation as they dont lie on the known grid points This staggered grid formulation is also known as the Marker and Cell (MAC) formulation
The circled convective terms have to be found by interpolation as they dont lie on the known grid points This staggered grid formulation is also known as the Marker and Cell (MAC) formulation Now, we need to use the pressure Poisson equation to update the pressure
The LHS is the usual 5-point finite difference for Poisson equation Leads to somewhat inaccurate transients because D is never really exactly zero. But, this method can be used for steady flows.
MAC algorithm for steady incompressible flows using the Pressure Poisson equation
Step 1 : Initialize u,v Step 2 : At each time step n:
Solve the Pressure Poisson equation to calculate pressure at level n Use the momentum equations, u, v and p at n to update the velocities See if steady state criterion is reached to desired tolerance. If not, repeat Step 2.
Let us try to satisfy the continuity equation for each (i,j) at all time steps.
Momentum equations
At each time step we can update the velocities using the momentum equations. However, we need to do this in a way which will satisfy continuity as well
Momentum equations
At each time step we can update the velocities using the momentum equations. However, we need to do this in a way which will satisfy continuity as well
The way to do this is to retain the above discretizations but change the pressure discretizations to time level n+1
Momentum equations
1 = u n +1 i+ , j 2
v n +1 1 =
i, j+
At each time step we can update the velocities using the momentum equations. However, we need to do this in a way which will satisfy continuity as well
t n +1 1 pi , j +1 pin, + j + RHSV 1 i, j+ y 2
The way to do this is to retain the above discretizations but change the pressure discretizations to time level n+1
1 n +1 n +1 pin, + p p 2 + j 1 i, j i , j +1
y 2
x2 R HSU 1 = t
i+ 1 , j 2
n +1 1 1 + p in, + p in, + j 1 2 p i , j j +1
y
i 1 , j 2
R HSU x
R HS V +
i , j+
1 2
R HS V y
i, j
1 2
2.
v n +1 1 =
i, j+ 2
t n +1 1 pi , j +1 pin, + j + RHSV 1 i, j+ y 2
2 p
n +1 i, j 2
+ p
n +1 i +1, j
n +1 i , j 1
2 p
y
i 1 , j 2
n +1 i, j 2
+ p
n +1 i, j +1
R HSU 1 = t
i+
1 , j 2
R HSU x
R HS V +
i , j+
1 2
R HS V y
i, j
1 2
Note that using this method ensures that the discrete continuity eqn is satisfied exactly at each step
2.
i+
n +1 1 , j 2
u x
n +1 1 , j 2
v n +1 1 v n +1 1 +
i, j+ 2 i, j 2
= 0
v n +1 1 =
i, j+ 2
t n +1 1 pi , j +1 pin, + j + RHSV 1 i, j+ y 2
Summary of Lecture 15
MAC scheme for steady flows
Explicit artificial compressibility method Pressure Poisson equation based method
Minor 2
Proposed date : Mar 27 (Fri) Mar 30 (Mon).
Please let me know now (latest by Friday) if this conflicts with any other Minors etc
Pattern : A few programs will be put up and you will be asked to make corrections, inferences, modifications etc Will also be split into basic, intermediate and advanced problems
Final Project
Default Project : Systematical computational analysis of boundary layer over a flat plate Due on Apr 28, last day of class Auditors Those auditing the course officially need to either do a simple coding project or a literature review and answer a series of questions (your choice) Those auditing unofficially (just sitting in the class) obviously dont need to do anything People taking the course for credit : Please stay back and Make a project group today and communicate it to me today Choose on a project topic after discussing it with me today
a) b)