38 lduMatrix::solver::addsymMatrixConstructorToTable<PCG>
47 const word& fieldName,
85 solveScalar* __restrict__ psiPtr =
psi.
begin();
88 solveScalar* __restrict__ pAPtr = pA.
begin();
91 solveScalar* __restrict__ wAPtr = wA.
begin();
93 solveScalar wArA = solverPerf.
great_;
94 solveScalar wArAold = wArA;
97 matrix_.Amul(wA,
psi, interfaceBouCoeffs_, interfaces_, cmpt);
101 solveScalar* __restrict__ rAPtr = rA.
begin();
103 matrix().setResidualField
111 solveScalar normFactor = this->normFactor(
psi, source, wA, pA);
113 if ((log_ >= 2) || (lduMatrix::debug >= 2))
115 Info<<
" Normalisation factor = " << normFactor <<
endl;
146 preconPtr->precondition(wA, rA, cmpt);
160 solveScalar
beta = wArA/wArAold;
170 matrix_.Amul(wA, pA, interfaceBouCoeffs_, interfaces_, cmpt);
172 solveScalar wApA =
gSumProd(wA, pA, matrix().
mesh().comm());
180 solveScalar
alpha = wArA/wApA;
202 matrix().setResidualField
A const Field/List wrapper with possible data conversion.
A field of fields is a PtrList of fields with reference counting.
const word & getName() const
Get name.
Preconditioned conjugate gradient solver for symmetric lduMatrices using a run-time selectable precon...
virtual solverPerformance scalarSolve(solveScalarField &psi, const solveScalarField &source, const direction cmpt=0) const
Solve the matrix with this solver.
A non-const Field/List wrapper with possible data conversion.
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,...
lduMatrix is a general matrix class in which the coefficients are stored as three arrays,...
Base class for solution control classes.
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
const volScalarField & psi
scalarProduct< Type, Type >::type gSumProd(const UList< Type > &f1, const UList< Type > &f2, const label comm)
messageStream Info
Information stream (stdout output on master, null elsewhere)
Ostream & endl(Ostream &os)
Add newline and flush stream.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
typeOfMag< Type >::type gSumMag(const FieldField< Field, Type > &f)
lduMatrix::solver::addsymMatrixConstructorToTable< PCG > addPCGSymMatrixConstructorToTable_
dimensionedScalar beta("beta", dimless/dimTemperature, laminarTransport)