Preconditioned bi-conjugate gradient solver for asymmetric lduMatrices using a run-time selectable preconditiioner. More...
Public Member Functions | |
TypeName ("PBiCCCG") | |
Runtime type information. More... | |
PBiCCCG (const word &fieldName, const LduMatrix< Type, DType, LUType > &matrix, const dictionary &solverDict) | |
Construct from matrix components and solver data dictionary. More... | |
virtual | ~PBiCCCG () |
virtual SolverPerformance< Type > | solve (Field< Type > &psi) const |
Solve the matrix with this solver. More... | |
![]() | |
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... | |
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... | |
Private Member Functions | |
PBiCCCG (const PBiCCCG &) | |
Disallow default bitwise copy construct. More... | |
void | operator= (const PBiCCCG &) |
Disallow default bitwise assignment. More... | |
Additional Inherited Members | |
![]() | |
static autoPtr< solver > | New (const word &fieldName, const LduMatrix< Type, DType, LUType > &matrix, const dictionary &solverDict) |
Return a new solver. More... | |
![]() | |
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... | |
![]() | |
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... | |
Preconditioned bi-conjugate gradient solver for asymmetric lduMatrices using a run-time selectable preconditiioner.
PBiCCCG | ( | const word & | fieldName, |
const LduMatrix< Type, DType, LUType > & | matrix, | ||
const dictionary & | solverDict | ||
) |
|
private |
Disallow default bitwise assignment.
TypeName | ( | "PBiCCCG< Type, DType, LUType >" | ) |
Runtime type information.
|
virtual |
Solve the matrix with this solver.
Implements LduMatrix::solver.
Definition at line 52 of file PBiCCCG.C.
References Foam::constant::atomic::alpha, beta(), SolverPerformance::checkConvergence(), SolverPerformance::checkSingularity(), Foam::cmptDivide(), Foam::endl(), SolverPerformance::finalResidual(), Foam::gSumCmptMag(), Foam::gSumProd(), Foam::Info, SolverPerformance::initialResidual(), Foam::mag(), Foam::compressible::New(), SolverPerformance::nIterations(), and psi.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.