46 #define ReadFields(GeoFieldType) \ 47 readFields<GeoFieldType>(mesh, objects, selectedFields, storedObjects); 49 #define ReadPointFields(GeoFieldType) \ 50 readFields<GeoFieldType>(pMesh, objects, selectedFields, storedObjects); 52 #define ReadUniformFields(FieldType) \ 53 readUniformFields<FieldType> \ 54 (constantObjects, selectedFields, storedObjects); 56 void executeFunctionObjects
114 Info<<
nl <<
"Executing functionObjects" <<
endl;
125 while (!storedObjects.empty())
132 int main(
int argc,
char *argv[])
166 dictionary functionsControlDict(
"controlDict");
175 functionsControlDict,
182 runTime.
setTime(timeDirs[timei], timei);
193 functionsControlDict,
202 executeFunctionObjects
209 timei == timeDirs.
size()-1
A LIFO stack based on a singly-linked list.
A HashTable with keys but without contents.
wordList ReadFields(const Mesh &mesh, const IOobjectList &objects, PtrList< GeoField > &fields, const bool syncPar=true)
Read all fields of the specified type.
#define forAll(list, i)
Loop across all elements in list.
List of IOobjects with searching and retrieving facilities.
A list of keyword definitions, which are a keyword followed by any number of values (e...
static bool postProcess
Global post-processing mode switch.
static void list()
Print a list of functionObject configuration files in.
void size(const label)
Override size to be inconsistent with allocated storage.
Ostream & endl(Ostream &os)
Add newline and flush stream.
bool optionFound(const word &opt) const
Return true if the named option is found.
Field reading functions for post-processing utilities.
static word timeName(const scalar, const int precision=precision_)
Return time name of given scalar time.
bool insert(const Key &key)
Insert a new entry.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Mesh representing a set of points created from polyMesh.
bool execute()
Called at each ++ or += of the time-loop.
T pop()
Pop the top element off the stack.
virtual readUpdateState readUpdate()
Update the mesh based on the mesh files saved in time.
Extract command arguments and options from the supplied argc and argv parameters. ...
const word & constant() const
Return constant name.
virtual void setTime(const Time &)
Reset the time and time-index to those of the given time.
List of function objects with start(), execute() and end() functions that is called for each object...
bool checkOut()
Remove object from registry.
static pointMesh & New(polyMesh &mesh)
static instantList select0(Time &runTime, const argList &args)
Return the set of times selected based on the argList options.
Mesh data needed to do the Finite Volume discretisation.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
static autoPtr< functionObjectList > New(const argList &args, const Time &runTime, dictionary &controlDict, HashSet< word > &requiredFields)
Construct and return a functionObjectList for an application.
bool end()
Called when Time::run() determines that the time-loop exits.
static void addOptions(const bool constant=true, const bool withZero=false)
Add the options handled by timeSelector to argList::validOptions.
IStringStream optionLookup(const word &opt) const
Return an IStringStream from the named option.