Go to the documentation of this file.
34 lduMatrix::solver::addsymMatrixConstructorToTable<smoothSolver>
37 lduMatrix::solver::addasymMatrixConstructorToTable<smoothSolver>
46 const word& fieldName,
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()
lduMatrix::solver::addasymMatrixConstructorToTable< smoothSolver > addsmoothSolverAsymMatrixConstructorToTable_
A class for handling words, derived from string.
OSstream & masterStream(const label communicator)
Convert to OSstream.
lduMatrix is a general matrix class in which the coefficients are stored as three arrays,...
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
Abstract base-class for lduMatrix solvers.
Ostream & endl(Ostream &os)
Add newline and flush stream.
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.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
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.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
A list of keyword definitions, which are a keyword followed by any number of values (e....
virtual void readControls()
Read the control parameters from the controlDict_.
label nSweeps_
Number of sweeps before the evaluation of residual.
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.
scalar gSumMag(const FieldField< Field, Type > &f)
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
dictionary controlDict_
Dictionary of controls.
const volScalarField & psi
lduMatrix::solver::addsymMatrixConstructorToTable< smoothSolver > addsmoothSolverSymMatrixConstructorToTable_
defineTypeNameAndDebug(combustionModel, 0)