46 #define ReadFields(GeoFieldType) \ 47 readFields<GeoFieldType>(mesh, objects, requiredFields, storedObjects); 49 #define ReadPointFields(GeoFieldType) \ 50 readFields<GeoFieldType>(pMesh, objects, requiredFields, storedObjects); 52 #define ReadUniformFields(FieldType) \ 53 readUniformFields<FieldType> \ 54 (constantObjects, requiredFields, storedObjects); 56 void executeFunctionObjects
120 Info<<
nl <<
"Executing functionObjects" <<
endl;
131 while (!storedObjects.empty())
138 int main(
int argc,
char *argv[])
152 <<
"Available configured functionObjects:" 175 dictionary functionsControlDict(
"controlDict");
190 runTime.
setTime(timeDirs[timei], timei);
209 executeFunctionObjects
216 timei == timeDirs.
size()-1
A LIFO stack based on a singly-linked list.
A HashTable with keys but without contents.
wordList ReadFields(const Mesh &mesh, const IOobjectList &objects, PtrList< GeoField > &fields, const bool syncPar=true)
Read all fields of the specified type.
#define forAll(list, i)
Loop across all elements in list.
List of IOobjects with searching and retrieving facilities.
A list of keyword definitions, which are a keyword followed by any number of values (e...
static wordList list()
Return the list of functionObject configuration files in.
static bool postProcess
Global post-processing mode switch.
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.
Field reading functions for post-processing utilities.
bool insert(const Key &key)
Insert a new entry.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Mesh representing a set of points created from polyMesh.
bool execute()
Called at each ++ or += of the time-loop.
T pop()
Pop the top element off the stack.
static word timeName(const scalar, const int precision=curPrecision_)
Return time name of given scalar time.
Extract command arguments and options from the supplied argc and argv parameters. ...
const word & constant() const
Return constant name.
virtual void setTime(const Time &)
Reset the time and time-index to those of the given time.
List of function objects with start(), execute() and end() functions that is called for each object...
bool checkOut()
Remove object from registry.
static pointMesh & New(polyMesh &mesh)
static instantList select0(Time &runTime, const argList &args)
Return the set of times selected based on the argList options.
readUpdateState readUpdate(const stitchType stitch=stitchType::geometric)
Update the mesh based on the mesh files saved in time.
Info<< "Reading field p_rgh\"<< endl;volScalarField p_rgh(IOobject("p_rgh", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);pressureReference pressureReference(p, p_rgh, pimple.dict(), thermo.incompressible());mesh.schemes().setFluxRequired(p_rgh.name());hydrostaticInitialisation(p_rgh, p, rho, U, gh, ghf, pRef, thermo, pimple.dict());Info<< "Creating field dpdt\"<< endl;volScalarField dpdt(IOobject("dpdt", runTime.timeName(), mesh), mesh, dimensionedScalar(p.dimensions()/dimTime, 0));Info<< "Creating field kinetic energy K\"<< endl;volScalarField K("K", 0.5 *magSqr(U));dimensionedScalar initialMass=fvc::domainIntegrate(rho);multivariateSurfaceInterpolationScheme< scalar >::fieldTable fields
static autoPtr< functionObjectList > New(const argList &args, const Time &runTime, dictionary &controlDict)
Construct and return a functionObjectList for an application.
word userTimeName() const
Return current user time name with units.
Mesh data needed to do the Finite Volume discretisation.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
bool end()
Called when Time::run() determines that the time-loop exits.
static void addOptions(const bool constant=true, const bool withZero=false)
Add the options handled by timeSelector to argList::validOptions.
IStringStream optionLookup(const word &opt) const
Return an IStringStream from the named option.