CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

GAMG solver in OpenFOAM 14

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 2 Post By eugene
  • 1 Post By akidess

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 29, 2007, 13:51
Default In OF 1.3, we used the followi
  #1
Senior Member
 
Srinath Madhavan (a.k.a pUl|)
Join Date: Mar 2009
Location: Edmonton, AB, Canada
Posts: 703
Rep Power: 21
msrinath80 is on a distinguished road
In OF 1.3, we used the following syntax in the fvSolution file:

p AMG 1e-06 0 25;

If I were to translate the same into OF 1.4, I would expect the following syntax:

p GAMG
{
tolerance 1e-06;
relTol 0;
nCellsInCoarsestLevel 25;

};

My question is whether we need to specify nPreSweeps, nPostSweeps and nFinestSweeps? Also, can someone explain the use of mergeLevels?

Also what smoothers are available?

Many thanks!
msrinath80 is offline   Reply With Quote

Old   May 31, 2007, 11:55
Default mergeLevels is the number of m
  #2
Senior Member
 
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 21
eugene is on a distinguished road
mergeLevels is the number of merge operations to do between grid levels. mergeLevel 1 is equivalent to what is hard coded in AMG and is what I normally use.

agglomerator faceAreaPair; seems to work best

smoother options are: GaussSeidel, DIC and DICGausSeidel. GausSeidel seems to work best, but DICGaussSeidel might be better for more difficult problems. It is more expensive though.

nPreSweeps, nPostSweeps, nFinestSweeps: I use 0,2,2 and this should work for most problems. Feel free to experiment though.
Yage and Narcasi like this.
eugene is offline   Reply With Quote

Old   May 31, 2007, 15:28
Default Many thanks for that clear exp
  #3
Senior Member
 
Srinath Madhavan (a.k.a pUl|)
Join Date: Mar 2009
Location: Edmonton, AB, Canada
Posts: 703
Rep Power: 21
msrinath80 is on a distinguished road
Many thanks for that clear explanation Eugene!
msrinath80 is offline   Reply With Quote

Old   November 9, 2015, 11:16
Default
  #4
Senior Member
 
Join Date: Mar 2015
Posts: 250
Rep Power: 12
KateEisenhower is on a distinguished road
Quote:
Originally Posted by eugene View Post
mergeLevels is the number of merge operations to do between grid levels. mergeLevel 1 is equivalent to what is hard coded in AMG and is what I normally use.

agglomerator faceAreaPair; seems to work best

smoother options are: GaussSeidel, DIC and DICGausSeidel. GausSeidel seems to work best, but DICGaussSeidel might be better for more difficult problems. It is more expensive though.

nPreSweeps, nPostSweeps, nFinestSweeps: I use 0,2,2 and this should work for most problems. Feel free to experiment though.
Hello Eugene,

can you or someone else please explain what merging means in this context?

Kind regards,

Kate
KateEisenhower is offline   Reply With Quote

Old   November 10, 2015, 01:59
Default
  #5
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 29
akidess will become famous soon enough
AFAIK merging is the coarsening of the grids. On a structured 2D grid, a standard geometric merge would make one cell out of four. If you'd specify mergeLevel 2, the solver would skip that level and make one cell out of 16. While that saves some work, typically mergeLevel 1 should give you optimal convergence.
KateEisenhower likes this.
__________________
*On twitter @akidTwit
*Spend as much time formulating your questions as you expect people to spend on their answer.
akidess 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
GAMG Solver tutlhino OpenFOAM Running, Solving & CFD 5 January 26, 2013 16:01
DSMC solver in OpenFoam flatorre OpenFOAM 7 July 28, 2010 20:04
Some Questions about GAMG bastil OpenFOAM Running, Solving & CFD 2 March 2, 2009 03:21
Useing GAMG sivakumar OpenFOAM Running, Solving & CFD 1 October 20, 2008 06:40
AMG solver in Openfoam gonski Main CFD Forum 0 November 25, 2007 05:20


All times are GMT -4. The time now is 11:35.