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

Slow convergence

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 1 Post By AliE
  • 3 Post By FMDenaro

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 3, 2018, 16:18
Default Slow convergence
  #1
New Member
 
Daniel Gustavo Benvenutti
Join Date: Jun 2017
Posts: 5
Rep Power: 8
tchitchas is on a distinguished road
Hello Guys, I developed a code in fortran to solve the 2D lid-cavity problem using the FVM.

I used the SIMPLE algorithm with staggered grid and to solve the linear equations resuting from the momentum (x,y) and continuity, i used the Gauss-Seidel method.

With a coarse refining, the results converge very quickly. However, when I refine the mesh (something like 150x150 volumes), the result continues to converge, but it takes soooo many iterations for the convergence of the system of equations from the continuity (to find p correction). It took almost 20 hours to finish the simulation.

I used a residual of 1.10^-8

The results are close to expected (comparing with benchmark)

Is this behavior normal? Or is something wrong?

Thank you in advance.
tchitchas is offline   Reply With Quote

Old   April 3, 2018, 16:44
Default
  #2
Senior Member
 
Join Date: Dec 2017
Posts: 153
Rep Power: 8
AliE is on a distinguished road
Hello,

Gauss-seidel has a very slow convergence comparered to krilov subspace solvers. Try a preconditioned conjugate gradient for the pressure-correction equation. It is straightforward to implement.
tchitchas likes this.
AliE is offline   Reply With Quote

Old   April 3, 2018, 16:59
Default
  #3
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,773
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by tchitchas View Post
Hello Guys, I developed a code in fortran to solve the 2D lid-cavity problem.

I used the SIMPLE algorithm with staggered grid and to solve the linear equations resuting from the momentum (x,y) and continuity, i used the Gauss-Seidel method.

With a coarse refining, the results converge very quickly. However, when I refine the mesh (something like 150x150 volumes), the result continues to converge, but it takes soooo many iterations for the convergence of the system of equations from the continuity (to find p correction). It took almost 20 hours to finish the simulation.

I used a residual of 1.10^-8

The results are close to expected (comparing with benchmark)

Is this behavior normal? Or is something wrong?

Thank you in advance.

First, the convergence velocity depends on the spectral radius of the matrix. The BC.s can change the structure of the matrix. I am not sure about what you are doing, you wrote "linear system", thus have you linearized the momentum equation?

Finally, think to use the SOR with a proper acceleration factor.
LuckyTran, lcarasik and tchitchas like this.
FMDenaro is offline   Reply With Quote

Old   April 3, 2018, 19:45
Default
  #4
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,675
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
Yes, slowness should be expected. You need an accelerator.

See also multigrid methods (i.e. algebraic multigrid and geoemtric multigrid).

Slow convergence on finer grids is the price you pay for discretizing the gov. eqns. The short-wavelength errors converge quickly (cell to cell changes) but the long-wavelength ones don't (say from an interior cell to the boundary). When you make the grid finer, you make this convergence rate slower for the long wavelengths.
LuckyTran is offline   Reply With Quote

Old   April 13, 2018, 03:17
Default
  #5
New Member
 
Daniel Gustavo Benvenutti
Join Date: Jun 2017
Posts: 5
Rep Power: 8
tchitchas is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
First, the convergence velocity depends on the spectral radius of the matrix. The BC.s can change the structure of the matrix. I am not sure about what you are doing, you wrote "linear system", thus have you linearized the momentum equation?

Finally, think to use the SOR with a proper acceleration factor.
Hello FMDenaro, thanks for the reply, sorry for the lack of information. Yes, I linearized the convective term of the momentum equation with the SIMPLE method. I will try the SOR to accelerate the convergence.

Thanks for the answer.
tchitchas 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Convergence Centurion2011 FLUENT 48 June 14, 2022 23:29
Force can not converge colopolo CFX 13 October 4, 2011 22:03
Convergence of CFX field in FSI analysis nasdak CFX 2 June 29, 2009 01:17
Slow convergence for Boundary Layer flow Biga Main CFD Forum 2 November 18, 2004 16:51
Slow convergence Jesper CFX 1 July 7, 2004 16:59


All times are GMT -4. The time now is 23:01.