All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
DiagonalSolver< Type, DType, LUType > Class Template Reference

Foam::DiagonalSolver. More...

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

Public Member Functions

 TypeName ("diagonal")
 Runtime type information. More...
 
 DiagonalSolver (const word &fieldName, const LduMatrix< Type, DType, LUType > &matrix, const dictionary &solverDict)
 Construct from matrix. More...
 
 DiagonalSolver (const DiagonalSolver &)=delete
 Disallow default bitwise copy construction. More...
 
void read (const dictionary &solverDict)
 Read and reset the solver parameters from the given dictionary. More...
 
virtual SolverPerformance< Type > solve (Field< Type > &psi) const
 Solve the matrix with this solver. More...
 
void operator= (const DiagonalSolver &)=delete
 Disallow default bitwise assignment. More...
 
- Public Member Functions inherited from LduMatrix< Type, DType, LUType >::solver
virtual const wordtype () const =0
 Runtime type information. More...
 
 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 ()
 
const wordfieldName () const
 
const LduMatrix< Type, DType, LUType > & matrix () const
 
Type normFactor (const Field< Type > &psi, const Field< Type > &Apsi, Field< Type > &tmpField) const
 Return the matrix norm used to normalise the residual for the. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from LduMatrix< Type, DType, LUType >::solver
static autoPtr< solverNew (const word &fieldName, const LduMatrix< Type, DType, LUType > &matrix, const dictionary &solverDict)
 Return a new solver. More...
 
- Protected Member Functions inherited from LduMatrix< Type, DType, LUType >::solver
template<class T >
void readControl (const dictionary &controlDict, T &control, const word &controlName)
 Read a control parameter from controlDict. More...
 
virtual void readControls ()
 Read the control parameters from the controlDict_. More...
 
- Protected Attributes inherited from LduMatrix< Type, DType, LUType >::solver
word fieldName_
 
const LduMatrix< Type, DType, LUType > & matrix_
 
dictionary controlDict_
 Dictionary of controls. More...
 
label maxIter_
 Maximum number of iterations in the solver. More...
 
label minIter_
 Minimum number of iterations in the solver. More...
 
Type tolerance_
 Final convergence tolerance. More...
 
Type relTol_
 Convergence tolerance relative to the initial. More...
 
- Static Protected Attributes inherited from LduMatrix< Type, DType, LUType >::solver
static const label defaultMaxIter_ = 1000
 Default maximum number of iterations in the solver. More...
 

Detailed Description

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

Foam::DiagonalSolver.

Source files

Definition at line 49 of file DiagonalSolver.H.

Constructor & Destructor Documentation

◆ DiagonalSolver() [1/2]

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

Construct from matrix.

Definition at line 32 of file DiagonalSolver.C.

References DiagonalSolver< Type, DType, LUType >::read().

Here is the call graph for this function:

◆ DiagonalSolver() [2/2]

DiagonalSolver ( const DiagonalSolver< Type, DType, LUType > &  )
delete

Disallow default bitwise copy construction.

Member Function Documentation

◆ TypeName()

TypeName ( "diagonal"  )

Runtime type information.

◆ read()

void read ( const dictionary solverDict)
virtual

Read and reset the solver parameters from the given dictionary.

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

Definition at line 51 of file DiagonalSolver.C.

References DiagonalSolver< Type, DType, LUType >::solve().

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

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

◆ solve()

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

Solve the matrix with this solver.

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

Definition at line 60 of file DiagonalSolver.C.

References Foam::Zero.

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

Here is the caller graph for this function:

◆ operator=()

void operator= ( const DiagonalSolver< Type, DType, LUType > &  )
delete

Disallow default bitwise assignment.


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