45 solverRelativeTolerances_
60 const word toleranceSetName(lookup(
"toleranceSet"));
61 const dictionary& toleranceSet(subDict(toleranceSetName));
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);
96 return relaxationFactors_.lookup<scalar>(
name);
102 return solverTolerances_.lookup<scalar>(
name);
108 return solverRelativeTolerances_.size();
114 return solverRelativeTolerances_.lookup<scalar>(
name);
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
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.
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.
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
A class for handling file names.
virtual bool read()
Read object.
scalar solverTolerance(const word &name) const
tolerances(const Time &t, const fileName &dictName)
Construct from time.
bool solverRelativeTolerances() const
bool relax(const word &name) const
scalar relaxationFactor(const word &name) const
scalar solverRelativeTolerance(const word &name) const
bool read()
Read the tolerances.
A class for handling words, derived from string.
int system(const std::string &command)
Execute the specified command.
word name(const complex &)
Return a string representation of a complex.