43#ifndef Foam_meshState_H
44#define Foam_meshState_H
65 mutable label prevTimeIndex_;
74 static void setBoolEntry
82 meshState(
const meshState&) =
delete;
85 void operator=(
const meshState&) =
delete;
116 meshState(
"data", obr)
142 void reset(
const meshState& ms);
IOdictionary(const IOobject &io, const dictionary *fallback=nullptr)
Construct given an IOobject and optional fallback dictionary content.
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,...
Database for mesh data, solution data, solver performance and other reduced data.
meshState(const objectRegistry &obr, const dictionary &dict)
Construct for objectRegistry (registered as "data") copying initial content.
meshState(const word &name, const objectRegistry &obr, const dictionary &dict)
Construct for objectRegistry (registered with specified name) copying initial content.
dictionary & meshDict()
Return the dictionary of mesh data, typically populated by the polyMesh::checkXXX functions,...
static const word controlsDictName
Name for "controls" sub-dictionary.
meshState(const objectRegistry &obr)
Construct for objectRegistry (registered as "data").
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 setSolverPerformance(const word &name, const SolverPerformance< Type > &sp) const
Add/set the solverPerformance entry for the named field.
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.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.