52 #define ReadFields(GeoFieldType) \ 53 readFields<GeoFieldType>(mesh, objects, selectedFields, storedObjects); 55 #define ReadPointFields(GeoFieldType) \ 56 readFields<GeoFieldType>(pMesh, objects, selectedFields, storedObjects); 58 #define ReadUniformFields(FieldType) \ 59 readUniformFields<FieldType> \ 60 (constantObjects, selectedFields, storedObjects); 62 void executeFunctionObjects
120 Info<<
nl <<
"Executing functionObjects" <<
endl;
131 while (!storedObjects.empty())
138 int main(
int argc,
char *argv[])
142 "Execute the set of functionObjects specified in the selected" 143 " dictionary or on the command-line for the" 144 " selected set of times on the selected set of fields" 209 functionsPtr->movePoints(
mesh);
216 functionsPtr->updateMesh(mpm);
227 <<
"Unhandled enumeration" 232 fields.resetFieldFilters(fieldFilters);
240 executeFunctionObjects
247 timei == timeDirs.
size()-1
A LIFO stack based on a singly-linked list.
static void addNote(const string ¬e)
Add extra notes for the usage information.
void size(const label n)
Older name for setAddressableSize.
wordList ReadFields(const typename GeoMesh::Mesh &mesh, const IOobjectList &objects, PtrList< GeometricField< Type, PatchField, GeoMesh >> &fields, const bool syncPar=true, const bool readOldTime=false)
Read Geometric fields of templated type.
List of IOobjects with searching and retrieving facilities. Implemented as a HashTable, so the various sorted methods should be used if traversing in parallel.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
A list of keyword definitions, which are a keyword followed by a number of values (eg...
static bool postProcess
Global post-processing mode switch.
static void list()
Print a list of functionObject configuration files in the directories located using Foam::findEtcDirs...
static const pointMesh & New(const polyMesh &mesh, Args &&... args)
Get existing or create a new MeshObject. Registered with typeName.
constexpr char nl
The newline '\n' character (0x0a)
bool throwing() const noexcept
Return the current exception throwing state (on or off)
Ostream & endl(Ostream &os)
Add newline and flush stream.
List< T > getList(const label index) const
Get a List of values from the argument at index.
Field reading functions for post-processing utilities.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
multivariateSurfaceInterpolationScheme< scalar >::fieldTable fields
Mesh representing a set of points created from polyMesh.
#define forAll(list, i)
Loop across all elements in list.
static autoPtr< functionObjectList > New(const argList &args, const Time &runTime, dictionary &controlDict, HashSet< wordRe > &requiredFields)
Construct and return a functionObjectList for an application.
bool execute()
Called at each ++ or += of the time-loop.
T pop()
Pop the top element off the stack.
virtual readUpdateState readUpdate()
Update the mesh based on the mesh files saved in time.
const word & executable() const noexcept
Name of executable without the path.
Extract command arguments and options from the supplied argc and argv parameters. ...
virtual void setTime(const Time &t)
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...
errorManip< error > abort(error &err)
A wordRe is a Foam::word, but can contain a regular expression for matching words or strings...
Helper class to manage file-based field selections.
bool checkOut()
Remove all file watches and remove object from registry.
static word timeName(const scalar t, const int precision=precision_)
Return time name of given scalar time formatted with the given precision.
static bool print(Ostream &os)
Print profiling information to specified output.
const word & constant() const noexcept
Return constant name.
static instantList select0(Time &runTime, const argList &args)
Return the set of times selected based on the argList options and also set the runTime to the first i...
messageStream Warning
Warning stream (stdout output on master, null elsewhere), with additional 'FOAM Warning' header text...
T get(const label index) const
Get a value from the argument at index.
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...
messageStream Info
Information stream (stdout output on master, null elsewhere)
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
Foam::argList args(argc, argv)
#define FatalErrorIn(functionName)
Report an error message using Foam::FatalError.
bool end()
Called when Time::run() determines that the time-loop exits.
bool found(const word &optName) const
Return true if the named option is found.
static void addOptions(const bool constant=true, const bool withZero=false)
Add timeSelector options to argList::validOptions.
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...