36namespace functionObjects
70 scalar newDeltaT = timeStepPtr_().value(time_.timeOutputValue());
72 static label index = -1;
74 if (time_.timeIndex() != index)
78 index = time_.timeIndex();
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"
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
virtual bool read()
Re-read model coefficients if they have changed.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Abstract base-class for Time/database function objects.
This function object overrides the calculation time step.
virtual bool read(const dictionary &dict)
Read and set the function object if its data have changed.
virtual bool adjustTimeStep()
Called at the end of Time::adjustDeltaT() if adjustTime is true.
virtual bool execute()
Execute does nothing.
virtual bool write()
Write does nothing.
Virtual base class for function objects with a reference to Time.
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
errorManipArg< error, int > exit(error &err, const int errNo=1)
constexpr char nl
The newline '\n' character (0x0a)