42 #define CREATE_TIME createTime.H 46 #define CREATE_MESH createMesh.H 50 #define CREATE_FIELDS createFields.H 53 #ifndef CREATE_CONTROL 54 #define CREATE_CONTROL createControl.H 59 #define INCLUDE_FILE(X) INCLUDE_FILE2(X) 60 #define INCLUDE_FILE2(X) #X 66 argList::postProcessOptionName,
67 "Execute functionObjects only" 70 if (argList::postProcess(argc, argv))
77 functionObject::postProcess =
true;
83 functionObjectList::list();
87 #include INCLUDE_FILE(CREATE_TIME) 89 #include INCLUDE_FILE(CREATE_MESH) 92 #include INCLUDE_FILE(CREATE_CONTROL) 97 dictionary functionsControlDict(
"controlDict");
99 HashSet<word> selectedFields;
102 autoPtr<functionObjectList> functionsPtr
108 functionsControlDict,
115 runTime.setTime(timeDirs[timei], timei);
119 if (
mesh.readUpdate() != polyMesh::UNCHANGED)
126 functionsControlDict,
135 #include INCLUDE_FILE(CREATE_FIELDS) 137 #ifdef CREATE_FIELDS_2 138 #include INCLUDE_FILE(CREATE_FIELDS_2) 141 #ifdef CREATE_FIELDS_3 142 #include INCLUDE_FILE(CREATE_FIELDS_3) 145 functionsPtr->execute();
148 if (timei == timeDirs.
size()-1)
159 mesh.objectRegistry::clear();
177 #undef CREATE_CONTROL
#define forAll(list, i)
Loop across all elements in list.
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.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
static instantList timeDirs
static instantList select0(Time &runTime, const argList &args)
Return the set of times selected based on the argList options.
static void addBoolOption(const word &opt, const string &usage="")
Add to a bool option to validOptions with usage information.
Foam::argList args(argc, argv)
static void addOptions(const bool constant=true, const bool withZero=false)
Add the options handled by timeSelector to argList::validOptions.