33template<
class Type,
class DType,
class LUType>
36 const word& fieldName,
55template<
class Type,
class DType,
class LUType>
59 this->controlDict_.readIfPresent(
"nSweeps", nSweeps_);
63template<
class Type,
class DType,
class LUType>
87 smootherPtr->smooth(
psi, -nSweeps_);
93 Type normFactor =
Zero;
100 this->matrix_.Amul(Apsi,
psi);
103 normFactor = this->normFactor(
psi, Apsi, temp);
116 Info<<
" Normalisation factor = " << normFactor <<
endl;
158 (nIter += nSweeps_) < this->maxIter_
166 || nIter < this->minIter_
Generic templated field type.
virtual void readControls()
Read the control parameters from the controlDict_.
LduMatrix is a general matrix class in which the coefficients are stored as three arrays,...
Iterative solver for symmetric and asymmetric matrices which uses a run-time selected smoother e....
virtual void readControls()
Read the control parameters from the controlDict_.
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
void size(const label n)
Older name for setAddressableSize.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
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.
static constexpr const zero Zero
Global zero (0)
Type gSumCmptMag(const UList< Type > &f, const label comm)