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" Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
defineTypeNameAndDebug(ObukhovLength, 0)
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by a number of values (eg...
virtual bool adjustTimeStep()
Called at the end of Time::adjustDeltaT() if adjustTime is true.
constexpr char nl
The newline '\n' character (0x0a)
virtual bool write()
Write does nothing.
virtual bool execute()
Execute does nothing.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Macros for easy insertion into run-time selection tables.
virtual bool read(const dictionary &dict)
Read and set the function object if its data have changed.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
A class for handling words, derived from Foam::string.
label timeIndex() const noexcept
Return the current time index.
addToRunTimeSelectionTable(functionObject, ObukhovLength, dictionary)
scalar timeOutputValue() const
Return the current user-time value. (ie, after applying any timeToUserTime() conversion) ...
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
virtual bool read(const dictionary &dict)
Read and set the function object if its data have changed.
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...
const Time & time_
Reference to the time database.