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

Can anyone help locating an error in my 2-D MATLAB SIMPLE code?

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   Today, 14:39
Smile Can anyone help locating an error in my 2-D MATLAB SIMPLE code?
  #1
New Member
 
Join Date: May 2012
Location: USA
Posts: 9
Rep Power: 2
Hoggs17 is on a distinguished road
Greetings everyone. Thank you for taking the time to read my post. Using the finite volume method and the help of sample code from Michael Moor (fellow cfd online poster), i have written a matlab 2-D, staggered grid fluid flow solver based on the SIMPLE method. Upon modification of the sample code (boundary conditions, grid generation to remove unused nodes, post processing) something seem to be not entirely correct.

I'm fairly certain my actual CFD "guts" (momentum and pressure codes) is correct but for some reason when I try to benchmark against lid driven cavity flow, I am not getting the correct flow pattern. I've been debugging and going over my code for a month or so and I am just not seeing the error, of course it might be because it's my program and I might be biased into thinking it's correct. Hence, I think maybe something is wrong in my grid generation code. I am hoping someone out there without a biased eye might be able to see my error in the code.

I would greatly appreciate anyone out there looking over my code and seeing if anyone can spot where I went wrong. I will gladly share the code with anyone who responds and is interested in helping but I prefer not to post on the main page. Thanks again and I appreciate your help.
Hoggs17 is offline   Reply With Quote

Reply

Tags
benchmark, fvm, lid driven cavity, matlab, simple

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
2D backward staggered SIMPLE MATLAB turbulent michaelmoor.aero Main CFD Forum 17 May 1, 2013 14:51
Matlab code for pipe flow cici Main CFD Forum 55 October 3, 2012 06:11
Proof reading matlab code for SIMPLE and FVM michaelmoor.aero Main CFD Forum 0 July 3, 2012 16:06
Matlab code for the numerical solution of a Prandtl-Meyer expansion wave flow field ivan_CFD Main CFD Forum 4 March 8, 2012 15:17
MATLAB fractional step code Darren Main CFD Forum 4 August 25, 2011 08:54


All times are GMT -4. The time now is 16:12.