TDILUPreconditioner< Type, DType, LUType > Class Template Reference

Simplified diagonal-based incomplete LU preconditioner for asymmetric matrices. More...

Inheritance diagram for TDILUPreconditioner< Type, DType, LUType >:
Collaboration diagram for TDILUPreconditioner< Type, DType, LUType >:

Public Member Functions

 TypeName ("DILU")
 Runtime type information. More...
 
 TDILUPreconditioner (const typename LduMatrix< Type, DType, LUType >::solver &sol, const dictionary &preconditionerDict)
 Construct from matrix components and preconditioner data dictionary. More...
 
virtual ~TDILUPreconditioner ()
 
virtual void precondition (Field< Type > &wA, const Field< Type > &rA) const
 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...
 
- Public Member Functions inherited from LduMatrix< Type, DType, LUType >::preconditioner
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...
 

Static Public Member Functions

static void calcInvD (Field< DType > &rD, const LduMatrix< Type, DType, LUType > &matrix)
 Calculate the reciprocal of the preconditioned diagonal. More...
 
- Static Public Member Functions inherited from LduMatrix< Type, DType, LUType >::preconditioner
static autoPtr< preconditionerNew (const solver &sol, const dictionary &preconditionerDict)
 Return a new preconditioner. More...
 

Additional Inherited Members

- Protected Attributes inherited from LduMatrix< Type, DType, LUType >::preconditioner
const solversolver_
 Reference to the base-solver this preconditioner is used with. More...
 

Detailed Description

template<class Type, class DType, class LUType>
class Foam::TDILUPreconditioner< Type, DType, LUType >

Simplified diagonal-based incomplete LU preconditioner for asymmetric matrices.

The inverse (reciprocal for scalar) of the preconditioned diagonal is calculated and stored.

Source files

Definition at line 53 of file TDILUPreconditioner.H.

Constructor & Destructor Documentation

◆ TDILUPreconditioner()

TDILUPreconditioner ( const typename LduMatrix< Type, DType, LUType >::solver sol,
const dictionary preconditionerDict 
)

Construct from matrix components and preconditioner data dictionary.

Definition at line 31 of file TDILUPreconditioner.C.

References TDILUPreconditioner< Type, DType, LUType >::calcInvD(), and LduMatrix< Type, DType, LUType >::solver::matrix().

Here is the call graph for this function:

◆ ~TDILUPreconditioner()

virtual ~TDILUPreconditioner ( )
inlinevirtual

Definition at line 81 of file TDILUPreconditioner.H.

Member Function Documentation

◆ TypeName()

TypeName ( "DILU"  )

Runtime type information.

◆ calcInvD()

void calcInvD ( Field< DType > &  rD,
const LduMatrix< Type, DType, LUType > &  matrix 
)
static

Calculate the reciprocal of the preconditioned diagonal.

Definition at line 47 of file TDILUPreconditioner.C.

References UList< T >::begin(), Foam::dot(), Foam::inv(), LduMatrix< Type, DType, LUType >::lduAddr(), LduMatrix< Type, DType, LUType >::lower(), lduAddressing::lowerAddr(), List< T >::size(), LduMatrix< Type, DType, LUType >::upper(), and lduAddressing::upperAddr().

Referenced by TDILUPreconditioner< Type, DType, LUType >::TDILUPreconditioner().

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

◆ precondition()

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

Return wA the preconditioned form of residual rA.

Implements LduMatrix< Type, DType, LUType >::preconditioner.

Definition at line 80 of file TDILUPreconditioner.C.

References UList< T >::begin(), Foam::dot(), and List< T >::size().

Here is the call graph for this function:

◆ preconditionT()

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

Return wT the transpose-matrix preconditioned form of.

residual rT.

Reimplemented from LduMatrix< Type, DType, LUType >::preconditioner.

Definition at line 130 of file TDILUPreconditioner.C.

References UList< T >::begin(), Foam::dot(), and List< T >::size().

Here is the call graph for this function:

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