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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
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

Old   April 29, 2024, 15:29
Default
  #2
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,778
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by praveenu View Post
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

Re number? Solution on the 11x11 grid?
FMDenaro is online now   Reply With Quote

Old   April 29, 2024, 16:03
Default
  #3
New Member
 
Praveen Kumar
Join Date: Oct 2023
Posts: 4
Rep Power: 2
praveenu is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
Re number? Solution on the 11x11 grid?

Hi, the Re = 100, I've attached the tecplot file of the last time step.
Attached Files
File Type: zip results.zip (141.9 KB, 3 views)
praveenu is offline   Reply With Quote

Old   April 29, 2024, 16:52
Default
  #4
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,778
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by praveenu View Post
Hi, the Re = 100, I've attached the tecplot file of the last time step.



This picture means nothing. You need to check at the final steady state. Use the quantitative comparison, velocity profiles, vorticity and so on.
FMDenaro is online now   Reply With Quote

Reply


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 13:29.