33 namespace functionObjects
91 time_.controlDict().lookupOrDefault(
"adjustTimeStep",
false);
95 const_cast<Time&
>(time_).
setDeltaT(timeStepPtr_().value(time_.value()));
Macros for easy insertion into run-time selection tables.
static autoPtr< Function1< Type > > New(const word &name, const Function1s::unitConversions &units, const dictionary &dict)
Select from dictionary.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Abstract base-class for Time/database functionObjects.
Updates the time step as a Function1 of time.
setTimeStepFunctionObject(const word &name, const Time &runTime, const dictionary &dict)
Construct from components.
virtual ~setTimeStepFunctionObject()
virtual bool execute()
Reset the timeStep from the Function1 of time.
virtual bool write()
Do nothing.
virtual bool read(const dictionary &)
Read and reset the timeStep Function1.
A class for handling words, derived from string.
defineTypeNameAndDebug(adjustTimeStepToCombustion, 0)
addToRunTimeSelectionTable(functionObject, adjustTimeStepToCombustion, dictionary)
void setDeltaT(Time &runTime, const PtrList< solver > &solvers)
Set the initial time-step according to the solver maxDeltaT.
word name(const bool)
Return a word representation of a bool.