Preconditioned conjugate gradient solver for symmetric lduMatrices using a run-time selectable preconditioner. More...
Public Member Functions | |
TypeName ("PCICG") | |
Runtime type information. More... | |
PCICG (const word &fieldName, const LduMatrix< Type, DType, LUType > &matrix, const dictionary &solverDict) | |
Construct from matrix components and solver data dictionary. More... | |
PCICG (const PCICG &)=delete | |
Disallow default bitwise copy construction. More... | |
virtual | ~PCICG () |
virtual SolverPerformance< Type > | solve (Field< Type > &psi) const |
Solve the matrix with this solver. More... | |
void | operator= (const PCICG &)=delete |
Disallow default bitwise assignment. More... | |
Public Member Functions inherited from LduMatrix< Type, DType, LUType >::solver | |
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... | |
Additional Inherited Members | |
Static Public Member Functions inherited from LduMatrix< Type, DType, LUType >::solver | |
static autoPtr< solver > | New (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... | |
Preconditioned conjugate gradient solver for symmetric lduMatrices using a run-time selectable preconditioner.
PCICG | ( | const word & | fieldName, |
const LduMatrix< Type, DType, LUType > & | matrix, | ||
const dictionary & | solverDict | ||
) |
|
inlinevirtual |
Definition at line 77 of file PCICG.H.
References PCICG< Type, DType, LUType >::operator=(), psi, and PCICG< Type, DType, LUType >::solve().
TypeName | ( | "PCICG< Type, DType, LUType >" | ) |
Runtime type information.
|
virtual |
Solve the matrix with this solver.
Implements LduMatrix< Type, DType, LUType >::solver.
Definition at line 51 of file PCICG.C.
References alpha(), UList< Type >::begin(), UList< T >::begin(), Foam::cmptDivide(), Foam::cmptMag(), Foam::cmptMultiply(), Foam::endl(), Foam::gSumCmptMag(), Foam::gSumCmptProd(), Foam::Info, Foam::compressible::New(), List< Type >::size(), and Foam::stabilise().
Referenced by PCICG< Type, DType, LUType >::~PCICG().
|
delete |
Disallow default bitwise assignment.
Referenced by PCICG< Type, DType, LUType >::~PCICG().