CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   CFD-Wiki (http://www.cfd-online.com/Forums/cfd-wiki/)
-   -   Sample code for SIMPLE-algorithm and solving Lid-Driven Cavity flow test is uploaded (http://www.cfd-online.com/Forums/cfd-wiki/75702-sample-code-simple-algorithm-solving-lid-driven-cavity-flow-test-uploaded.html)

 Michail May 3, 2010 11:05

Sample code for SIMPLE-algorithm and solving Lid-Driven Cavity flow test is uploaded

Dear colleagues!

I uploaded sample code for SIMPLE-algorithm and solving lid-driven cavity flow test (Re=1000).

It has a lot of shortcomings, but I think that it will be useful for all newcomers. I intend to develop it further, but now it very slowly converges. All notes will be useful, and hope it can be discussed.

The code can be found here:

http://www.cfd-online.com/Wiki/Sampl...9_-_Fortran_90

It predecessor - the code for solving Smith-Hutton test can be found here:

http://www.cfd-online.com/Wiki/Appro...s_and_examples

http://www.cfd-online.com/Wiki/Sampl...t_-_Fortran_90

 Mijail May 18, 2010 12:05

Simple-Algorithm

HI, I started programming a SIMPLE-algorithm myself based on Malalaskera's book on a staggered grid for a 1-d constant density permanent flow. It's not working properly, velocities converge in 2 or 3 iterations but pressures don't, I think I have a problem with BC's treatment (constant known velocity on one side and constant known pressure on the other). Do you know any book that shows a clear example on boundary conditions treatment?, I mean, all books, from Patankar, Anderson, Versteg, etc talk about it, but no one has a clear example.
The code you wrote is on a colocated grid, do you think it has advantages over a staggered grid for the 1-d problem I'm trying to solve?