52 void executeFunctionObjects
73 objects.size() + constObjects.size()
76 const auto nameMatcher = [&](
const word&
name) ->
bool 84 #define ReadFields(FieldType) \ 85 readFields<FieldType>(mesh, objects, nameMatcher, storedObjects); 111 #undef ReadPointFields 112 #define ReadPointFields(FieldType) \ 113 readFields<FieldType>(pMesh, objects, nameMatcher, storedObjects); 124 #undef ReadUniformFields 125 #define ReadUniformFields(FieldType) \ 126 readUniformFields<FieldType>(constObjects, nameMatcher, storedObjects); 134 Info<<
nl <<
"Executing functionObjects" <<
endl;
145 while (!storedObjects.empty())
147 storedObjects.back()->checkOut();
148 storedObjects.pop_back();
153 int main(
int argc,
char *argv[])
157 "Execute the set of functionObjects specified in the selected" 158 " dictionary or on the command-line for the" 159 " selected set of times on the selected set of fields" 224 functionsPtr->movePoints(
mesh);
231 functionsPtr->updateMesh(mpm);
242 <<
"Unhandled enumeration" 247 fields.resetFieldFilters(fieldFilters);
255 executeFunctionObjects
262 timei == timeDirs.
size()-1
A HashTable with keys but without contents that is similar to std::unordered_set. ...
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.
bool contains(const T &val) const
True if the value is contained in the list.
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.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
virtual readUpdateState readUpdate()
Update the mesh based on the mesh files saved in time.
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects...
A class for handling words, derived from Foam::string.
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.
static word timeName(const scalar t, const int precision=precision_)
Return a time name for the given scalar time value 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...
bool execute(bool writeProperties=true)
Called at each ++ or += of the time-loop.
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 ...