81 #ifndef Foam_functionObjectList_H 82 #define Foam_functionObjectList_H 106 class functionObjectList
108 private PtrList<functionObject>
113 List<error::handlerTypes> errorHandling_;
116 List<SHA1Digest> digests_;
119 HashTable<label> indices_;
124 HashTable<unsigned> warnings_;
155 void createPropertiesDict()
const;
158 void createOutputRegistry()
const;
163 autoPtr<functionObject>
remove(
const word&
key, label& oldIndex);
167 static void listDir(
const fileName& dir,
wordHashSet& available);
177 const dictionary&
dict,
183 functionObjectList(
const functionObjectList&) =
delete;
186 void operator=(
const functionObjectList&) =
delete;
205 const bool execution=
true 218 const dictionary& parentDict,
219 const bool execution=
true 227 static autoPtr<functionObjectList>
New 232 HashSet<wordRe>& requiredFields
314 const string& funcNameArgs0,
338 bool execute(
bool writeProperties =
true);
343 bool execute(
const label subIndex);
bool read()
Read and set the function objects if their data have changed.
A HashTable with keys but without contents that is similar to std::unordered_set. ...
A class for handling file names.
bool filesModified() const
Did any file get changed during execution?
~functionObjectList()=default
Destructor.
handlerTypes
Handling of errors. The exact handling depends on the local context.
void off()
Switch the function objects off.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Storage for function object properties, derived from IOdictionary. Provides functionality to read/wri...
label findObjectID(const word &objName) const
Find the ID of a given function object by name, -1 if not found.
static void list()
Print a list of functionObject configuration files in the directories located using Foam::findEtcDirs...
functionObjects::properties & propsDict()
Write access to the properties dictionary ("functionObjectProperties") registered on Time...
void on()
Switch the function objects on.
bool adjustTimeStep()
Called at the end of Time::adjustDeltaT() if adjustTime is true.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
bool start()
Called at the start of the time-loop.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
static autoPtr< functionObjectList > New(const argList &args, const Time &runTime, dictionary &controlDict, HashSet< wordRe > &requiredFields)
Construct and return a functionObjectList for an application.
void resetPropertiesDict()
Reset/read properties dictionary for current time.
A class for handling words, derived from Foam::string.
label size() const noexcept
The number of entries in the list.
static fileName findDict(const word &funcName)
Find a functionObject dictionary file in the case <system> directory or any directory located using F...
static const word null
An empty word.
HashSet< word, Hash< word > > wordHashSet
A HashSet of words, uses string hasher.
friend Ostream & operator(Ostream &os, const UPtrList< T > &list)
Write UPtrList to Ostream.
runTime controlDict().readEntry("adjustTimeStep"
The central control dictionary, the contents of which are either taken directly from the FOAM_CONTROL...
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
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...
void clear()
Clear the list of function objects.
bool empty() const noexcept
True if the list is empty (ie, size() is zero)
bool status() const
Return the execution status (on/off) of the function objects.
auto key(const Type &t) -> typename std::enable_if< std::is_enum< Type >::value, typename std::underlying_type< Type >::type >::type
bool execute(bool writeProperties=true)
Called at each ++ or += of the time-loop.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
objectRegistry & storedObjects()
Write access to the output objects ("functionObjectObjects") registered on Time.
Mesh consisting of general polyhedral cells.
void updateMesh(const mapPolyMesh &mpm)
Update for changes of mesh.
Registry of regIOobjects.
label triggerIndex() const
Return the current trigger index (read from the propsDict)
Foam::argList args(argc, argv)
void movePoints(const polyMesh &mesh)
Update for changes of mesh.
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.