85#ifndef Foam_functionObjectList_H
86#define Foam_functionObjectList_H
112 private PtrList<functionObject>
117 List<error::handlerTypes> errorHandling_;
120 List<SHA1Digest> digests_;
123 HashTable<label> indices_;
128 HashTable<unsigned> warnings_;
138 mutable autoPtr<functionObjects::properties> propsDictPtr_;
141 mutable autoPtr<objectRegistry> objectsRegistryPtr_;
159 void createPropertiesDict()
const;
162 void createOutputRegistry()
const;
167 autoPtr<functionObject> remove(
const word& key, label& oldIndex);
171 static void listDir(
const fileName& dir,
wordHashSet& available);
187 functionObjectList(
const functionObjectList&) =
delete;
190 void operator=(
const functionObjectList&) =
delete;
209 const bool execution=
true
223 const bool execution=
true
231 static autoPtr<functionObjectList>
New
236 HashSet<wordRe>& requiredFields
253 using PtrList<functionObject>::operator[];
263 functionObjects::properties&
propsDict();
318 const string& funcNameArgs0,
342 bool execute(
bool writeProperties =
true);
347 bool execute(
const label subIndex);
A HashTable with keys but without contents that is similar to std::unordered_set.
A HashTable similar to std::unordered_map.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
constexpr PtrList() noexcept
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
bool empty() const noexcept
label size() const noexcept
Extract command arguments and options from the supplied argc and argv parameters.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
handlerTypes
Handling of errors. The exact handling depends on the local context.
A class for handling file names.
List of function objects with start(), execute() and end() functions that is called for each object.
static fileName findDict(const word &funcName)
Find a functionObject dictionary file in the case <system> directory or any directory located using F...
void off()
Switch the function objects off.
static autoPtr< functionObjectList > New(const argList &args, const Time &runTime, dictionary &controlDict, HashSet< wordRe > &requiredFields)
Construct and return a functionObjectList for an application.
objectRegistry & storedObjects()
Write access to the output objects ("functionObjectObjects") registered on Time.
bool filesModified() const
Did any file get changed during execution?
void movePoints(const polyMesh &mesh)
Update for changes of mesh.
label findObjectID(const word &objName) const
Find the ID of a given function object by name, -1 if not found.
bool adjustTimeStep()
Called at the end of Time::adjustDeltaT() if adjustTime is true.
void updateMesh(const mapPolyMesh &mpm)
Update for changes of mesh.
static void list()
Print a list of functionObject configuration files in the directories located using Foam::findEtcDirs...
bool start()
Called at the start of the time-loop.
bool execute(bool writeProperties=true)
Called at each ++ or += of the time-loop.
void clear()
Clear the list of function objects.
void resetPropertiesDict()
Reset/read properties dictionary for current time.
functionObjects::properties & propsDict()
Write access to the properties dictionary ("functionObjectProperties") registered on Time.
bool status() const
Return the execution status (on/off) of the function objects.
label triggerIndex() const
Return the current trigger index (read from the propsDict).
~functionObjectList()=default
Destructor.
static bool readFunctionObject(const string &funcNameArgs0, dictionary &functionsDict, HashSet< wordRe > &requiredFields, const word ®ion=word::null)
Read the specified functionObject configuration dictionary parsing the optional arguments included in...
static fileName functionObjectDictPath
Default relative path ("caseDicts/postProcessing") to the directory structure containing functionObje...
bool end()
Called when Time::run() determines that the time-loop exits.
void on()
Switch the function objects on.
bool read()
Read and set the function objects if their data have changed.
Abstract base-class for Time/database function objects.
Storage for function object properties, derived from IOdictionary. Provides functionality to read/wri...
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
Registry of regIOobjects.
Mesh consisting of general polyhedral cells.
A wordRe is a Foam::word, but can contain a regular expression for matching words or strings.
A class for handling words, derived from Foam::string.
static const word null
An empty word.
runTime controlDict().readEntry("adjustTimeStep"
HashSet< word, Hash< word > > wordHashSet
A HashSet of words, uses string hasher.
Foam::argList args(argc, argv)