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;
179 matrix().
mesh().comm()
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
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.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
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_