45 solverRelativeTolerances_
60 const word toleranceSetName(
lookup(
"toleranceSet"));
63 if (toleranceSet.
found(
"relaxationFactors"))
65 relaxationFactors_ = toleranceSet.
subDict(
"relaxationFactors");
68 if (toleranceSet.
found(
"solverTolerances"))
70 solverTolerances_ = toleranceSet.
subDict(
"solverTolerances");
73 if (toleranceSet.
found(
"solverRelativeTolerances"))
75 solverRelativeTolerances_ =
76 toleranceSet.
subDict(
"solverRelativeTolerances");
90 return relaxationFactors_.
found(name);
108 return solverRelativeTolerances_.
size();
bool relax(const word &name) const
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
scalar solverRelativeTolerance(const word &name) const
A class for handling words, derived from string.
scalar solverTolerance(const word &name) const
A list of keyword definitions, which are a keyword followed by any number of values (e...
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
label size() const
Return number of elements in list.
const word & name() const
Name function is needed to disambiguate those inherited.
const word dictName("particleTrackDict")
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
bool readScalar(const char *buf, doubleScalar &s)
Read whole of buf as a scalar. Return true if succesful.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
virtual bool read()
Read object.
bool read()
Read the tolerances.
int system(const std::string &command)
Execute the specified command.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
A class for handling file names.
scalar relaxationFactor(const word &name) const
bool solverRelativeTolerances() const