103 using namespace Foam;
107 #define ReadFields(GeoFieldType) \
108 readFields<GeoFieldType>(mesh, objects, requiredFields, storedObjects);
110 #define ReadPointFields(GeoFieldType) \
111 readFields<GeoFieldType>(pMesh, objects, requiredFields, storedObjects);
113 #define ReadUniformFields(FieldType) \
114 readUniformFields<FieldType> \
115 (constantObjects, requiredFields, storedObjects);
117 void executeFunctionObjects
181 Info<<
nl <<
"Executing functionObjects" <<
endl;
192 while (!storedObjects.empty())
194 storedObjects.
pop()->checkOut();
201 int main(
int argc,
char *argv[])
217 "List the available functionObjects templates"
225 bool printedList =
false;
230 <<
"Available configured functionObjects:"
243 <<
"Available functionObject templates:"
271 libs.
open(
"lib" + solverName +
".so");
291 <<
"Create mesh " <<
regionName <<
" for time = "
297 <<
"Create mesh for time = "
341 functionsPtr->execute();
344 mesh.objectRegistry::clear();
348 executeFunctionObjects
Field reading functions for post-processing utilities.
#define forAll(list, i)
Loop across all elements in list.
static pointMesh & New(const word &name, const polyMesh &mesh)
Construct and return the named DemandDrivenMeshObject.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Generic GeometricField class.
A HashTable with keys but without contents.
bool insert(const Key &key)
Insert a new entry.
List of IOobjects with searching and retrieving facilities.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
A LIFO stack based on a singly-linked list.
T pop()
Pop the top element off the stack.
void size(const label)
Override size to be inconsistent with allocated storage.
static const word & constant()
Return constant name.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
virtual void setTime(const Time &)
Reset the time and time-index to those of the given time.
word userTimeName() const
Return current user time name with units.
Extract command arguments and options from the supplied argc and argv parameters.
static void addOption(const word &opt, const string ¶m="", const string &usage="")
Add to an option to validOptions with usage information.
static void addBoolOption(const word &opt, const string &usage="")
Add to a bool option to validOptions with usage information.
bool optionFound(const word &opt) const
Return true if the named option is found.
bool optionReadIfPresent(const word &opt, T &) const
Read a value from the named option if present.
IStringStream optionLookup(const word &opt) const
Return an IStringStream from the named option.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
const word & name() const
Return const reference to name.
bool open(const fileName &libName, const bool verbose=true)
Open the named library, optionally with warnings if problems occur.
static fileName functionObjectTemplatePath
Default relative path to the directory structure.
static fileName functionObjectDictPath
Default relative path to the directory structure.
List of function objects with start(), execute() and end() functions that is called for each object.
static autoPtr< functionObjectList > New(const argList &args, const Time &runTime)
Construct and return a functionObjectList for an application.
bool execute()
Called at each ++ or += of the time-loop.
bool end()
Called when Time::run() determines that the time-loop exits.
static bool postProcess
Global post-processing mode switch.
Mesh data needed to do the Finite Volume discretisation.
readUpdateState readUpdate(const stitchType stitch=stitchType::geometric)
Update the mesh based on the mesh files saved in time.
Mesh representing a set of points created from polyMesh.
static word defaultRegion
Return the default region name.
static autoPtr< solver > New(const word &solverName, fvMesh &mesh)
Select, construct and return the solver.
static void addOptions(const bool constant=true, const bool withZero=false)
Add the options handled by timeSelector to argList::validOptions.
static instantList select0(Time &runTime, const argList &args)
Return the set of times selected based on the argList options.
A class for handling words, derived from string.
static const word null
An empty word.
int main(int argc, char *argv[])
static instantList timeDirs
Info<< "Calculating turbulent flame speed field St\n"<< endl;volScalarField St(IOobject("St", runTime.name(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), flameWrinkling->Xi() *Su);multivariateSurfaceInterpolationScheme< scalar >::fieldTable fields
dlLibraryTable libs
Table of loaded dynamic libraries.
wordList ReadFields(const Mesh &mesh, const IOobjectList &objects, PtrList< GeoField > &fields, const bool syncPar=true)
Read all fields of the specified type.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const word & regionName(const solver ®ion)
wordList listAllConfigFiles(const fileName &configFilesPath)
Return the list of configuration files in.
Foam::argList args(argc, argv)