|
[Sponsors] |
April 17, 2014, 12:13 |
2D Lid Driven Cavity Problem in C
|
#1 |
New Member
Sathya Narayanan
Join Date: Apr 2014
Posts: 18
Rep Power: 12 |
Hi everybody,
I've been trying to solve the 2D Lid Driven cavity problem in C using SIMPLEC algorithm. I'm able to attain a converged solution but not Benchmark solutions for the given Reynolds number. Can anyone help me in correcting the Bug, or identify the problem in my Code. V-Velocity.jpg U-Velocity_RNO100.jpg C Code.txt |
|
April 19, 2014, 10:03 |
more information would be helpful
|
#2 |
Senior Member
Troy Snyder
Join Date: Jul 2009
Location: Akron, OH
Posts: 220
Rep Power: 19 |
It would be helpful if you could elaborate on the code (finite difference vs. finite volume, staggered vs. cell-centered variable arrangement, method of convective flux discretization, method of gradient computation etc.). Additionally, if you could narrow down possible locations in the code that are more suspect than others, that would be helpful.
Also, it would be helpful if you could show the velocity and pressure fields following one single outer iteration and without the first velocity correction applied. Please also include the color legends on your contour plots. |
|
April 19, 2014, 10:49 |
Details
|
#3 |
New Member
Sathya Narayanan
Join Date: Apr 2014
Posts: 18
Rep Power: 12 |
I'm Using FVM for calculation. I've attached an Paint image of how i've discretized the Central and Staggered Meshes. I've used SOR (TDMA + Gauss Seidal Method) to solve for U- Velocity, V- Velocity and Pressure corrections.
I've used the power law scheme to calculate the coefficients. I've previously solved Convection Diffusion equations using the same scheme and have obtained the benchmark solutions. And I've used Node based Computation. So I suspect the errors to be in the pressure correction part or Velocity correction part or the way I iterate. Grid.png And thank you very much for the quick response mate ! |
|
Tags |
2d driven cavity, 2d lid driven cavity, lid driven cavity in c, navier stokes, simplec |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Lid Driven Cavity Problem | Orkun | Main CFD Forum | 2 | March 3, 2013 17:07 |
lid driven cavity | perumal | Main CFD Forum | 0 | August 31, 2006 02:13 |
lid driven cavity | ani | Main CFD Forum | 3 | April 2, 2006 14:27 |
2D Driven square cavity problem | rvndr | Main CFD Forum | 6 | February 25, 2004 11:35 |
Driven cavity problem | Mukhopadhyay | Main CFD Forum | 4 | May 26, 2001 06:22 |