41 bool Foam::meshState::getBoolEntry
43 const dictionary&
dict,
48 return dict.readIfPresent(keyword, value) && value;
52 void Foam::meshState::setBoolEntry
72 Foam::meshState::meshState
75 const objectRegistry& obr,
76 const dictionary* content
110 return subDict(controlsDictName);
116 return subDict(controlsDictName);
122 return subDict(meshDictName);
128 return subDict(meshDictName);
134 return subDict(solverPerformanceDictName);
140 return subDict(solverPerformanceDictName);
146 return getBoolEntry(controlsDict(),
"firstIteration");
152 return getBoolEntry(controlsDict(),
"finalIteration");
158 return setBoolEntry(controlsDict(),
"firstIteration", on);
164 return setBoolEntry(controlsDict(),
"finalIteration", on);
A list of keyword definitions, which are a keyword followed by a number of values (eg...
bool isFirstIteration() const
True if "firstIteration" entry exists (in controls) and is set.
Database for mesh data, solution data, solver performance and other reduced data. ...
static const word meshDictName
Name for "mesh" sub-dictionary.
bool isFinalIteration() const
True if "finalIteration" entry exists (in controls) and is set.
dictionary & subDictOrAdd(const word &keyword, enum keyType::option matchOpt=keyType::REGEX)
Find and return a sub-dictionary for manipulation.
bool remove(const word &keyword)
Remove an entry specified by keyword.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
void operator=(const dictionary &rhs)
Copy assignment.
void setFinalIteration(bool on)
Add/remove "finalIteration" entry (from controls)
A class for handling words, derived from Foam::string.
void reset(const meshState &ms)
Reset the dictionary.
static const word controlsDictName
Name for "controls" sub-dictionary.
dictionary & solverPerformanceDict()
Return the dictionary of solver performance data which includes initial and final residuals for conve...
void setFirstIteration(bool on)
Add/remove "firstIteration" entry (from controls)
dictionary & controlsDict()
Return the dictionary of controls.
static const word solverPerformanceDictName
Name for "solver" (solver performance) sub-dictionary.
entry * set(entry *entryPtr)
Assign a new entry, overwriting any existing entry.
int system(const std::string &command, const bool bg=false)
Execute the specified command via the shell.
dictionary & meshDict()
Return the dictionary of mesh data, typically populated by the polyMesh::checkXXX functions...