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

Problem Encountered inLid Driven Cavity in Finite Volume Method with SIMPLE Algorithm

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 3, 2015, 19:47
Default Problem Encountered inLid Driven Cavity in Finite Volume Method with SIMPLE Algorithm
  #1
New Member
 
Join Date: Jul 2015
Posts: 2
Rep Power: 0
Abdels83 is on a distinguished road
I have written my code in MATLAB and I need help from the forum on where things could be going wrong, my streamline plot appears not to be properly predicted and I am also not getting vortices on the corners of the cavity.

Please find code attached.

Please any help with code modification will be appreciated.

Thank you.
Attached Images
File Type: jpg Streamline-RE100.jpg (58.7 KB, 28 views)
Attached Files
File Type: txt Lid Driven Cavity Matlab Code.txt (26.2 KB, 44 views)

Last edited by Abdels83; July 4, 2015 at 10:44. Reason: I have updated the .m file and the code is now running. I also added the streamline plot for Reynolds number of 100.
Abdels83 is offline   Reply With Quote

Old   July 4, 2015, 07:55
Default
  #2
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,882
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
your M-file did not run, you have some errors to correct (Lx is not defined when used, normres is not defined, etc)
FMDenaro is offline   Reply With Quote

Old   July 4, 2015, 10:46
Default
  #3
New Member
 
Join Date: Jul 2015
Posts: 2
Rep Power: 0
Abdels83 is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
your M-file did not run, you have some errors to correct (Lx is not defined when used, normres is not defined, etc)
Thank you Filippo, I have corrected the error and the code is now running. I also attached the streamline plot for Reynolds number of 100.

Many Thanks.
Abdels83 is offline   Reply With Quote

Old   July 4, 2015, 12:17
Default
  #4
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,882
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
if you are using primitive variables you must debug your solution (u,v,p).
The streamlines are just a post-processing that can be affected by some factors.
However, the figure you attached shows a quite regular pattern for Re=100.

Use a fine grid (for example 100x100) to ensure Re_h =1 and check the velocity profiles (Ghia&Ghia paper).
FMDenaro is offline   Reply With Quote

Reply

Tags
finite volume method, lid- driven cavity, matlab, simple staggered grid


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
[blockMesh] non-orthogonal faces and incorrect orientation? nennbs OpenFOAM Meshing & Mesh Conversion 7 April 17, 2013 06:42
formulation of finite element&finite volume method ravindra FLUENT 0 June 27, 2007 13:04
finite difference method for navier-stokes problem dallybird Main CFD Forum 5 February 17, 2003 23:00
tidal flow simulation using finite volume method Jason Qiu Main CFD Forum 0 October 20, 2002 03:34
SIMPLE Algorithm & Conjugate Gradient Method Abhijit Tilak Main CFD Forum 7 March 20, 2001 01:01


All times are GMT -4. The time now is 18:27.