75 namespace Function1Types
84 public Function1<scalar>
100 return max(
min((t - start_)/duration_, 1), 0);
131 virtual scalar
value(
const scalar t)
const = 0;
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 any number of values (e...
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
void operator=(const ramp &)=delete
Disallow default bitwise assignment.
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.
virtual scalar value(const scalar t) const =0
Return value for time t.
A class for handling words, derived from string.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
ramp(const word &entryName, const dictionary &dict)
Construct from entry name and dictionary.
virtual ~ramp()
Destructor.
scalar duration_
Duration of the ramp function.