39 lduMatrix::solver::addsymMatrixConstructorToTable<smoothSolver>
42 lduMatrix::solver::addasymMatrixConstructorToTable<smoothSolver>
51 const word& fieldName,
78 nSweeps_ = controlDict_.getOrDefault<label>(
"nSweeps", 1);
122 solveScalar normFactor = 0;
132 matrix_.Amul(Apsi,
psi, interfaceBouCoeffs_, interfaces_, cmpt);
135 normFactor = this->normFactor(
psi, tsource(), Apsi, temp);
137 residual = tsource() - Apsi;
139 matrix().setResidualField
148 gSumMag(residual, matrix().
mesh().comm())/normFactor;
152 if ((log_ >= 2) || (lduMatrix::debug >= 2))
155 <<
" Normalisation factor = " << normFactor <<
endl;
201 gSumMag(residual, matrix().
mesh().comm())/normFactor;
212 matrix().setResidualField
A const Field/List wrapper with possible data conversion.
A field of fields is a PtrList of fields with reference counting.
A non-const Field/List wrapper with possible data conversion.
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
void size(const label n)
Older name for setAddressableSize.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
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,...
OSstream & masterStream(const label communicator)
Iterative solver for symmetric and asymmetric matrices which uses a run-time selected smoother e....
virtual void readControls()
Read the control parameters from the controlDict_.
Base class for solution control classes.
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
const volScalarField & psi
messageStream Info
Information stream (stdout output on master, null elsewhere)
Ostream & endl(Ostream &os)
Add newline and flush stream.
lduMatrix::solver::addsymMatrixConstructorToTable< smoothSolver > addsmoothSolverSymMatrixConstructorToTable_
typeOfMag< Type >::type gSumMag(const FieldField< Field, Type > &f)
lduMatrix::solver::addasymMatrixConstructorToTable< smoothSolver > addsmoothSolverAsymMatrixConstructorToTable_
#define addProfiling(name, descr)
Define profiling trigger with specified name and description string.