Go to the documentation of this file.
45 #define CREATE_TIME createTime.H
49 #define CREATE_MESH createMesh.H
53 #define CREATE_FIELDS createFields.H
56 #ifndef CREATE_CONTROL
57 #define CREATE_CONTROL createControl.H
62 #define INCLUDE_FILE(X) INCLUDE_FILE2(X)
63 #define INCLUDE_FILE2(X) #X
69 argList::postProcessOptionName,
70 "Execute functionObjects only"
73 if (argList::postProcess(argc, argv))
80 functionObject::postProcess =
true;
86 functionObjectList::list();
90 #include INCLUDE_FILE(CREATE_TIME)
92 #include INCLUDE_FILE(CREATE_MESH)
95 #include INCLUDE_FILE(CREATE_CONTROL)
100 dictionary functionsDict;
102 HashSet<wordRe> selectedFields;
105 autoPtr<functionObjectList> functionsPtr
112 runTime.setTime(timeDirs[timei], timei);
116 switch (
mesh.readUpdate())
118 case polyMesh::POINTS_MOVED:
120 functionsPtr->movePoints(
mesh);
123 case polyMesh::TOPO_CHANGE:
124 case polyMesh::TOPO_PATCH_CHANGE:
126 mapPolyMesh mpm(
mesh);
127 functionsPtr->updateMesh(mpm);
130 case polyMesh::UNCHANGED:
138 <<
"Unhandled enumeration"
147 #include INCLUDE_FILE(CREATE_FIELDS)
149 #ifdef CREATE_FIELDS_2
150 #include INCLUDE_FILE(CREATE_FIELDS_2)
153 #ifdef CREATE_FIELDS_3
154 #include INCLUDE_FILE(CREATE_FIELDS_3)
157 functionsPtr->execute();
160 if (timei == timeDirs.size()-1)
168 catch (
const IOerror& err)
189 #undef CREATE_CONTROL
Ostream & endl(Ostream &os)
Add newline and flush stream.
#define forAll(list, i)
Loop across all elements in list.
const word & executable() const
Name of executable without the path.
messageStream Info
Information stream (uses stdout - output is on the master only)
errorManip< error > abort(error &err)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
static void addBoolOption(const word &optName, const string &usage="", bool advanced=false)
Add a bool option to validOptions with usage information.
static void addOptions(const bool constant=true, const bool withZero=false)
Add timeSelector options to argList::validOptions.
Ostream & print(Ostream &os, UIntType value, char off='0', char on='1')
Print 0/1 bits in the (unsigned) integral type.
#define FatalErrorIn(functionName)
Report an error message using Foam::FatalError.
static instantList select0(Time &runTime, const argList &args)
Foam::argList args(argc, argv)
bool throwExceptions(bool doThrow)
Activate/deactivate exception throwing.
bool found(const word &optName) const
Return true if the named option is found.