72#ifndef functionObjects_setTimeStepFunctionObject_H
73#define functionObjects_setTimeStepFunctionObject_H
82namespace functionObjects
89class 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.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
const word & name() const noexcept
Return the name of this functionObject.
This function object overrides the calculation time step.
TypeName("setTimeStep")
Runtime type information.
virtual ~setTimeStepFunctionObject()=default
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 TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.