LduMatrix< Type, DType, LUType >::preconditioner Class Referenceabstract

Abstract base-class for LduMatrix preconditioners. More...

Inheritance diagram for LduMatrix< Type, DType, LUType >::preconditioner:
Collaboration diagram for LduMatrix< Type, DType, LUType >::preconditioner:

Public Member Functions

virtual const wordtype () 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< preconditionerNew (const solver &sol, const dictionary &preconditionerDict)
 Return a new preconditioner. More...
 

Protected Attributes

const solversolver_
 Reference to the base-solver this preconditioner is used with. More...
 

Detailed Description

template<class Type, class DType, class LUType>
class Foam::LduMatrix< Type, DType, LUType >::preconditioner

Abstract base-class for LduMatrix preconditioners.

Definition at line 361 of file LduMatrix.H.

Constructor & Destructor Documentation

◆ preconditioner()

preconditioner ( const solver sol)
inline

Definition at line 406 of file LduMatrix.H.

◆ ~preconditioner()

virtual ~preconditioner ( )
inlinevirtual

Definition at line 427 of file LduMatrix.H.

Member Function Documentation

◆ type()

virtual const word& type ( ) const
pure virtual

Runtime type information.

◆ declareRunTimeSelectionTable() [1/2]

declareRunTimeSelectionTable ( autoPtr  ,
preconditioner  ,
symMatrix  ,
(const solver &sol, const dictionary &preconditionerDict)  ,
(sol, preconditionerDict)   
)

◆ declareRunTimeSelectionTable() [2/2]

declareRunTimeSelectionTable ( autoPtr  ,
preconditioner  ,
asymMatrix  ,
(const solver &sol, const dictionary &preconditionerDict)  ,
(sol, preconditionerDict)   
)

◆ New()

Foam::autoPtr< typename Foam::LduMatrix< Type, DType, LUType >::preconditioner > New ( const solver sol,
const dictionary 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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ read()

virtual void read ( const dictionary preconditionerDict)
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.

◆ precondition()

virtual void precondition ( Field< Type > &  wA,
const Field< Type > &  rA 
) const
pure virtual

◆ preconditionT()

virtual void preconditionT ( Field< Type > &  wT,
const Field< Type > &  rT 
) const
inlinevirtual

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.

Member Data Documentation

◆ solver_

const solver& solver_
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().


The documentation for this class was generated from the following files: