Go to the documentation of this file.
60 #ifndef setTimeStepFunctionObject_H
61 #define setTimeStepFunctionObject_H
77 class setTimeStepFunctionObject
145 virtual bool start();
148 virtual bool execute(
const bool forceWrite);
virtual bool enabled() const
Return the enabled flag.
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
virtual const Time & time() const
Return time database.
A class for handling words, derived from string.
virtual bool end()
Called when Time::run() determines that the time-loop exits.
virtual bool execute(const bool forceWrite)
Called at each ++ or += of the time-loop.
autoPtr< DataEntry< scalar > > timeStepPtr_
Time step.
virtual bool start()
Called at the start of the time-loop.
const Time & time_
Reference to the time database.
setTimeStepFunctionObject(const setTimeStepFunctionObject &)
Disallow default bitwise copy construct.
Switch enabled_
Switch for the execution - defaults to 'yes/on'.
TypeName("setTimeStep")
Runtime type information.
virtual void on()
Switch the function object on.
virtual bool read(const dictionary &)
Read and set the function object if its data have changed.
Mesh consisting of general polyhedral cells.
Abstract base-class for Time/database function objects.
virtual bool adjustTimeStep()
Called at the end of Time::adjustDeltaT() if adjustTime is true.
This function object overrides the calculation time step. Can only be used with solvers with adjustTi...
virtual void updateMesh(const mapPolyMesh &mpm)
Update for changes of mesh.
A list of keyword definitions, which are a keyword followed by any number of values (e....
virtual void movePoints(const polyMesh &mesh)
Update for changes of mesh.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
void operator=(const setTimeStepFunctionObject &)
Disallow default bitwise assignment.
virtual const word & name() const
Name.
virtual void off()
Switch the function object off.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
virtual bool timeSet()
Called when time was set at the end of the Time::operator++.