CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Lid-Driven Cavity Fortran Code works for coarse mesh but not fine mesh

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   April 29, 2024, 13:59
Default Lid-Driven Cavity Fortran Code works for coarse mesh but not fine mesh
  #1
New Member
 
Praveen Kumar
Join Date: Oct 2023
Posts: 4
Rep Power: 2
praveenu is on a distinguished road
Hi all,
I've written a FORTRAN code to solve the classical lid driven cavity problem using SMAC algorithm. The time marching is done using first order Euler scheme and spatial discretized using second order central difference.



The code seems to work fine for a gird of 11x11 but blows up for 51x51. I've tried reducing the CFL number but it doesn't seem to help.


Any advise?


thanks in advance!


PS: the code is attached
Attached Files
File Type: txt code.txt (7.7 KB, 2 views)
praveenu is offline   Reply With Quote

 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Lid Driven Cavity Code using SIMPLE in MATLAB deepmorzaria Main CFD Forum 0 April 23, 2020 15:02
lid driven cavity varying results yasmil OpenFOAM Running, Solving & CFD 2 October 6, 2016 21:42
Lid driven cavity in Fortran Dhairya Main CFD Forum 4 June 29, 2016 01:25
Lid Driven cavity Fortran code Dhairya CFD Freelancers 0 June 26, 2016 00:48
Comparison between C/C++ and Fortran? rick Main CFD Forum 45 September 6, 2011 00:52


All times are GMT -4. The time now is 10:33.