Go to the documentation of this file.
52 #define ReadFields(GeoFieldType) \
53 readFields<GeoFieldType>(mesh, objects, selectedFields, storedObjects);
55 #define ReadPointFields(GeoFieldType) \
56 readFields<GeoFieldType>(pMesh, objects, selectedFields, storedObjects);
58 #define ReadUniformFields(FieldType) \
59 readUniformFields<FieldType> \
60 (constantObjects, selectedFields, storedObjects);
62 void executeFunctionObjects
120 Info<<
nl <<
"Executing functionObjects" <<
endl;
131 while (!storedObjects.empty())
138 int main(
int argc,
char *argv[])
142 "Execute the set of functionObjects specified in the selected"
143 " dictionary or on the command-line for the"
144 " selected set of times on the selected set of fields"
209 functionsPtr->movePoints(
mesh);
216 functionsPtr->updateMesh(mpm);
227 <<
"Unhandled enumeration"
232 fields.resetFieldFilters(fieldFilters);
240 executeFunctionObjects
247 timei == timeDirs.size()-1
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
wordList ReadFields(const typename GeoMesh::Mesh &mesh, const IOobjectList &objects, PtrList< GeometricField< Type, PatchField, GeoMesh >> &fields, const bool syncPar=true, const bool readOldTime=false)
Read Geometric fields of templated type.
static const pointMesh & New(const polyMesh &mesh, Args &&... args)
Get existing or create a new MeshObject.
static word timeName(const scalar t, const int precision=precision_)
static void addNote(const string ¬e)
Add extra notes for the usage information.
Extract command arguments and options from the supplied argc and argv parameters.
Ostream & endl(Ostream &os)
Add newline and flush stream.
T pop()
Pop the top element off the stack.
bool execute()
Called at each ++ or += of the time-loop.
T get(const label index) const
Get a value from the argument at index.
List of function objects with start(), execute() and end() functions that is called for each object.
A wordRe is a Foam::word, but can contain a regular expression for matching words or strings.
#define forAll(list, i)
Loop across all elements in list.
virtual readUpdateState readUpdate()
Update the mesh based on the mesh files saved in time.
const word & executable() const
Name of executable without the path.
messageStream Info
Information stream (uses stdout - output is on the master only)
Helper class to manage file-based field selections.
static bool postProcess
Global post-processing mode switch.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
static autoPtr< functionObjectList > New(const argList &args, const Time &runTime, dictionary &controlDict, HashSet< wordRe > &requiredFields)
Construct and return a functionObjectList for an application.
Mesh data needed to do the Finite Volume discretisation.
Mesh representing a set of points created from polyMesh.
errorManip< error > abort(error &err)
List of IOobjects with searching and retrieving facilities.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Field reading functions for post-processing utilities.
bool checkOut()
Remove all file watches and remove object from registry.
static void addOptions(const bool constant=true, const bool withZero=false)
Add timeSelector options to argList::validOptions.
virtual void setTime(const Time &t)
Reset the time and time-index to those of the given time.
static bool print(Ostream &os)
Print profiling information to specified output.
List< T > getList(const label index) const
Get a List of values from the argument at index.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
#define FatalErrorIn(functionName)
Report an error message using Foam::FatalError.
A LIFO stack based on a singly-linked list.
static instantList select0(Time &runTime, const argList &args)
const word & constant() const
Return constant name.
Foam::argList args(argc, argv)
bool throwExceptions(bool doThrow)
Activate/deactivate exception throwing.
bool end()
Called when Time::run() determines that the time-loop exits.
multivariateSurfaceInterpolationScheme< scalar >::fieldTable fields
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
bool found(const word &optName) const
Return true if the named option is found.