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... | |
virtual void | readControls () |
Read the control parameters from the controlDict_. 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... | |
int | log_ |
Level of verbosity in the solver output statements. More... | |
label | minIter_ |
Minimum number of iterations in the solver. More... | |
label | maxIter_ |
Maximum number of iterations in the solver. More... | |
scalar | tolerance_ |
Final convergence tolerance. More... | |
scalar | relTol_ |
Convergence tolerance relative to the initial. More... | |
profilingTrigger | profiling_ |
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 76 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 50 of file GAMGSolver.C.
References GAMGAgglomeration::agglomProcIDs(), lduMatrix::solver::controlDict_, lduMatrix::diag(), entry::dict(), Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, dictionary::findEntry(), forAll, GAMGAgglomeration::hasMeshLevel(), GAMGAgglomeration::hasProcMesh(), GAMGAgglomeration::interfaceLevel(), lduMatrix::solver::interfaces(), entry::isDict(), keyType::LITERAL_RECURSIVE, lduMatrix::solver::log_, lduMatrix::lower(), lduMatrix::solver::matrix(), GAMGAgglomeration::meshLevel(), Time::New(), Foam::New(), Foam::nl, os(), Foam::Pout, GAMGAgglomeration::procAgglomMap(), GAMGAgglomeration::processorAgglomerate(), lduMatrix::solver::relTol_, PtrList< T >::set(), UPtrList< T >::set(), GAMGAgglomeration::size(), UPtrList< T >::size(), UList< T >::size(), lduMatrix::solver::tolerance_, lduMatrix::solver::type(), and OBJstream::write().
|
virtual |
Destructor.
Definition at line 336 of file GAMGSolver.C.
TypeName | ( | "GAMG" | ) |
Runtime type information.
|
virtual |
Solve.
Implements lduMatrix::solver.
Definition at line 35 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::log_, messageStream::masterStream(), lduMatrix::solver::matrix(), lduMatrix::solver::matrix_, lduMatrix::solver::maxIter_, mesh, lduMatrix::solver::minIter_, SolverPerformance< Type >::nIterations(), lduMatrix::solver::normFactor(), Foam::Pout, SolverPerformance< Type >::print(), psi, refPtr< T >::ref(), lduMatrix::solver::relTol_, lduMatrix::setResidualField(), UList< T >::size(), and lduMatrix::solver::tolerance_.
|
friend |
Definition at line 329 of file GAMGSolver.H.