|
[Sponsors] |
February 23, 2012, 06:54 |
AMG as preconditioner
|
#1 |
New Member
Join Date: Jan 2012
Location: Germay - Stuttgart
Posts: 21
Rep Power: 0 |
Hi,
after my first Problems with AMG as solver, I'm trying to use AMG as preconditioner like in the papers [1] and [2] from Hrv. For GAMG as solver with preconditioner AMG it works well (I did this for proof of concept, if AMG as preconditioner works in my OF installation). But it doesn't work with CG-methods. This is my ./system/fvSolution: Code:
solvers { "(omega|rho|U|Yi|hs|k|epsilon)" { solver PBiCG; tolerance 1e-6; relTol 0; minIter 0; maxIter 1000; preconditioner { preconditioner AMG; cycle W-cycle; nMaxLevels 100; scale off; policy AAMG; groupSize 4; minCoarseEqns 20; smoother GaussSeidel; nPreSweeps 2; nPostSweeps 2; scaleCorrection true; directSolveCoarsest false; cacheAgglomeration true; nCellsInCoarsestLevel 10; agglomerator faceAreaPair; mergeLevels 1; } } p { solver PCG; tolerance 1e-9; relTol 0; minIter 0; maxIter 1000; preconditioner { preconditioner AMG; cycle W-cycle; nMaxLevels 100; scale off; policy AAMG; groupSize 4; minCoarseEqns 20; smoother GaussSeidel; nPreSweeps 2; nPostSweeps 2; scaleCorrection true; directSolveCoarsest false; cacheAgglomeration true; nCellsInCoarsestLevel 10; agglomerator faceAreaPair; mergeLevels 1; } } } PISO { nCorrectors 2; nNonOrthogonalCorrectors 0; } Code:
Creating field DpDt Courant Number mean: 2.98621e-05 max: 0.0562667 velocity magnitude: 42.2 Starting time loop Courant Number mean: 5.30599e-05 max: 0.0999763 velocity magnitude: 42.2 deltaT = 1.77683e-05 Time = 1.77683e-05 Solving chemistry diagonal: Solving for rho, Initial residual = 0, Final residual = 0, No Iterations 0 [0] [1] [1] [1] --> FOAM FATAL ERROR: [1] Not implemented[2] [2] [2] --> FOAM FATAL ERROR: [2] Not implemented [2] [2] From function AMG::preconditionT(scalarField& wT, const scalarField& rT, const direction cmpt) [2] [3] [3] [3] --> FOAM FATAL ERROR: [3] Not implemented [3] [3] From function AMG::preconditionT(scalarField& wT, const scalarField& rT, const direction cmpt) [3] in file /build/buildd/openfoam-1.6-ext-1.6.0/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/lduMatrix.H at line [1] [1] From function AMG::preconditionT(scalarField& wT, const scalarField& rT, const direction cmpt) [1] in file /build/buildd/openfoam-1.6-ext-1.6.0/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/lduMatrix.H at line 725. [1] FOAM parallel run aborting [1] in file /build/buildd/openfoam-1.6-ext-1.6.0/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/lduMatrix.H at line 725. [2] FOAM parallel run aborting [2] The "banana" test for getting the available preconditioners, shows me AMG among others. I hope somebody can help me with this. Greetings, HaZe. |
|
February 24, 2012, 03:32 |
|
#2 |
Senior Member
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36 |
You should be able to use it with the PCG solver only. In OpenFOAM 2.1.x the syntax is
Code:
p { solver PCG; preconditioner { preconditioner GAMG; tolerance 1e-08; relTol 0; smoother DICGaussSeidel; nPreSweeps 0; nPostSweeps 2; nFinestSweeps 2; cacheAgglomeration false; nCellsInCoarsestLevel 10; agglomerator faceAreaPair; mergeLevels 1; } tolerance 1e-08; relTol 0; maxIter 100; } Best,
__________________
Alberto Passalacqua GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541) OpenQBMM - An open-source implementation of quadrature-based moment methods. To obtain more accurate answers, please specify the version of OpenFOAM you are using. |
|
February 24, 2012, 04:07 |
|
#3 | |
New Member
Join Date: Jan 2012
Location: Germay - Stuttgart
Posts: 21
Rep Power: 0 |
Quote:
And another issue: you wrote I should use "GAMG" for preconditioning. Is it really the same as "AMG"? I always thought "GAMG" is just an improvement of the old "amgSolver" in OF 1.5 and "AMG" a completely new implementation. It would be very nice for me to know the differences between all three of them. Has anyone any sources for that? |
||
February 24, 2012, 04:31 |
|
#4 | ||
Senior Member
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36 |
Quote:
Quote:
Best,
__________________
Alberto Passalacqua GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541) OpenQBMM - An open-source implementation of quadrature-based moment methods. To obtain more accurate answers, please specify the version of OpenFOAM you are using. |
|||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
v4 & AMG warning msg | more work | Siemens | 9 | September 7, 2022 10:10 |
Quarter Burner mesh with periosic condition | SamCanuck | FLUENT | 2 | August 31, 2011 12:34 |
AMG versus ICCG | msrinath80 | OpenFOAM Running, Solving & CFD | 2 | November 7, 2006 16:15 |
Problem with jet flow | braennstroem | OpenFOAM Running, Solving & CFD | 16 | May 15, 2006 03:23 |