Abstract base-class for lduMatrix preconditioners. More...
Public Member Functions | |
virtual const word & | type () const =0 |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, preconditioner, symMatrix,(const solver &sol, const dictionary &solverControls),(sol, solverControls)) | |
declareRunTimeSelectionTable (autoPtr, preconditioner, asymMatrix,(const solver &sol, const dictionary &solverControls),(sol, solverControls)) | |
preconditioner (const solver &sol) | |
virtual | ~preconditioner () |
Destructor. More... | |
virtual void | read (const dictionary &) |
Read and reset the preconditioner parameters. More... | |
virtual void | precondition (scalarField &wA, const scalarField &rA, const direction cmpt=0) const =0 |
Return wA the preconditioned form of residual rA. More... | |
virtual void | preconditionT (scalarField &wT, const scalarField &rT, const direction cmpt=0) const |
Return wT the transpose-matrix preconditioned form of. More... | |
Static Public Member Functions | |
static word | getName (const dictionary &) |
Find the preconditioner name (directly or from a sub-dictionary) More... | |
static autoPtr< preconditioner > | New (const solver &sol, const dictionary &solverControls) |
Return a new preconditioner. More... | |
Protected Attributes | |
const solver & | solver_ |
Reference to the base-solver this preconditioner is used with. More... | |
Abstract base-class for lduMatrix preconditioners.
Definition at line 410 of file lduMatrix.H.
|
inline |
Definition at line 459 of file lduMatrix.H.
References lduMatrix::solver::New().
|
inlinevirtual |
Destructor.
Definition at line 478 of file lduMatrix.H.
References lduMatrix::solver::read().
|
static |
Find the preconditioner name (directly or from a sub-dictionary)
Definition at line 40 of file lduMatrixPreconditioner.C.
References entry::dict(), Foam::e, entry::isDict(), dictionary::lookup(), dictionary::lookupEntry(), Foam::name(), lduMatrix::preconditioner::New(), and entry::stream().
Referenced by PBiCG::solve(), PCG::solve(), and PBiCGStab::solve().
|
pure virtual |
Runtime type information.
declareRunTimeSelectionTable | ( | autoPtr | , |
preconditioner | , | ||
symMatrix | , | ||
(const solver &sol, const dictionary &solverControls) | , | ||
(sol, solverControls) | |||
) |
declareRunTimeSelectionTable | ( | autoPtr | , |
preconditioner | , | ||
asymMatrix | , | ||
(const solver &sol, const dictionary &solverControls) | , | ||
(sol, solverControls) | |||
) |
|
static |
Return a new preconditioner.
Definition at line 63 of file lduMatrixPreconditioner.C.
References lduMatrix::asymmetric(), entry::dict(), Foam::e, Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, entry::isDict(), dictionary::lookup(), dictionary::lookupEntry(), lduMatrix::solver::matrix(), Foam::name(), Foam::nl, dictionary::null, entry::stream(), and lduMatrix::symmetric().
Referenced by lduMatrix::preconditioner::getName(), PCG::solve(), PBiCG::solve(), and PBiCGStab::solve().
|
inlinevirtual |
Read and reset the preconditioner parameters.
from the given stream
Definition at line 486 of file lduMatrix.H.
|
pure virtual |
Return wA the preconditioned form of residual rA.
Implemented in FDICPreconditioner, diagonalPreconditioner, GAMGPreconditioner, DICPreconditioner, DILUPreconditioner, and noPreconditioner.
|
inlinevirtual |
Return wT the transpose-matrix preconditioned form of.
residual rT. This is only required for preconditioning asymmetric matrices.
Reimplemented in diagonalPreconditioner, DILUPreconditioner, and noPreconditioner.
Definition at line 501 of file lduMatrix.H.
References lduMatrix::ClassName(), lduMatrix::lduMatrix(), NotImplemented, and lduMatrix::~lduMatrix().
|
protected |
Reference to the base-solver this preconditioner is used with.
Definition at line 417 of file lduMatrix.H.