Geometric agglomerated algebraic multigrid solver. More...
Friends | |
class | GAMGPreconditioner |
Additional Inherited Members | |
Static Public Member Functions inherited from lduMatrix::solver | |
static autoPtr< solver > | New (const word &fieldName, const lduMatrix &matrix, const FieldField< Field, scalar > &interfaceBouCoeffs, const FieldField< Field, scalar > &interfaceIntCoeffs, const lduInterfaceFieldPtrsList &interfaces, const dictionary &solverControls) |
Return a new solver. More... | |
Protected Attributes inherited from lduMatrix::solver | |
word | fieldName_ |
const lduMatrix & | matrix_ |
const FieldField< Field, scalar > & | interfaceBouCoeffs_ |
const FieldField< Field, scalar > & | interfaceIntCoeffs_ |
lduInterfaceFieldPtrsList | interfaces_ |
dictionary | controlDict_ |
Dictionary of controls. More... | |
label | maxIter_ |
Maximum number of iterations in the solver. More... | |
label | minIter_ |
Minimum number of iterations in the solver. More... | |
scalar | tolerance_ |
Final convergence tolerance. More... | |
scalar | relTol_ |
Convergence tolerance relative to the initial. More... | |
Static Protected Attributes inherited from lduMatrix::solver | |
static const label | defaultMaxIter_ = 1000 |
Default maximum number of iterations in the solver. More... | |
Geometric agglomerated algebraic multigrid solver.
Characteristics:
Definition at line 70 of file GAMGSolver.H.
GAMGSolver | ( | const word & | fieldName, |
const lduMatrix & | matrix, | ||
const FieldField< Field, scalar > & | interfaceBouCoeffs, | ||
const FieldField< Field, scalar > & | interfaceIntCoeffs, | ||
const lduInterfaceFieldPtrsList & | interfaces, | ||
const dictionary & | solverControls | ||
) |
Construct from lduMatrix and solver controls.
Definition at line 45 of file GAMGSolver.C.
References GAMGAgglomeration::agglomProcIDs(), lduMatrix::diag(), Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, GAMGAgglomeration::hasMeshLevel(), GAMGAgglomeration::hasProcMesh(), GAMGAgglomeration::interfaceLevel(), lduMatrix::solver::interfaces(), lduMatrix::lower(), lduMatrix::solver::matrix(), GAMGAgglomeration::meshLevel(), GAMGInterface::New(), Foam::nl, Foam::Pout, GAMGAgglomeration::procAgglomMap(), GAMGAgglomeration::processorAgglomerate(), PtrList< T >::set(), UPtrList< T >::set(), UPtrList< T >::size(), GAMGAgglomeration::size(), List< T >::size(), OStringStream::str(), lduMatrix::solver::type(), and OSstream::write().
|
virtual |
Destructor.
Definition at line 282 of file GAMGSolver.C.
TypeName | ( | "GAMG" | ) |
Runtime type information.
|
virtual |
Solve.
Implements lduMatrix::solver.
Definition at line 33 of file GAMGSolverSolve.C.
References lduMatrix::Amul(), SolverPerformance< Type >::checkConvergence(), Foam::endl(), lduMatrix::solver::fieldName_, SolverPerformance< Type >::finalResidual(), Foam::gSumMag(), Foam::Info, SolverPerformance< Type >::initialResidual(), lduMatrix::solver::interfaceBouCoeffs_, lduMatrix::solver::interfaces_, lduMatrix::solver::matrix(), lduMatrix::solver::matrix_, lduMatrix::solver::maxIter_, lduMatrix::solver::minIter_, SolverPerformance< Type >::nIterations(), lduMatrix::solver::normFactor(), Foam::Pout, SolverPerformance< Type >::print(), psi, lduMatrix::solver::relTol_, List< T >::size(), and lduMatrix::solver::tolerance_.
|
friend |
Definition at line 320 of file GAMGSolver.H.