Go to the documentation of this file.
36 namespace functionObjects
43 setTimeStepFunctionObject,
52 Foam::functionObjects::setTimeStepFunctionObject::setTimeStepFunctionObject
72 static label index = -1;
81 const_cast<Time&
>(
time_).setDeltaT(newDeltaT,
false);
98 if (!time_.controlDict().getOrDefault(
"adjustTimeStep",
false))
101 <<
"Need to set 'adjustTimeStep' true to allow timestep control"
scalar timeOutputValue() const
Return current time value.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A class for handling words, derived from Foam::string.
const Time & time_
Reference to the time database.
virtual bool read(const dictionary &dict)
Read and set the function object if its data have changed.
Virtual base class for function objects with a reference to Time.
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
label timeIndex() const noexcept
Return current time index.
virtual bool read(const dictionary &dict)
Read and set the function object if its data have changed.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Macros for easy insertion into run-time selection tables.
errorManipArg< error, int > exit(error &err, const int errNo=1)
virtual bool write()
Write does nothing.
addToRunTimeSelectionTable(functionObject, ObukhovLength, dictionary)
defineTypeNameAndDebug(ObukhovLength, 0)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
virtual bool execute()
Execute does nothing.
virtual bool adjustTimeStep()
Called at the end of Time::adjustDeltaT() if adjustTime is true.