Go to the documentation of this file.
93 lowerPtr_ =
A.lowerPtr_;
94 A.lowerPtr_ =
nullptr;
99 diagPtr_ =
A.diagPtr_;
100 A.diagPtr_ =
nullptr;
105 upperPtr_ =
A.upperPtr_;
106 A.upperPtr_ =
nullptr;
270 if (!lowerPtr_ && !upperPtr_)
273 <<
"lowerPtr_ or upperPtr_ unallocated"
293 <<
"diagPtr_ unallocated"
303 if (!lowerPtr_ && !upperPtr_)
306 <<
"lowerPtr_ or upperPtr_ unallocated"
324 const word& fieldName,
328 if (!lduMesh_.hasDb())
336 lookupName =
word(
"initialResidual:" + fieldName);
340 lookupName =
word(
"residual:" + fieldName);
353 if (initial && dataPtr->
found(
"firstIteration"))
355 *residualPtr = residual;
357 <<
"Setting residual field for first solver iteration "
358 <<
"for solver field: " << fieldName <<
endl;
363 *residualPtr = residual;
365 <<
"Setting residual field for solver field "
366 << fieldName <<
endl;
412 os <<
"Lower:" << hasLow
413 <<
" Diag:" << hasDiag
414 <<
" Upper:" << hasUp <<
endl;
418 os <<
"lower:" << ldum.
lower().size() <<
endl;
422 os <<
"diag :" << ldum.
diag().size() <<
endl;
426 os <<
"upper:" << ldum.
upper().size() <<
endl;
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
A class for handling words, derived from Foam::string.
A helper class for outputting values to Ostream.
A primitive field of type <T> with automated input and output.
static constexpr const zero Zero
Global zero (0)
bool found(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Search for an entry (const access) with the given keyword.
lduMatrix is a general matrix class in which the coefficients are stored as three arrays,...
static const Foam::dimensionedScalar A("", Foam::dimPressure, 611.21)
Ostream & endl(Ostream &os)
Add newline and flush stream.
lduMatrix(const lduMesh &)
Construct given an LDU addressed mesh.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
void setResidualField(const scalarField &residual, const word &fieldName, const bool initial) const
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
virtual bool check(const char *operation) const
Check IOstream status for given operation.
errorManip< error > abort(error &err)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
#define DebugInfo
Report an information message using Foam::Info.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
static const label defaultMaxIter_
Default maximum number of iterations in the solver.
defineTypeNameAndDebug(combustionModel, 0)
Abstract base class for meshes which provide LDU addressing for the construction of lduMatrix and LDU...