48 relaxationFactors_(
"relaxationFactors"),
49 solverTolerances_(
"solverTolerances"),
50 solverRelativeTolerances_(
"solverRelativeTolerances")
65 if (toleranceSet.
found(
"relaxationFactors"))
67 relaxationFactors_ = toleranceSet.
subDict(
"relaxationFactors");
70 if (toleranceSet.
found(
"solverTolerances"))
72 solverTolerances_ = toleranceSet.
subDict(
"solverTolerances");
75 if (toleranceSet.
found(
"solverRelativeTolerances"))
77 solverRelativeTolerances_ =
78 toleranceSet.
subDict(
"solverRelativeTolerances");
90 return relaxationFactors_.found(
name);
96 return relaxationFactors_.get<scalar>(
name);
102 return solverTolerances_.get<scalar>(
name);
108 return solverRelativeTolerances_.size();
114 return solverRelativeTolerances_.get<scalar>(
name);
IOdictionary(const IOobject &io, const dictionary *fallback=nullptr)
Construct given an IOobject and optional fallback dictionary content.
@ NO_WRITE
Ignore writing from objectRegistry::writeObject().
Defines the attributes of an object for which implicit objectRegistry management is supported,...
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
const word & name() const
Name function is needed to disambiguate those inherited from regIOobject and dictionary.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a T. FatalIOError if not found, or if the number of tokens is incorrect.
const dictionary & subDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a sub-dictionary.
bool found(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find an entry (const access) with the given keyword.
word dictName() const
The local dictionary name (final part of scoped name).
A class for handling file names.
virtual bool read()
Read object.
scalar solverTolerance(const word &name) const
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 Foam::string.
int system(const std::string &command, const bool bg=false)
Execute the specified command via the shell.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.