42 #define CREATE_MESH createMesh.H 46 #define CREATE_FIELDS createFields.H 49 #ifndef CREATE_CONTROL 50 #define CREATE_CONTROL createControl.H 55 #define INCLUDE_FILE(X) INCLUDE_FILE2(X) 56 #define INCLUDE_FILE2(X) #X 62 argList::postProcessOptionName,
63 "Execute functionObjects only" 66 if (argList::postProcess(argc, argv))
73 functionObject::postProcess =
true;
80 <<
"Available configured functionObjects:" 81 << functionObjectList::list()
88 #include INCLUDE_FILE(CREATE_MESH) 91 #include INCLUDE_FILE(CREATE_CONTROL) 96 runTime.setTime(timeDirs[timei], timei);
98 Info<<
"Time = " << runTime.userTimeName() <<
endl;
106 #include INCLUDE_FILE(CREATE_FIELDS) 108 #ifdef CREATE_FIELDS_2 109 #include INCLUDE_FILE(CREATE_FIELDS_2) 112 #ifdef CREATE_FIELDS_3 113 #include INCLUDE_FILE(CREATE_FIELDS_3) 118 dictionary functionsControlDict(
"controlDict");
121 autoPtr<functionObjectList> functionsPtr
131 functionsPtr->execute();
139 mesh.objectRegistry::clear();
157 #undef CREATE_CONTROL
#define forAll(list, i)
Loop across all elements in list.
autoPtr< CompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const viscosity &viscosity)
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
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.