Go to the documentation of this file.
33 template<
class Type,
class DType,
class LUType>
36 const word& fieldName,
55 template<
class Type,
class DType,
class LUType>
59 this->controlDict_.readIfPresent(
"nSweeps", nSweeps_);
63 template<
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_
A class for handling words, derived from Foam::string.
static constexpr const zero Zero
Global zero (0)
SmoothSolver(const word &fieldName, const LduMatrix< Type, DType, LUType > &matrix, const dictionary &solverDict)
Construct from matrix components and solver data dictionary.
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,...
A class representing the concept of 1 (one) that can be used to avoid manipulating objects known to b...
Ostream & endl(Ostream &os)
Add newline and flush stream.
Abstract base-class for LduMatrix solvers.
Type gSumCmptMag(const UList< Type > &f, const label comm)
Generic templated field type.
messageStream Info
Information stream (stdout output on master, null elsewhere)
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
dimensioned< Type > cmptDivide(const dimensioned< Type > &, const dimensioned< Type > &)
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A traits class, which is primarily used for primitives.
const volScalarField & psi
virtual SolverPerformance< Type > solve(Field< Type > &psi) const
Solve the matrix with this solver.