30 template<
class Type,
class DType,
class LUType>
33 const word& fieldName,
52 template<
class Type,
class DType,
class LUType>
56 this->readControl(this->controlDict_, nSweeps_,
"nSweeps");
60 template<
class Type,
class DType,
class LUType>
84 smootherPtr->smooth(psi, -nSweeps_);
90 Type normFactor =
Zero;
97 this->matrix_.Amul(Apsi, psi);
100 normFactor = this->normFactor(psi, Apsi, temp);
113 Info<<
" Normalisation factor = " << normFactor <<
endl;
150 (nIter += nSweeps_) < this->maxIter_
153 || nIter < this->minIter_
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A list of keyword definitions, which are a keyword followed by any number of values (e...
virtual SolverPerformance< Type > solve(Field< Type > &psi) const
Solve the matrix with this solver.
void size(const label)
Override size to be inconsistent with allocated storage.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Traits class for primitives.
Type gSumCmptMag(const UList< Type > &f, const label comm)
dimensioned< Type > cmptDivide(const dimensioned< Type > &, const dimensioned< Type > &)
Pre-declare SubField and related Field type.
autoPtr< BasicCompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const typename BasicCompressibleMomentumTransportModel::transportModel &transport)
A class for handling words, derived from string.
virtual void readControls()
Read the control parameters from the controlDict_.
SmoothSolver(const word &fieldName, const LduMatrix< Type, DType, LUType > &matrix, const dictionary &solverDict)
Construct from matrix components and solver data dictionary.
Abstract base-class for LduMatrix solvers.
LduMatrix is a general matrix class in which the coefficients are stored as three arrays...
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
const volScalarField & psi
A class representing the concept of 1 (scalar(1)) used to avoid unnecessary manipulations for objects...