Go to the documentation of this file.
72 #ifndef functionObjects_setTimeStepFunctionObject_H
73 #define functionObjects_setTimeStepFunctionObject_H
82 namespace functionObjects
89 class setTimeStepFunctionObject
91 public functionObjects::timeFunctionObject
96 autoPtr<Function1<scalar>> timeStepPtr_;
102 setTimeStepFunctionObject(
const setTimeStepFunctionObject&) =
delete;
105 void operator=(
const setTimeStepFunctionObject&) =
delete;
117 setTimeStepFunctionObject
121 const dictionary&
dict
141 virtual bool write();
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A class for handling words, derived from Foam::string.
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 base class for function objects with a reference to Time.
TypeName("setTimeStep")
Runtime type information.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
virtual bool write()
Write does nothing.
const word & name() const noexcept
Return the name of this functionObject.
virtual ~setTimeStepFunctionObject()=default
virtual bool execute()
Execute does nothing.
virtual bool adjustTimeStep()
Called at the end of Time::adjustDeltaT() if adjustTime is true.