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_
Pre-declare SubField and related Field type.
static autoPtr< smoother > New(const word &fieldName, const LduMatrix< Type, DType, LUType > &matrix, const dictionary &smootherDict)
Return a new smoother.
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,...
void size(const label)
Override size to be inconsistent with allocated storage.
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_.
virtual SolverPerformance< Type > solve(Field< Type > &psi) const
Solve the matrix with this solver.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A list of keyword definitions, which are a keyword followed by any number of values (e....
A class representing the concept of 1 (scalar(1)) used to avoid unnecessary manipulations for objects...
Traits class for primitives.
Abstract base class for run-time selectable region solvers.
A class for handling words, derived from string.
const volScalarField & psi
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & endl(Ostream &os)
Add newline and flush stream.
dimensioned< Type > cmptDivide(const dimensioned< Type > &, const dimensioned< Type > &)
Type gSumCmptMag(const UList< Type > &f, const label comm)