34const Foam::word Foam::functionObjects::stateFunctionObject::resultsName_ =
43 return time_.functionObjects().propsDict();
109 const word& entryName,
119 const word& objectName,
120 const word& entryName,
124 return stateDict().getObjectDict(objectName, entryName,
dict);
130 const word& objectName,
149 const word& objectName,
150 const word& entryName
153 return stateDict().objectResultType(objectName, entryName);
170 return stateDict().objectResultEntries(objectName);
185 const word& objectName,
189 return stateDict().writeResultEntries(objectName,
os);
198 return stateDict().writeAllResultEntries(
os);
IOdictionary propsDict(dictIO)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
const word & name() const noexcept
Return the name of this functionObject.
Storage for function object properties, derived from IOdictionary. Provides functionality to read/wri...
bool getObjectDict(const word &objectName, const word &entryName, dictionary &dict) const
Set dictionary from named object, return true if set.
bool getDict(const word &entryName, dictionary &dict) const
Set dictionary, return true if set.
bool setTrigger(const label triggeri)
Set new trigger index.
word objectResultType(const word &objectName, const word &entryName) const
Return the type of result.
bool foundProperty(const word &entryName) const
Return true if the property exists.
void writeAllResultEntries(Ostream &os) const
Write the results entries for all objects to stream.
stateFunctionObject(const stateFunctionObject &)=delete
No copy construct.
void writeResultEntries(Ostream &os) const
Write the results entries for all objects to stream.
bool getObjectResultDict(const word &objectName, dictionary &dict) const
void clearTrigger()
Remove the trigger index from the properties.
const functionObjects::properties & stateDict() const
Return a const reference to the state dictionary.
label getTrigger() const
Get the current trigger index.
dictionary & propertyDict()
Return access to the property dictionary.
wordList objectResultEntries() const
Retrieve the result entries.
word resultType(const word &entryName) const
Retrieve the result type.
const Time & time_
Reference to the time database.
timeFunctionObject(const timeFunctionObject &)=delete
No copy construct.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
List< word > wordList
List of word.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.