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

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

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 13, 2013, 15: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: 14
Rep Power: 14
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

Old   May 15, 2013, 10:19
Default
  #2
Member
 
venki
Join Date: May 2011
Posts: 84
Rep Power: 15
venkateshaero is on a distinguished road
Please send your code venkiaero2004@gmail.com

I will try to find your error
venkateshaero is offline   Reply With Quote

Old   May 15, 2013, 18:54
Default
  #3
New Member
 
Join Date: May 2012
Location: USA
Posts: 14
Rep Power: 14
Hoggs17 is on a distinguished road
thanks for the reply venkateshaero, i will package up my code and email you.
Hoggs17 is offline   Reply With Quote

Old   May 18, 2013, 06:50
Default
  #4
New Member
 
Join Date: Apr 2013
Posts: 1
Rep Power: 0
andy20110920@yahoo.cn is on a distinguished road
Hi Hoggs17, i am a postgraduate student majoring in CFD. I am a learner but my tutor is quite professional, you may sent me your code to andy20110920@hotmail.com and i'll have him help debugging your code.

best wishes
andy20110920@yahoo.cn is offline   Reply With Quote

Old   June 4, 2013, 16:25
Default
  #5
New Member
 
Join Date: May 2012
Location: USA
Posts: 14
Rep Power: 14
Hoggs17 is on a distinguished road
thanks for the reply - i will send out my codes now. thanks again friends for your help.
Hoggs17 is offline   Reply With Quote

Old   June 5, 2013, 07:02
Default
  #6
Member
 
EMAVI V SURYA SAMPATH
Join Date: Aug 2011
Location: Malaysia
Posts: 85
Rep Power: 15
sampathevs is on a distinguished road
YOu can send me

sampath.evs@gmail.com
I will try my level best
sampathevs is offline   Reply With Quote

Old   June 5, 2013, 13:52
Default
  #7
New Member
 
Join Date: May 2012
Location: USA
Posts: 14
Rep Power: 14
Hoggs17 is on a distinguished road
thank you for your help, i will send soon
Hoggs17 is offline   Reply With Quote

Old   July 9, 2013, 04:02
Default any luck?
  #8
New Member
 
Join Date: May 2012
Location: USA
Posts: 14
Rep Power: 14
Hoggs17 is on a distinguished road
Have any of you been able to look at the code and get an idea of where I might have gone wrong? I have been sidetracked with other projects as of recent, hoping to get back to my CFD coding soon though. Thanks again guys!
Hoggs17 is offline   Reply With Quote

Reply

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


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
2D backward staggered SIMPLE MATLAB turbulent michaelmoor.aero Main CFD Forum 20 October 19, 2021 10:24
MATLAB fractional step code Darren Main CFD Forum 7 September 25, 2018 15:58
Matlab code for pipe flow cici Main CFD Forum 72 May 12, 2017 19:05
Proof reading matlab code for SIMPLE and FVM michaelmoor.aero Main CFD Forum 0 July 3, 2012 17:06
Matlab code for the numerical solution of a Prandtl-Meyer expansion wave flow field ivan_CFD Main CFD Forum 4 March 8, 2012 16:17


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