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

2D Lid Driven Cavity Problem in C

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 17, 2014, 11:13
Post 2D Lid Driven Cavity Problem in C
  #1
New Member
 
Sathya Narayanan
Join Date: Apr 2014
Posts: 15
Rep Power: 3
satty_00 is on a distinguished road
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
satty_00 is offline   Reply With Quote

Old   April 19, 2014, 09:03
Default more information would be helpful
  #2
Member
 
Troy Snyder
Join Date: Jul 2009
Location: Akron, OH
Posts: 85
Rep Power: 9
tas38 is on a distinguished road
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.
tas38 is offline   Reply With Quote

Old   April 19, 2014, 09:49
Default Details
  #3
New Member
 
Sathya Narayanan
Join Date: Apr 2014
Posts: 15
Rep Power: 3
satty_00 is on a distinguished road
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 !
satty_00 is offline   Reply With Quote

Reply

Tags
2d driven cavity, 2d lid driven cavity, lid driven cavity in c, navier stokes, simplec

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
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 01:13
lid driven cavity ani Main CFD Forum 3 April 2, 2006 13: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 05:22


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