81 #ifndef functionObjectList_H 82 #define functionObjectList_H 107 class functionObjectList
109 private PtrList<functionObject>
114 enum class errorHandlingType : uint8_t
123 static const Enum<errorHandlingType> errorHandlingNames_;
171 void createPropertiesDict()
const;
174 void createOutputRegistry()
const;
179 autoPtr<functionObject>
remove(
const word&
key, label& oldIndex);
183 static void listDir(
const fileName& dir,
wordHashSet& available);
190 errorHandlingType getOrDefaultErrorHandling
193 const dictionary&
dict,
194 const errorHandlingType deflt
199 functionObjectList(
const functionObjectList&) =
delete;
202 void operator=(
const functionObjectList&) =
delete;
221 const bool execution=
true 234 const dictionary& parentDict,
235 const bool execution=
true 243 static autoPtr<functionObjectList>
New 248 HashSet<wordRe>& requiredFields
275 functionObjects::properties&
propsDict();
330 const string& funcNameArgs0,
359 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.
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.
bool execute()
Called at each ++ or += of the time-loop.
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)
Issue warning and clamp value (this is a good default)
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
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.