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

Re: Convergence problem for refined grid

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 11, 2008, 13:28
Default Re: Convergence problem for refined grid
  #1
CFD_Novice
Guest
 
Posts: n/a
Hi,

I wrote a 2D CFD code using SIMPLE on collocated grid. I test the code with some simple cases. I found that when the grid is coarse, the solution agrees with the theoretical solution. When I refine the grid, the solution becomes divergent. So what is wrong with my code? How can I improve the convergence?

Thank you for any help.

  Reply With Quote

Old   February 11, 2008, 21:59
Default Re: Convergence problem for refined grid
  #2
alpha
Guest
 
Posts: n/a
Are you solving RANS equations on your grid. If yes, how dense was your grid? If you use both infinitely fine grid and turbulence model then you are bound to have problems, because you will be solving reynolds stresses directly and your turbulence model will also take into account effects of turbulence in your flow field. Therefore, you end up with wrong results.

alpha
  Reply With Quote

Old   February 12, 2008, 00:07
Default Re: Convergence problem for refined grid
  #3
CFD_novice
Guest
 
Posts: n/a
Thank you for your answer. Currently, I am only considering Laminar flow and solving a simple flow problem which has theoretical results. The numerical solution with 5 X 5 grid agree well with the theoretical one. However, when I refine grid from 5 X 5 to 60 X 60, the result is even not convergent.

Any input will be appreciated.
  Reply With Quote

Old   February 12, 2008, 08:42
Default Re: Convergence problem for refined grid
  #4
alpha
Guest
 
Posts: n/a
What i dont understand is why would you refine your grid to this extent for a laminar flow. What sort of Reynolds number are you working on? If boundary layer is laminar there is no need for DNS type grid resolution, a coarse grid will be fine.

alpha
  Reply With Quote

Old   February 12, 2008, 09:49
Default Re: Convergence problem for refined grid
  #5
student
Guest
 
Posts: n/a
Brief you problem definition, method used,

  Reply With Quote

Old   February 12, 2008, 14:15
Default Re: Convergence problem for refined grid
  #6
agg
Guest
 
Posts: n/a
Looks like you are not conserving mass, maybe because of your numerical scheme. This doesn't show up on a coarse grid, but does when you refine. I assume you are solving incompressible flow. Compute du/dx+dv/dy for each cell, for the coarse and fine simulations (for each time step and see if you are maintaining a divergence-free velocity).
  Reply With Quote

Old   February 12, 2008, 14:32
Default Re: Convergence problem for refined grid
  #7
CFD_novice
Guest
 
Posts: n/a
Response to Alpha,

Thank you for your quick response. I agree with you that for laminar flow, coarse grid works fine. In fact, I encountered divergence problem when I calculate turbulent flow (Re =4000) with my code. I can not figure out why. So I go back check my laminar flow simulation. I found that if I use fine mesh, there is some convergence problem even for laminar flow. Therefore, I think I need to solve the divergence problem for laminar flow then go to turbulent flow.

  Reply With Quote

Old   February 12, 2008, 14:42
Default Re: Convergence problem for refined grid
  #8
CFD_novice
Guest
 
Posts: n/a
Hello agg,

I use SIMPLE method on collocate grid. The numerical scheme is UPWIND. To test my code, I use several simple laminar flow cases. For example, flow inside a square container with a moving lid. They show some divergence problem when the grid becomes finer, more or less.

Thank you.
  Reply With Quote

Old   February 12, 2008, 14:53
Default Re: Convergence problem for refined grid
  #9
CFD_novice
Guest
 
Posts: n/a
I will check the mass conservation and get back to you later.

Thanks.
  Reply With Quote

Old   February 12, 2008, 18:43
Default Re: Convergence problem for refined grid
  #10
CFD_novice
Guest
 
Posts: n/a
I solve the pressure correction equation derived with mass-conservation equation. Is there any way to measure how well the mass conversation is satisfied when the grid becomes finer?

Thank you.
  Reply With Quote

Old   February 13, 2008, 00:05
Default Re: Convergence problem for refined grid
  #11
santo
Guest
 
Posts: n/a
Pressure oscillations plays an important role in colocated grid. Have you used Rhie and Chow interpolation to avoid this problem for calculating mass flux.

continuity eq is your convergence criteria du/dx + dv/dy =0 on integrating over a C.V yields (u_e-u_w)dely + (v_n-v_s)delx=0 here one has to apply Rhie and Chow interpolationss for calculating flux velocities.

Please correct me if I am wrong.

San
  Reply With Quote

Old   February 13, 2008, 00:34
Default Re: Convergence problem for refined grid
  #12
quarkz
Guest
 
Posts: n/a
Speaking from my own personal experience, if everything else is correct (scheme,Rhie and Chow interpolation etc), most likely you have a careless mistake. You may need to inspect your code.

Btw, you should also check when and where does it diverge. Is it due to momentum or poisson eqn?

Hope that helps...
  Reply With Quote

Old   February 15, 2008, 14:39
Default Re: Convergence problem for refined grid
  #13
CFD_Novice
Guest
 
Posts: n/a
Hi,

Thank you all for suggestions. I did find several careless mistakes when inpsecting the code. But it is frustrating to see that the result doesn't have obvious improvment. To avoid the pressure's osillations on collocated grid, I utilize A.W. Date's method, not Rhie and Chow's interpolation.

The paper for this method is "Complete pressure correction algorithm for solution of incompressible Navier-Stokes equations on a nonstaggered grid" by A.W.Date, Numerical Heat Transfer B, Vol.29,1996

Do you have any comment on the difference of this two methods?

Cheers,

  Reply With Quote

Old   February 17, 2008, 23:56
Default SUMMARY
  #14
CFD_novice
Guest
 
Posts: n/a
Hi,

I finally overcome the divergence problem for the refined grid on Laminar flow. The reason is that the careless mistakes I made in my code. Hope that it will be helpful when others encounter similar problem.

Thank you all for help.

  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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Convergence Centurion2011 FLUENT 48 June 15, 2022 00:29
Need URGENT HELP for convergence problem of a turbine Pursuor CFX 5 October 3, 2011 18:44
Continuity eq convergence problem carno FLUENT 4 February 8, 2008 05:04
Grid Independence problem for simple pipe geometry chanchala FLUENT 13 November 20, 2003 09:24
convergence problem Trushar Phoenics 5 August 28, 2002 00:40


All times are GMT -4. The time now is 14:55.