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.
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 46 of file GAMGSolver.C.
References lduMatrix::diag(), Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, lduMatrix::lower(), GAMGInterface::New(), Foam::nl, Foam::Pout, UPtrList< T >::set(), UPtrList< T >::size(), List< T >::size(), OStringStream::str(), Foam::type(), and Foam::vtkWriteOps::write().
|
virtual |
Destructor.
Definition at line 282 of file GAMGSolver.C.
References Foam::endl(), Foam::Pout, and lduMatrix::solver::readControls().
TypeName | ( | "GAMG" | ) |
Runtime type information.
|
virtual |
Solve.
Implements lduMatrix::solver.
Definition at line 34 of file GAMGSolverSolve.C.
References dictionary::add(), SolverPerformance< Type >::checkConvergence(), lduMatrix::solver::controlDict_, lduMatrix::diag(), dict, Foam::endl(), lduMatrix::solver::fieldName_, SolverPerformance< Type >::finalResidual(), forAll, Foam::gSumMag(), Foam::Info, SolverPerformance< Type >::initialResidual(), lduMatrix::solver::interfaceBouCoeffs_, lduMatrix::solver::interfaceIntCoeffs_, lduMatrix::solver::interfaces_, Foam::fvc::interpolate(), messageStream::masterStream(), lduMatrix::solver::matrix_, Foam::max(), mesh, Foam::min(), GAMGAgglomeration::nCells(), lduMatrix::smoother::New(), SolverPerformance< Type >::nIterations(), Foam::Pout, SolverPerformance< Type >::print(), GAMGAgglomeration::prolongField(), lduMatrix::solver::relTol_, GAMGAgglomeration::restrictAddressing(), GAMGAgglomeration::restrictField(), PtrList< T >::set(), PtrList< T >::setSize(), List< T >::setSize(), List< T >::size(), PCG::solve(), PBiCGStab::solve(), source(), and lduMatrix::solver::tolerance_.
|
friend |
Definition at line 320 of file GAMGSolver.H.