|
[Sponsors] | |||||
Sample code for SIMPLE-algorithm and solving Lid-Driven Cavity flow test is uploaded |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
|
#1 |
|
Member
Michail
Join Date: Apr 2009
Location: Lithuania
Posts: 30
Rep Power: 6 ![]() |
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 I'll be glad and grateful to get your opinion about it |
|
|
|
|
|
|
|
|
#2 |
|
New Member
Mijail Febres
Join Date: May 2010
Posts: 4
Rep Power: 4 ![]() |
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? Thanks in advance |
|
|
|
|
|
|
|
|
#3 |
|
Member
Michail
Join Date: Apr 2009
Location: Lithuania
Posts: 30
Rep Power: 6 ![]() |
Hi! Look here, may be this will be useful Please help with implemetation of boundaries conditions for flow in a pipe
|
|
|
|
|
|
|
|
|
#4 |
|
New Member
Jame
Join Date: Jun 2010
Posts: 3
Rep Power: 4 ![]() |
Hi all..I have been trying to code for viscous incompressible flows using SIMPLE algorithm in Matlab using a staggered grid approach. The code worked really well for Couette flow. However for lid driven cavity, it is not showing required results. I have tried using different Reynolds number like 10, 100, 1000. Initially the code seems as if it will give the required result, however after a few iterations, oscillations begin and the solution fails. Is there any stability criteria for this flow problem? The time step I had used was 0.001 secs. Any kind of help in this regards will be highly appreciated. Thanks a lot.
|
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| sample MAPLE code for SIMPLE algorithm | mia | Main CFD Forum | 0 | February 27, 2009 23:22 |
| About the difference between steady and unsteady problems | Lisa | Main CFD Forum | 11 | July 5, 2000 14:37 |