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)
135 Info(matrix().mesh().comm())
136 <<
" Normalisation factor = " << normFactor <<
endl;
179 matrix().mesh().comm()
void size(const label)
Override size to be inconsistent with allocated storage.
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....
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.
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....
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_.
virtual solverPerformance solve(scalarField &psi, const scalarField &source, const direction cmpt=0) const
Solve the matrix with this solver.
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.
scalar gSumMag(const FieldField< Field, Type > &f)
Ostream & endl(Ostream &os)
Add newline and flush stream.
lduMatrix::solver::addsymMatrixConstructorToTable< smoothSolver > addsmoothSolverSymMatrixConstructorToTable_
defineTypeNameAndDebug(combustionModel, 0)
lduMatrix::solver::addasymMatrixConstructorToTable< smoothSolver > addsmoothSolverAsymMatrixConstructorToTable_