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

Advection/Diffusion

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 24, 2012, 22:02
Unhappy Advection/Diffusion
  #1
New Member
 
N/A
Join Date: Jul 2010
Posts: 29
Rep Power: 15
kamakura117 is on a distinguished road
Hello,

I am writing a advection/diffusion script in MATLAB for a driven cavity problem. I am using the SIMPLE method with power law convection approximations and using Numerical Heat Transfer and Fluid Flow by Patankar as my guiding text. I have completely written the code, but the solution does not converge. I was hoping that someone with experience could send me a PM and help me diagnose the issues I am having.

Many thanks,

Jesse
kamakura117 is offline   Reply With Quote

Old   March 25, 2012, 23:27
Default
  #2
New Member
 
N/A
Join Date: Jul 2010
Posts: 29
Rep Power: 15
kamakura117 is on a distinguished road
Update: I got the code working, but only when I apply very low relaxation factors (u,v = 0.15, p = 0.08) that have to get lower as I refine the grid. Does anyone have any indication as to why this might be the case? I figured it might most likely be due to a mass imbalance, due to how I average on the periphery nodes... but the solvers are fully consistent with each other in their treatments. The continuity, \nabla \vec{u} is roughly 1e-7 in each node. I imagine this is sufficiently zero.

Anyone have any ideas?

Thanks.
kamakura117 is offline   Reply With Quote

Old   March 27, 2012, 14:06
Default
  #3
New Member
 
N/A
Join Date: Jul 2010
Posts: 29
Rep Power: 15
kamakura117 is on a distinguished road
Update 2: So, with very small relaxations factors (.01 for pressure, and .07 for velocity) I can somewhat match, with a 25 x 25 grid, the reference solution for the lid driven cavity. I am beginning to suspect an issue with either the pressure correction or the non-linearity treatments. Scanning over the code many times, I can not find any issue in their development. I've attached some results.
Attached Images
File Type: png V&V_res_2.png (7.8 KB, 8 views)
File Type: png V&V_v_ben_2.png (7.5 KB, 6 views)
File Type: png V&V_u_ben_2.png (7.2 KB, 6 views)
kamakura117 is offline   Reply With Quote

Old   March 27, 2012, 14:08
Default
  #4
New Member
 
N/A
Join Date: Jul 2010
Posts: 29
Rep Power: 15
kamakura117 is on a distinguished road
Contour/Vector plots...
Attached Images
File Type: png V&V_v_2.png (22.9 KB, 4 views)
File Type: png V&V_u_2.png (23.0 KB, 5 views)
File Type: png V&V_p_2.png (20.6 KB, 4 views)
kamakura117 is offline   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



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