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);
62void executeFunctionObjects
120 Info<<
nl <<
"Executing functionObjects" <<
endl;
131 while (!storedObjects.empty())
133 storedObjects.
pop()->checkOut();
138int 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"
147 timeSelector::addOptions();
153 functionObject::postProcess =
true;
159 functionObjectList::list();
190 functionObjectList::New
201 runTime.setTime(timeDirs[timei], timei);
205 switch (
mesh.readUpdate())
207 case polyMesh::POINTS_MOVED:
209 functionsPtr->movePoints(
mesh);
212 case polyMesh::TOPO_CHANGE:
213 case polyMesh::TOPO_PATCH_CHANGE:
216 functionsPtr->updateMesh(mpm);
219 case polyMesh::UNCHANGED:
227 <<
"Unhandled enumeration"
228 <<
abort(FatalError);
232 fields.resetFieldFilters(fieldFilters);
240 executeFunctionObjects
247 timei == timeDirs.
size()-1
251 profiling::print(Info);
Field reading functions for post-processing utilities.
List of IOobjects with searching and retrieving facilities.
A LIFO stack based on a singly-linked list.
T pop()
Pop the top element off the stack.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
void size(const label n)
Older name for setAddressableSize.
Extract command arguments and options from the supplied argc and argv parameters.
T get(const label index) const
Get a value from the argument at index.
bool found(const word &optName) const
Return true if the named option is found.
List< T > getList(const label index) const
Get a List of values from the argument at index.
const word & executable() const noexcept
Name of executable without the path.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
bool throwing() const noexcept
Return the current exception throwing state (on or off)
List of function objects with start(), execute() and end() functions that is called for each object.
bool execute()
Called at each ++ or += of the time-loop.
bool end()
Called when Time::run() determines that the time-loop exits.
Helper class to manage file-based field selections.
Mesh data needed to do the Finite Volume discretisation.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
Mesh representing a set of points created from polyMesh.
A wordRe is a Foam::word, but can contain a regular expression for matching words or strings.
#define FatalErrorIn(functionName)
Report an error message using Foam::FatalError.
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.
messageStream Info
Information stream (stdout output on master, null elsewhere)
Ostream & endl(Ostream &os)
Add newline and flush stream.
errorManip< error > abort(error &err)
constexpr char nl
The newline '\n' character (0x0a)
Foam::argList args(argc, argv)
multivariateSurfaceInterpolationScheme< scalar >::fieldTable fields
#define forAll(list, i)
Loop across all elements in list.