|
[Sponsors] | |||||
best values for GAMG solver (nCellsInCoarsestLevel , nPreSweeps 0, nPostSweeps) |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
|
#1 |
|
Member
Join Date: Jun 2011
Posts: 52
Rep Power: 3 ![]() |
what is the best values for GAMG parameters specially for
nCellsInCoarsestLevel , nPreSweeps 0, nPostSweeps is there a formula to calculate those based on the number of cells ? Regards |
|
|
|
|
|
|
|
|
#2 |
|
Senior Member
Daniel P. Combest
Join Date: Mar 2009
Location: St. Louis, USA
Posts: 358
Rep Power: 12 ![]() |
Try this
GAMG hexa vs. tetrahedron meshes There are several other threads, but the settings and concepts from this thread I use with my own simulations. |
|
|
|
|
|
|
|
|
#3 |
|
Member
Join Date: Jun 2011
Posts: 52
Rep Power: 3 ![]() |
Dear Daniel
thanks so much for your answer. in most of OF tutorials the value of nCellsInCoarsestLevel is set to 10 (or 20) but in your link it is set to 500 (or sqrt(#cell)) do you know why OF used the 10 or 20 values ? Regards |
|
|
|
|
|
|
|
|
#4 |
|
Senior Member
Daniel P. Combest
Join Date: Mar 2009
Location: St. Louis, USA
Posts: 358
Rep Power: 12 ![]() |
This is one of those situations where something has been tested and found to work for a particular situation. You can always try the sqrt(ncells), 10, 20, 50 or 100 and then see which one is the best for your case.
I have read that 10 or 20 for larger cases is too low and can be inefficient. Hence why I stay a bit higher with sqrt(nCells). However, its a case by case change. |
|
|
|
|
|
|
|
|
#5 |
|
Senior Member
Kyle Mooney
Join Date: Jul 2009
Location: Amherst, MA USA
Posts: 174
Rep Power: 5 ![]() |
I've seen similar changes in convergence speed by altering the nCellsInCoarsestLevel setting. In once case I had pressure converge twice as fast for a relatively large case @ 600k cells on about 50 processors. I don't have the solver settings on hand unfortunately.
It is definitely worth investigating before starting big parametric or large parallel cases. |
|
|
|
|
|
|
|
|
#6 | |
|
Member
Join Date: Jun 2011
Posts: 52
Rep Power: 3 ![]() |
Quote:
Hi Daniel by increasing the nCellsInCoarsestLevel value, the convergency increased but the high value of nCellsInCoarsestLevel may be increase the cpu time for solution in other word by the high value of nCellsInCoarsestLevel solution converged, certainly am I right ? Regards |
||
|
|
|
||
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Waves2Foam Related Topics | ngj | OpenFOAM Running, Solving & CFD | 299 | May 9, 2013 09:16 |
| Using a user-defined solver in OF | ozzythewise | OpenFOAM Running, Solving & CFD | 3 | February 8, 2011 15:28 |
| CFX 5.5 | Roued | CFX | 1 | October 2, 2001 16:49 |
| Setting a B.C using UserFortran in 4.3 | tokai | CFX | 10 | July 17, 2001 16:25 |
| Error during Solver | cfd guy | CFX | 4 | May 8, 2001 06:04 |