Abstract base-class for lduMatrix preconditioners. More...
#include <src/OpenFOAM/matrices/lduMatrix/lduMatrix/lduMatrix.H>
Abstract base-class for lduMatrix preconditioners.
Definition at line 524 of file lduMatrix.H.
Public Member Functions | |
virtual const word & | type () const =0 |
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)) | |
preconditioner (const solver &sol) | |
virtual | ~preconditioner () |
virtual void | read (const dictionary &) |
Read and reset the preconditioner parameters.
| |
virtual void | precondition (scalarField &wA, const scalarField &rA, const direction cmpt=0) const =0 |
Return wA the preconditioned form of residual rA.
| |
virtual void | preconditionT (scalarField &wT, const scalarField &rT, const direction cmpt=0) const |
Return wT the transpose-matrix preconditioned form of.
| |
Static Public Member Functions | |
static word | getName (const dictionary &) |
Find the preconditioner name (directly or from a sub-dictionary)
| |
static autoPtr< preconditioner > | New (const solver &sol, const dictionary &solverControls) |
Return a new preconditioner.
| |
Protected Attributes | |
const solver & | solver_ |
Reference to the base-solver this preconditioner is used with.
|
preconditioner | ( | const solver & | sol ) | [inline]
|
Definition at line 573 of file lduMatrix.H.
virtual ~preconditioner | ( | ) | [inline, virtual]
|
Definition at line 593 of file lduMatrix.H.
Foam::word getName | ( | const dictionary & | solverControls ) | [static]
|
Find the preconditioner name (directly or from a sub-dictionary)
Definition at line 41 of file lduMatrixPreconditioner.C.
References entry::dict(), e, entry::isDict(), dictionary::lookup(), dictionary::lookupEntry(), name(), and entry::stream().
virtual const word& type | ( | ) | const [pure virtual]
|
Runtime type information.
Referenced by lduMatrix::preconditioner::preconditionT().
declareRunTimeSelectionTable | ( | autoPtr | , |
preconditioner | , | ||
symMatrix | , | ||
(const solver &sol, const dictionary &solverControls) | , | ||
(sol, solverControls) | |||
) |
declareRunTimeSelectionTable | ( | autoPtr | , |
preconditioner | , | ||
asymMatrix | , | ||
(const solver &sol, const dictionary &solverControls) | , | ||
(sol, solverControls) | |||
) |
Foam::autoPtr< Foam::lduMatrix::preconditioner > New | ( | const solver & | sol, |
const dictionary & | solverControls | ||
) | [static]
|
Return a new preconditioner.
Definition at line 64 of file lduMatrixPreconditioner.C.
References lduMatrix::asymmetric(), entry::dict(), e, Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorIn, entry::isDict(), dictionary::lookup(), dictionary::lookupEntry(), lduMatrix::solver::matrix(), name(), Foam::nl, entry::stream(), and lduMatrix::symmetric().
virtual void read | ( | const dictionary & | ) | [inline, virtual]
|
Read and reset the preconditioner parameters.
from the given stream
Definition at line 601 of file lduMatrix.H.
virtual void precondition | ( | scalarField & | wA, |
const scalarField & | rA, | ||
const direction | cmpt = 0
|
||
) | const [pure virtual]
|
Return wA the preconditioned form of residual rA.
Implemented in diagonalPreconditioner, DICPreconditioner, DILUPreconditioner, FDICPreconditioner, GAMGPreconditioner, and noPreconditioner.
virtual void preconditionT | ( | scalarField & | wT, |
const scalarField & | rT, | ||
const direction | cmpt = 0
|
||
) | const [inline, virtual]
|
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 616 of file lduMatrix.H.
References notImplemented, and lduMatrix::preconditioner::type().
Reference to the base-solver this preconditioner is used with.
Definition at line 531 of file lduMatrix.H.