33template<
class Type,
class DType,
class LUType>
36 const word& fieldName,
52template<
class Type,
class DType,
class LUType>
56 const word preconditionerName(this->controlDict_.getWord(
"preconditioner"));
61 preconditionerName + typeName,
69 Type* __restrict__ psiPtr =
psi.
begin();
72 Type* __restrict__ pAPtr = pA.
begin();
75 Type* __restrict__ wAPtr = wA.
begin();
81 this->matrix_.Amul(wA,
psi);
85 Type* __restrict__ rAPtr = rA.
begin();
88 Type normFactor = this->normFactor(
psi, wA, pA);
92 Info<<
" Normalisation factor = " << normFactor <<
endl;
126 preconPtr->precondition(wA, rA);
154 this->matrix_.Amul(wA, pA);
192 nIter++ < this->maxIter_
200 || nIter < this->minIter_
Generic templated field type.
LduMatrix is a general matrix class in which the coefficients are stored as three arrays,...
Preconditioned conjugate gradient solver for symmetric lduMatrices using a run-time selectable precon...
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
iterator begin() noexcept
Return an iterator to begin traversing the UList.
void size(const label n)
Older name for setAddressableSize.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A cell is defined as a list of faces with extra functionality.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A class representing the concept of 1 (one) that can be used to avoid manipulating objects known to b...
A traits class, which is primarily used for primitives.
Base class for solution control classes.
A class for handling words, derived from Foam::string.
const volScalarField & psi
dimensioned< Type > cmptDivide(const dimensioned< Type > &, const dimensioned< Type > &)
messageStream Info
Information stream (stdout output on master, null elsewhere)
Ostream & endl(Ostream &os)
Add newline and flush stream.
dimensionedScalar stabilise(const dimensionedScalar &x, const dimensionedScalar &y)
dimensioned< Type > cmptMultiply(const dimensioned< Type > &, const dimensioned< Type > &)
void cmptMag(FieldField< Field, Type > &cf, const FieldField< Field, Type > &f)
Type gSumCmptMag(const UList< Type > &f, const label comm)
Type gSumCmptProd(const UList< Type > &f1, const UList< Type > &f2, const label comm)
dimensionedScalar beta("beta", dimless/dimTemperature, laminarTransport)