69#ifndef Function1Types_ramp_H
70#define Function1Types_ramp_H
78namespace 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;
Linear ramp function starting from 0 and increasing linearly to 1 from start over the duration and re...
Ramp function base class for the set of scalar functions starting from 0 and increasing monotonically...
scalar linearRamp(const scalar t) const
virtual void writeData(Ostream &os) const
Write in dictionary format.
scalar start_
Start-time of the ramp function.
virtual void writeEntries(Ostream &os) const
Write coefficient entries in dictionary format.
virtual ~ramp()=default
Destructor.
scalar duration_
Duration of the ramp function.
virtual scalar value(const scalar t) const =0
Return value for time t.
virtual void userTimeToTime(const Time &t)
Convert time.
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
const word const dictionary & dict
const word const dictionary const objectRegistry * obrPtr
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
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 a number of values (eg,...
Registry of regIOobjects.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.