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


Public Member Functions | |
| virtual const word & | type () 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 word & | fieldName () const |
| const LduMatrix< Type, DType, LUType > & | matrix () const |
| virtual void | read (const dictionary &solverDict) |
| Read and reset the solver parameters from the given dictionary. More... | |
| virtual SolverPerformance< Type > | solve (Field< Type > &psi) const =0 |
| 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... | |
Static Public Member Functions | |
| static autoPtr< solver > | New (const word &fieldName, const LduMatrix< Type, DType, LUType > &matrix, const dictionary &solverDict) |
| Return a new solver. More... | |
Protected Member Functions | |
| 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 | |
| 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 | |
| static const label | defaultMaxIter_ = 1000 |
| Default maximum number of iterations in the solver. More... | |
Abstract base-class for LduMatrix solvers.
Definition at line 112 of file LduMatrix.H.
| solver | ( | const word & | fieldName, |
| const LduMatrix< Type, DType, LUType > & | matrix, | ||
| const dictionary & | solverDict | ||
| ) |
Definition at line 122 of file LduMatrixSolver.C.
References LduMatrix< Type, DType, LUType >::solver::readControls().

|
inlinevirtual |
Definition at line 222 of file LduMatrix.H.
|
inlineprotected |
Read a control parameter from controlDict.
Definition at line 30 of file LduMatrixI.H.
References controlDict().

|
protectedvirtual |
Read the control parameters from the controlDict_.
Reimplemented in SmoothSolver< Type, DType, LUType >.
Definition at line 146 of file LduMatrixSolver.C.
Referenced by SmoothSolver< Type, DType, LUType >::readControls(), and LduMatrix< Type, DType, LUType >::solver::solver().

|
pure virtual |
Runtime type information.
| 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) | |||
| ) |
|
static |
Return a new solver.
Definition at line 33 of file LduMatrixSolver.C.
References Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, LduMatrix< Type, DType, LUType >::solver::fieldName(), dictionary::lookup(), and LduMatrix< Type, DType, LUType >::solver::matrix().

|
inline |
Definition at line 230 of file LduMatrix.H.
References LduMatrix< Type, DType, LUType >::solver::fieldName_.
Referenced by LduMatrix< Type, DType, LUType >::solver::New().

|
inline |
Definition at line 235 of file LduMatrix.H.
References LduMatrix< Type, DType, LUType >::solver::matrix_.
Referenced by DiagonalPreconditioner< Type, DType, LUType >::DiagonalPreconditioner(), LduMatrix< Type, DType, LUType >::preconditioner::New(), LduMatrix< Type, DType, LUType >::solver::New(), and TDILUPreconditioner< Type, DType, LUType >::TDILUPreconditioner().

|
virtual |
Read and reset the solver parameters from the given dictionary.
Reimplemented in DiagonalSolver< Type, DType, LUType >.
Definition at line 156 of file LduMatrixSolver.C.
|
pure virtual |
| 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.
stopping criterion
Definition at line 167 of file LduMatrixSolver.C.
References Foam::cmptMag(), Foam::cmptMultiply(), Foam::gAverage(), Foam::gSum(), psi, and Foam::stabilise().

|
protected |
Definition at line 118 of file LduMatrix.H.
Referenced by LduMatrix< Type, DType, LUType >::solver::fieldName().
|
protected |
Definition at line 119 of file LduMatrix.H.
Referenced by LduMatrix< Type, DType, LUType >::solver::matrix().
|
protected |
Dictionary of controls.
Definition at line 122 of file LduMatrix.H.
|
staticprotected |
Default maximum number of iterations in the solver.
Definition at line 125 of file LduMatrix.H.
|
protected |
Maximum number of iterations in the solver.
Definition at line 128 of file LduMatrix.H.
|
protected |
Minimum number of iterations in the solver.
Definition at line 131 of file LduMatrix.H.
|
protected |
Final convergence tolerance.
Definition at line 134 of file LduMatrix.H.
|
protected |
Convergence tolerance relative to the initial.
Definition at line 137 of file LduMatrix.H.