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