41bool Foam::meshState::getBoolEntry
48 return dict.readIfPresent(keyword, value) && value;
52void Foam::meshState::setBoolEntry
72Foam::meshState::meshState
75 const objectRegistry& obr,
158 return setBoolEntry(
controlsDict(),
"firstIteration", on);
164 return setBoolEntry(controlsDict(),
"finalIteration", on);
IOdictionary(const IOobject &io, const dictionary *fallback=nullptr)
Construct given an IOobject and optional fallback dictionary content.
@ REGISTER
Request registration (bool: true).
@ NO_READ
Nothing to be read.
@ NO_WRITE
Ignore writing from objectRegistry::writeObject().
Defines the attributes of an object for which implicit objectRegistry management is supported,...
const Time & time() const noexcept
Return Time associated with the 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,...
dictionary & subDictOrAdd(const word &keyword, enum keyType::option matchOpt=keyType::REGEX)
Find and return a sub-dictionary for manipulation.
const dictionary & subDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a sub-dictionary.
bool remove(const word &keyword)
Remove an entry specified by keyword.
entry * set(entry *entryPtr)
Assign a new entry, overwriting any existing entry.
void operator=(const dictionary &rhs)
Copy assignment.
dictionary & meshDict()
Return the dictionary of mesh data, typically populated by the polyMesh::checkXXX functions,...
static const word controlsDictName
Name for "controls" sub-dictionary.
static const word meshDictName
Name for "mesh" sub-dictionary.
dictionary & controlsDict()
Return the dictionary of controls.
bool isFinalIteration() const
True if "finalIteration" entry exists (in controls) and is set.
bool isFirstIteration() const
True if "firstIteration" entry exists (in controls) and is set.
void setFinalIteration(bool on)
Add/remove "finalIteration" entry (from controls).
void setFirstIteration(bool on)
Add/remove "firstIteration" entry (from controls).
static const word solverPerformanceDictName
Name for "solver" (solver performance) sub-dictionary.
void reset(const meshState &ms)
Reset the dictionary.
dictionary & solverPerformanceDict()
Return the dictionary of solver performance data which includes initial and final residuals for conve...
Registry of regIOobjects.
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.