34 lduMatrix::solver::addsymMatrixConstructorToTable<smoothSolver>
37 lduMatrix::solver::addasymMatrixConstructorToTable<smoothSolver>
46 const word& fieldName,
73 nSweeps_ = controlDict_.lookupOrDefault<
label>(
"nSweeps", 1);
112 scalar normFactor = 0;
119 matrix_.Amul(Apsi, psi, interfaceBouCoeffs_, interfaces_, cmpt);
122 normFactor = this->normFactor(psi, source, Apsi, temp);
128 matrix().
mesh().comm()
133 if (lduMatrix::debug >= 2)
136 <<
" Normalisation factor = " << normFactor <<
endl;
virtual solverPerformance solve(scalarField &psi, const scalarField &source, const direction cmpt=0) const
Solve the matrix with this solver.
scalar gSumMag(const FieldField< Field, Type > &f)
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...
void size(const label)
Override size to be inconsistent with allocated storage.
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual label comm() const =0
Return communicator used for parallel communication.
A class for handling words, derived from string.
Abstract base-class for lduMatrix solvers.
lduMatrix::solver::addsymMatrixConstructorToTable< smoothSolver > addsmoothSolverSymMatrixConstructorToTable_
lduMatrix::solver::addasymMatrixConstructorToTable< smoothSolver > addsmoothSolverAsymMatrixConstructorToTable_
defineTypeNameAndDebug(combustionModel, 0)
smoothSolver(const word &fieldName, const lduMatrix &matrix, const FieldField< Field, scalar > &interfaceBouCoeffs, const FieldField< Field, scalar > &interfaceIntCoeffs, const lduInterfaceFieldPtrsList &interfaces, const dictionary &solverControls)
Construct from matrix components and solver controls.
virtual void readControls()
Read the control parameters from the controlDict_.
OSstream & masterStream(const label communicator)
Convert to OSstream.
lduMatrix is a general matrix class in which the coefficients are stored as three arrays...
static autoPtr< smoother > New(const word &fieldName, const lduMatrix &matrix, const FieldField< Field, scalar > &interfaceBouCoeffs, const FieldField< Field, scalar > &interfaceIntCoeffs, const lduInterfaceFieldPtrsList &interfaces, const dictionary &solverControls)
Return a new smoother.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
const lduMesh & mesh() const
Return the LDU mesh from which the addressing is obtained.
virtual void readControls()
Read the control parameters from the controlDict_.