Public Member Functions | |
virtual const word & | type () 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 word & | fieldName () const noexcept |
const LduMatrix< Type, DType, LUType > & | matrix () const noexcept |
virtual void | read (const dictionary &solverDict) |
virtual SolverPerformance< Type > | solve (Field< Type > &psi) const =0 |
Type | normFactor (const Field< Type > &psi, const Field< Type > &Apsi, Field< Type > &tmpField) const |
Static Public Member Functions | |
static autoPtr< solver > | New (const word &fieldName, const LduMatrix< Type, DType, LUType > &matrix, const dictionary &solverDict) |
Protected Member Functions | |
virtual void | readControls () |
template<class T > | |
void | readControl (const dictionary &dict, T &val, const word &key) |
Protected Attributes | |
word | fieldName_ |
const LduMatrix< Type, DType, LUType > & | matrix_ |
dictionary | controlDict_ |
int | log_ |
label | minIter_ |
label | maxIter_ |
Type | tolerance_ |
Type | relTol_ |
Static Protected Attributes | |
static const label | defaultMaxIter_ = 1000 |
Definition at line 111 of file LduMatrix.H.
solver | ( | const word & | fieldName, |
const LduMatrix< Type, DType, LUType > & | matrix, | ||
const dictionary & | solverDict | ||
) |
Definition at line 114 of file LduMatrixSolver.C.
|
virtualdefault |
|
protectedvirtual |
Reimplemented in SmoothSolver< Type, DType, LUType >.
Definition at line 138 of file LduMatrixSolver.C.
References LduMatrix::solver::controlDict_, LduMatrix::solver::log_, LduMatrix::solver::maxIter_, LduMatrix::solver::minIter_, dictionary::readIfPresent(), LduMatrix::solver::relTol_, and LduMatrix::solver::tolerance_.
|
inlineprotected |
Definition at line 153 of file LduMatrix.H.
References dict, and Foam::glTF::key().
|
pure virtual |
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 |
Definition at line 30 of file LduMatrixSolver.C.
References LduMatrix::asymmetric(), LduMatrix::diagonal(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, FatalIOErrorInLookup, dictionary::get(), and LduMatrix::symmetric().
|
inlinenoexcept |
Definition at line 230 of file LduMatrix.H.
References LduMatrix::solver::fieldName_.
|
inlinenoexcept |
Definition at line 235 of file LduMatrix.H.
References LduMatrix::solver::matrix_.
Referenced by LduMatrix::preconditioner::New().
|
virtual |
Reimplemented in DiagonalSolver< Type, DType, LUType >.
Definition at line 150 of file LduMatrixSolver.C.
|
pure virtual |
Type normFactor | ( | const Field< Type > & | psi, |
const Field< Type > & | Apsi, | ||
Field< Type > & | tmpField | ||
) | const |
Definition at line 161 of file LduMatrixSolver.C.
References Foam::cmptMag(), Foam::cmptMultiply(), Foam::gAverage(), Foam::gSum(), psi, and Foam::stabilise().
|
staticprotected |
Definition at line 118 of file LduMatrix.H.
|
protected |
Definition at line 120 of file LduMatrix.H.
Referenced by LduMatrix::solver::fieldName().
|
protected |
Definition at line 121 of file LduMatrix.H.
Referenced by LduMatrix::solver::matrix().
|
protected |
Definition at line 124 of file LduMatrix.H.
Referenced by LduMatrix::solver::readControls().
|
protected |
Definition at line 127 of file LduMatrix.H.
Referenced by LduMatrix::solver::readControls().
|
protected |
Definition at line 130 of file LduMatrix.H.
Referenced by LduMatrix::solver::readControls().
|
protected |
Definition at line 133 of file LduMatrix.H.
Referenced by LduMatrix::solver::readControls().
|
protected |
Definition at line 136 of file LduMatrix.H.
Referenced by LduMatrix::solver::readControls().
|
protected |
Definition at line 139 of file LduMatrix.H.
Referenced by LduMatrix::solver::readControls().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.