Go to the documentation of this file.
78 namespace Function1Types
87 public Function1<scalar>
101 inline scalar
linearRamp(
const scalar t)
const
115 void operator=(
const ramp&) =
delete;
131 virtual ~ramp() =
default;
140 virtual scalar
value(
const scalar t)
const = 0;
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A class for handling words, derived from Foam::string.
virtual ~ramp()=default
Destructor.
virtual void writeData(Ostream &os) const
Write in dictionary format.
Ramp function base class for the set of scalar functions starting from 0 and increasing monotonically...
const word const dictionary & dict
scalar linearRamp(const scalar t) const
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
virtual scalar value(const scalar t) const =0
Return value for time t.
ramp(const word &entryName, const dictionary &dict)
Construct from entry name and dictionary.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
scalar duration_
Duration of the ramp function.
virtual void convertTimeBase(const Time &t)
Convert time.
void writeEntries(Ostream &os) const
Write coefficient entries in dictionary format.
scalar start_
Start-time of the ramp function.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...