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 runTime.setTime(timeDirs[timei], timei);
105 #include INCLUDE_FILE(CREATE_FIELDS) 107 #ifdef CREATE_FIELDS_2 108 #include INCLUDE_FILE(CREATE_FIELDS_2) 111 #ifdef CREATE_FIELDS_3 112 #include INCLUDE_FILE(CREATE_FIELDS_3) 117 dictionary functionsControlDict(
"controlDict");
119 HashSet<word> selectedFields;
122 autoPtr<functionObjectList> functionsPtr
128 functionsControlDict,
133 functionsPtr->execute();
141 mesh.objectRegistry::clear();
159 #undef CREATE_CONTROL
#define forAll(list, i)
Loop across all elements in list.
Ostream & endl(Ostream &os)
Add newline and flush stream.
bool optionFound(const word &opt) const
Return true if the named option is found.
static instantList timeDirs
autoPtr< BasicCompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const typename BasicCompressibleMomentumTransportModel::transportModel &transport)
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.