69 #ifndef Function1Types_ramp_H 70 #define Function1Types_ramp_H 78 namespace Function1Types
87 public Function1<scalar>
101 inline scalar
linearRamp(
const scalar t)
const 115 void operator=(
const ramp&) =
delete;
132 virtual ~ramp() =
default;
141 virtual scalar
value(
const scalar t)
const = 0;
virtual void userTimeToTime(const Time &t)
Convert time.
const word const dictionary & dict
virtual void writeData(Ostream &os) const
Write in dictionary format.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
ramp(const word &entryName, const dictionary &dict, const objectRegistry *obrPtr=nullptr)
Construct from entry name, dictionary and optional registry.
Ramp function base class for the set of scalar functions starting from 0 and increasing monotonically...
scalar start_
Start-time of the ramp function.
scalar linearRamp(const scalar t) const
Simple linear ramp function that forms the basis of many more complex ramp functions.
virtual scalar value(const scalar t) const =0
Return value for time t.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
virtual void writeEntries(Ostream &os) const
Write coefficient entries in dictionary format.
A class for handling words, derived from Foam::string.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
const word const dictionary const objectRegistry * obrPtr
Represents 0/1 range or concept. Used for tagged dispatch or clamping.
Registry of regIOobjects.
virtual ~ramp()=default
Destructor.
scalar duration_
Duration of the ramp function.
dimensionSet clamp(const dimensionSet &a, const dimensionSet &range)