Go to the documentation of this file.
47 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
int system(const std::string &command, const bool bg=false)
Execute the specified command via the shell.
virtual bool read()
Read object.
const word dictName("blockMeshDict")
An input stream of tokens.
word name(const complex &c)
Return string representation of complex.
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
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
scalar solverTolerance(const word &name) const