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);
96 return relaxationFactors_.
lookup<scalar>(
name);
102 return solverTolerances_.
lookup<scalar>(
name);
108 return solverRelativeTolerances_.size();
114 return solverRelativeTolerances_.
lookup<scalar>(
name);
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.
A list of keyword definitions, which are a keyword followed by any number of values (e...
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
bool relax(const word &name) const
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
tolerances(const Time &t, const fileName &dictName)
Construct from time.
scalar solverTolerance(const word &name) const
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
scalar relaxationFactor(const word &name) const
const fileName & name() const
Return the dictionary name.
A class for handling words, derived from string.
bool solverRelativeTolerances() const
scalar solverRelativeTolerance(const word &name) const
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
const word dictName("noiseDict")
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.