33 namespace functionObjects
40 setTimeStepFunctionObject,
49 Foam::functionObjects::setTimeStepFunctionObject::setTimeStepFunctionObject
80 const_cast<Time&
>(time()).setDeltaT
82 timeStepPtr_().value(time_.timeOutputValue()),
108 <<
"Need to set 'adjustTimeStep' true to allow timestep control" virtual ~setTimeStepFunctionObject()
errorManipArg< error, int > exit(error &err, const int errNo=1)
runTime controlDict().lookup("adjustTimeStep") >> adjustTimeStep
A list of keyword definitions, which are a keyword followed by any number of values (e...
virtual bool adjustTimeStep()
Called at the end of Time::adjustDeltaT() if adjustTime is true.
virtual bool write()
Called at each ++ or += of the time-loop.
A simple wrapper around bool so that it can be read as a word: true/false, on/off, yes/no, y/n, t/f, or none.
Abstract base-class for Time/database function objects.
virtual bool execute()
Called at each ++ or += of the time-loop.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Macros for easy insertion into run-time selection tables.
bool read(const char *, int32_t &)
A class for handling words, derived from string.
virtual bool read(const dictionary &)
Read and set the function object if its data have changed.
bool readIfPresent(const word &, T &, bool recursive=false, bool patternMatch=true) const
Find an entry if present, and assign to T.
const Time & time() const
Return time database.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
defineTypeNameAndDebug(fvMeshFunctionObject, 0)
static autoPtr< Function1< Type > > New(const word &entryName, const dictionary &dict)
Selector.
addToRunTimeSelectionTable(functionObject, add, dictionary)