48 relaxationFactors_(
"relaxationFactors"),
49 solverTolerances_(
"solverTolerances"),
50 solverRelativeTolerances_(
"solverRelativeTolerances")
62 const word toleranceSetName(get<word>(
"toleranceSet"));
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);
A class for handling file names.
virtual bool read()
Read object.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
const word dictName("faMeshDefinition")
bool relax(const word &name) const
const dictionary & subDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a sub-dictionary.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
scalar solverTolerance(const word &name) const
bool found(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find an entry (const access) with the given keyword.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
scalar relaxationFactor(const word &name) const
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
A class for handling words, derived from Foam::string.
bool solverRelativeTolerances() const
scalar solverRelativeTolerance(const word &name) const
int system(const std::string &command, const bool bg=false)
Execute the specified command via the shell.
Defines the attributes of an object for which implicit objectRegistry management is supported...
bool read()
Read the tolerances.