Go to the documentation of this file.
42 "functionObjectProperties",
44 "uniform"/
word(
"functionObjects"),
65 if (fnd != indices_.end())
70 ptr = this->set(oldIndex, 0).ptr();
96 execution_(execution),
112 parentDict_(parentDict),
114 execution_(execution),
129 if (!stateDictPtr_.valid())
134 return stateDictPtr_();
140 if (!stateDictPtr_.valid())
145 return stateDictPtr_();
162 if (
operator[](objectI).
name() ==
name)
181 updated_ = execution_ =
false;
210 ok = operator[](objectI).execute(forceWrite) && ok;
215 if (time_.outputTime())
220 stateDictPtr_->writeObject
224 time_.writeCompression()
247 ok = operator[](objectI).end() && ok;
268 ok = operator[](objectI).timeSet() && ok;
289 ok = operator[](objectI).adjustTimeStep() && ok;
299 if (!stateDictPtr_.valid())
305 updated_ = execution_;
314 const entry* entryPtr = parentDict_.lookupEntryPtr
334 newPtrs.
setSize(functionDicts.size());
335 newDigs.
setSize(functionDicts.size());
340 if (!iter().isDict())
344 const word& key = iter().keyword();
354 if (newDigs[nFunc] != digests_[oldIndex])
363 ok = objPtr->
start() && ok;
366 newPtrs.
set(nFunc, objPtr);
367 newIndices.
insert(key, nFunc);
382 if (!iter().isDict())
386 const word& key = iter().keyword();
396 if (newDigs[nFunc] != digests_[oldIndex])
405 ok = objPtr->
start() && ok;
408 newPtrs.
set(nFunc, objPtr);
409 newIndices.
insert(key, nFunc);
421 digests_.transfer(newDigs);
422 indices_.transfer(newIndices);
441 operator[](objectI).updateMesh(mpm);
453 operator[](objectI).movePoints(
mesh);
A keyword and a list of tokens is an 'entry'.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
virtual void movePoints(const polyMesh &mesh)
Update for changes of mesh.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
virtual bool status() const
Return the execution status (on/off) of the function objects.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
virtual bool adjustTimeStep()
Called at the end of Time::adjustDeltaT() if adjustTime is true.
virtual bool read(const dictionary &)=0
Read and set the function object if its data have changed.
A class for handling words, derived from string.
#define forAllIter(Container, container, iter)
Iterate across all elements in the container object of type.
virtual ITstream & stream() const =0
Return token stream if this entry is a primitive entry.
void createStateDict() const
Create state dictionary.
#define forAll(list, i)
Loop across all elements in list.
virtual void on()
Switch the function objects on.
bool read(const char *, int32_t &)
functionObject * remove(const word &, label &oldIndex)
Remove and return the function object pointer by name,.
bool insert(const Key &, const T &newElmt)
Insert a new hashedEntry.
virtual void updateMesh(const mapPolyMesh &mpm)
Update for changes of mesh.
static unsigned int precision_
Default precision.
IOdictionary & stateDict()
Return the state dictionary.
static const versionNumber currentVersion
Current version number.
virtual bool start()
Called at the start of the time-loop.
virtual label findObjectID(const word &name) const
Find the ID of a given function object by name.
Mesh consisting of general polyhedral cells.
Abstract base-class for Time/database function objects.
virtual void clear()
Clear the list of function objects.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
bool set(const label) const
Is element set.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
virtual bool isDict() const
Return true if this entry is a dictionary.
virtual void off()
Switch the function objects off.
static autoPtr< functionObject > New(const word &name, const Time &, const dictionary &)
Select from dictionary, based on its "type" entry.
void transfer(PtrList< T > &)
Transfer the contents of the argument PtrList into this PtrList.
A list of keyword definitions, which are a keyword followed by any number of values (e....
const dictionary & controlDict() const
functionObjectList(const functionObjectList &)
Disallow default bitwise copy construct.
void clear()
Clear the PtrList, i.e. set size to zero deleting all the.
virtual const dictionary & dict() const =0
Return dictionary if this entry is a dictionary.
iterator find(const Key &)
Find and return an iterator set at the hashedEntry.
An STL-conforming hash table.
void setSize(const label)
Reset size of List.
static word timeName(const scalar, const int precision=precision_)
Return time name of given scalar time.
virtual bool execute(const bool forceWrite=false)
Called at each ++ or += of the time-loop. forceWrite overrides.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
autoPtr< IOdictionary > stateDictPtr_
Function object properties - stores state information.
label size() const
Return the number of elements in the PtrList.
void setSize(const label)
Reset size of PtrList. If extending the PtrList, new entries are.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
SHA1Digest digest() const
Return the SHA1 digest of the dictionary contents.
virtual ~functionObjectList()
Destructor.
virtual bool start()=0
Called at the start of the time-loop.
virtual bool read()
Read and set the function objects if their data have changed.
virtual bool end()
Called when Time::run() determines that the time-loop exits.
word name(const complex &)
Return a string representation of a complex.
virtual bool timeSet()
Called when time was set at the end of the Time::operator++.