Public Member Functions | List of all members
DiagonalSolver< Type, DType, LUType > Class Template Reference

Foam::DiagonalSolver. More...

Inheritance diagram for DiagonalSolver< Type, DType, LUType >:
Inheritance graph
[legend]
Collaboration diagram for DiagonalSolver< Type, DType, LUType >:
Collaboration graph
[legend]

Public Member Functions

 TypeName ("diagonal")
 
 DiagonalSolver (const word &fieldName, const LduMatrix< Type, DType, LUType > &matrix, const dictionary &solverDict)
 
void read (const dictionary &solverDict)
 
virtual SolverPerformance< Type > solve (Field< Type > &psi) const
 
- Public Member Functions inherited from LduMatrix::solver
virtual const wordtype () const =0
 
 declareRunTimeSelectionTable (autoPtr, solver, symMatrix,(const word &fieldName, const LduMatrix< Type, DType, LUType > &matrix, const dictionary &solverDict),(fieldName, matrix, solverDict))
 
 declareRunTimeSelectionTable (autoPtr, solver, asymMatrix,(const word &fieldName, const LduMatrix< Type, DType, LUType > &matrix, const dictionary &solverDict),(fieldName, matrix, solverDict))
 
 solver (const word &fieldName, const LduMatrix< Type, DType, LUType > &matrix, const dictionary &solverDict)
 
virtual ~solver ()=default
 
const wordfieldName () const noexcept
 
const LduMatrix< Type, DType, LUType > & matrix () const noexcept
 
Type normFactor (const Field< Type > &psi, const Field< Type > &Apsi, Field< Type > &tmpField) const
 

Additional Inherited Members

- Static Public Member Functions inherited from LduMatrix::solver
static autoPtr< solverNew (const word &fieldName, const LduMatrix< Type, DType, LUType > &matrix, const dictionary &solverDict)
 
- Protected Member Functions inherited from LduMatrix::solver
virtual void readControls ()
 
template<class T >
void readControl (const dictionary &dict, T &val, const word &key)
 
- Protected Attributes inherited from LduMatrix::solver
word fieldName_
 
const LduMatrix< Type, DType, LUType > & matrix_
 
dictionary controlDict_
 
int log_
 
label minIter_
 
label maxIter_
 
Type tolerance_
 
Type relTol_
 
- Static Protected Attributes inherited from LduMatrix::solver
static const label defaultMaxIter_ = 1000
 

Detailed Description

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

Foam::DiagonalSolver.

Source files

Definition at line 47 of file DiagonalSolver.H.

Constructor & Destructor Documentation

◆ DiagonalSolver()

DiagonalSolver ( const word fieldName,
const LduMatrix< Type, DType, LUType > &  matrix,
const dictionary solverDict 
)

Definition at line 27 of file DiagonalSolver.C.

Member Function Documentation

◆ TypeName()

TypeName ( "diagonal"  )

◆ read()

void read ( const dictionary solverDict)
virtual

Reimplemented from LduMatrix::solver.

Definition at line 46 of file DiagonalSolver.C.

◆ solve()

Foam::SolverPerformance< Type > solve ( Field< Type > &  psi) const
virtual

Implements LduMatrix::solver.

Definition at line 55 of file DiagonalSolver.C.

References psi, and Foam::Zero.


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