Abstract base-class for LduMatrix preconditioners. More...
#include <LduMatrix.H>


Public Member Functions | |
| virtual const word & | type () const =0 |
| Runtime type information. | |
| declareRunTimeSelectionTable (autoPtr, preconditioner, symMatrix,(const solver &sol, const dictionary &preconditionerDict),(sol, preconditionerDict)) | |
| declareRunTimeSelectionTable (autoPtr, preconditioner, asymMatrix,(const solver &sol, const dictionary &preconditionerDict),(sol, preconditionerDict)) | |
| preconditioner (const solver &sol) | |
| Construct for given solver. | |
| virtual | ~preconditioner ()=default |
| Destructor. | |
| virtual void | read (const dictionary &) |
| Read and reset the preconditioner parameters from the given dictionary. | |
| virtual void | precondition (Field< Type > &wA, const Field< Type > &rA) const =0 |
| Return wA the preconditioned form of residual rA. | |
| virtual void | preconditionT (Field< Type > &wT, const Field< Type > &rT) const |
| Return wT the transpose-matrix preconditioned form of residual rT. | |
Static Public Member Functions | |
| static autoPtr< preconditioner > | New (const solver &sol, const dictionary &preconditionerDict) |
| Return a new preconditioner. | |
Protected Attributes | |
| const solver & | solver_ |
| Reference to the base-solver this preconditioner is used with. | |
Abstract base-class for LduMatrix preconditioners.
Definition at line 444 of file LduMatrix.H.
|
inline |
Construct for given solver.
Definition at line 496 of file LduMatrix.H.
References solver_.
Referenced by declareRunTimeSelectionTable(), declareRunTimeSelectionTable(), DiagonalPreconditioner< Type, DType, LUType >::DiagonalPreconditioner(), NoPreconditioner< Type, DType, LUType >::NoPreconditioner(), and TDILUPreconditioner< Type, DType, LUType >::TDILUPreconditioner().

|
virtualdefault |
Destructor.
|
pure virtual |
Runtime type information.
| declareRunTimeSelectionTable | ( | autoPtr | , |
| preconditioner | , | ||
| symMatrix | , | ||
| (const solver &sol, const dictionary &preconditionerDict) | , | ||
| (sol, preconditionerDict) | ) |
| declareRunTimeSelectionTable | ( | autoPtr | , |
| preconditioner | , | ||
| asymMatrix | , | ||
| (const solver &sol, const dictionary &preconditionerDict) | , | ||
| (sol, preconditionerDict) | ) |
|
static |
Return a new preconditioner.
Definition at line 28 of file LduMatrixPreconditioner.C.
References Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, FatalIOErrorInLookup, dictionary::get(), and LduMatrix< Type, DType, LUType >::solver::matrix().
Referenced by PBiCCCG< Type, DType, LUType >::solve(), PBiCICG< Type, DType, LUType >::solve(), and PCICG< Type, DType, LUType >::solve().


|
inlinevirtual |
Read and reset the preconditioner parameters from the given dictionary.
Reimplemented in DiagonalPreconditioner< Type, DType, LUType >, and NoPreconditioner< Type, DType, LUType >.
Definition at line 526 of file LduMatrix.H.
|
pure virtual |
Return wA the preconditioned form of residual rA.
Implemented in DiagonalPreconditioner< Type, DType, LUType >, NoPreconditioner< Type, DType, LUType >, and TDILUPreconditioner< Type, DType, LUType >.
|
inlinevirtual |
Return wT the transpose-matrix preconditioned form of residual rT.
This is only required for preconditioning asymmetric matrices.
Reimplemented in DiagonalPreconditioner< Type, DType, LUType >, NoPreconditioner< Type, DType, LUType >, and TDILUPreconditioner< Type, DType, LUType >.
Definition at line 544 of file LduMatrix.H.
References NotImplemented.
|
protected |
Reference to the base-solver this preconditioner is used with.
Definition at line 453 of file LduMatrix.H.
Referenced by DiagonalPreconditioner< Type, DType, LUType >::DiagonalPreconditioner(), TDILUPreconditioner< Type, DType, LUType >::precondition(), preconditioner(), and TDILUPreconditioner< Type, DType, LUType >::preconditionT().