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

Multigrid vs. non-stationary iterative solver

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By LuckyTran

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 18, 2019, 11:36
Default Multigrid vs. non-stationary iterative solver
  #1
Senior Member
 
Mehdi Baba Mehdi
Join Date: Jan 2011
Posts: 158
Rep Power: 15
mb.pejvak is on a distinguished road
As I know multigrid since its concept and the idea behind it can converge faster in comparison to stationary methods. I also ran some cases in openFoam in similar conditions, but the iterative solver changed (non-stationary and multigrid methods). to summarize

iterative solver & Time of execution (sec)
Multigrid & 28118
PCG(GAMG) & 63881
PCG(DIC) & 86274

As you can see, multigrid almost 3 times faster than CG with DIC as preconditioner and 60% faster CG with multigrid as preconditioner.
Now my question is if it can be generalized that multigrid is the fastest method in solving problem related to CFD

Last edited by mb.pejvak; October 19, 2019 at 04:49.
mb.pejvak is offline   Reply With Quote

Old   October 18, 2019, 16:45
Default
  #2
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
It is an okay generalization but there are limits.

Multigrid methods accelerate convergence when there is a scale disparity. This is easiest to appreciate when solving steady state problems on a very fine grid because the discretized system is very good at reducing small wavelength errors but not so good at reducing large wavelength errors.

If you solve transient problems with a very small time-step (or analogously, use a steady solver with implicit under-relaxation with a very small under-relaxation factor), the large wavelength errors are not the ones stalling convergence anymore and there is not much benefit to acceleration.


You also have to consider exactly which multigrid cycle is being implemented (V vs W vs VW vs WW, etc). A W or W+ cycle (as a hyperbole, consider a 24W cycle) can easily exceed the cost of simply doing another iteration. In other words, by stupidly using a multigrid method, you can also solve problems much slower.
mb.pejvak likes this.
LuckyTran is offline   Reply With Quote

Old   October 19, 2019, 02:56
Default
  #3
Senior Member
 
Mehdi Baba Mehdi
Join Date: Jan 2011
Posts: 158
Rep Power: 15
mb.pejvak is on a distinguished road
Thanks LuckyTran for the answer.
As I know, by Fourier analysis of error in iterative method (e.g. Jacobi), the maximum eigenvalue (corresponds to max frequency of error) for Jacobi method is
\lambda_{max} = cos(\pi h) \approx1 - 1/2(\pi h)^2
So if there is wide range of spacial step size (h), it results in wide range of frequency (eigenvalue) in the error, and it may leads to stiff problem. in this case multigrid can be beneficial.
But about the impact of temporal step size, how the eigenvalue of the matrix change by the combination of spacial and temporal step size. introducing any reference would be appreciated.
mb.pejvak is offline   Reply With Quote

Reply

Tags
conjugate gradient, iterative methods, multigrid


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
Doubts about using solver MPPIC to form stationary particle pile fmpmorgado OpenFOAM Running, Solving & CFD 1 August 11, 2023 07:50
[ANSYS Meshing] Help with element size sandri_92 ANSYS Meshing & Geometry 14 November 14, 2018 07:54
thobois class engineTopoChangerMesh error Peter_600 OpenFOAM 4 August 2, 2014 09:52
3d vof Smaras FLUENT 2 February 19, 2013 06:58
explicit CFD solver and multigrid John Buckley Main CFD Forum 5 March 8, 2000 05:00


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