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 &preconditionerDict),(sol, preconditionerDict)) | |
declareRunTimeSelectionTable (autoPtr, preconditioner, asymMatrix,(const solver &sol, const dictionary &preconditionerDict),(sol, preconditionerDict)) | |
preconditioner (const solver &sol) | |
virtual | ~preconditioner () |
virtual void | read (const dictionary &preconditionerDict) |
Read and reset the preconditioner parameters. More... | |
virtual void | precondition (Field< Type > &wA, const Field< Type > &rA) const =0 |
Return wA the preconditioned form of residual rA. More... | |
virtual void | preconditionT (Field< Type > &wT, const Field< Type > &rT) const |
Return wT the transpose-matrix preconditioned form of. More... | |
Static Public Member Functions | |
static autoPtr< preconditioner > | New (const solver &sol, const dictionary &preconditionerDict) |
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 361 of file LduMatrix.H.
|
inline |
Definition at line 406 of file LduMatrix.H.
|
inlinevirtual |
Definition at line 427 of file LduMatrix.H.
|
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 32 of file LduMatrixPreconditioner.C.
References Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, dictionary::lookup(), 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 NoPreconditioner< Type, DType, LUType >, and DiagonalPreconditioner< Type, DType, LUType >.
Definition at line 435 of file LduMatrix.H.
Return wA the preconditioned form of residual rA.
Implemented in NoPreconditioner< Type, DType, LUType >, TDILUPreconditioner< Type, DType, LUType >, and DiagonalPreconditioner< Type, DType, LUType >.
References NotImplemented.
Return wT the transpose-matrix preconditioned form of.
residual rT. This is only required for preconditioning asymmetric matrices.
Reimplemented in NoPreconditioner< Type, DType, LUType >, TDILUPreconditioner< Type, DType, LUType >, and DiagonalPreconditioner< Type, DType, LUType >.
Definition at line 448 of file LduMatrix.H.
|
protected |
Reference to the base-solver this preconditioner is used with.
Definition at line 368 of file LduMatrix.H.
Referenced by DiagonalPreconditioner< Type, DType, LUType >::DiagonalPreconditioner().