101 template<
class Function1Type>
104 public FieldFunction1<scalar, Function1Type>
117 inline scalar
end()
const
124 inline scalar
linearRamp(
const scalar t)
const
157 virtual scalar
value(
const scalar t)
const = 0;
const word & name() const
Return the name of the entry.
Ramp function base class for the set of scalar functions starting from 0 and increasing monotonically...
scalar linearRamp(const scalar t) const
Simple linear ramp function which form the basis of many more.
void operator=(const Ramp< Function1Type > &)=delete
Disallow default bitwise assignment.
Ramp(const word &name, const unitConversions &units, const dictionary &dict)
Construct from name and dictionary.
scalar end() const
Return the end-time of the ramp function.
scalar dLinearRampDt() const
The gradient of the linear ramp within the bounds of the ramp.
virtual void write(Ostream &os, const unitConversions &units) const
Write data to dictionary stream.
const scalar start_
Start-time of the ramp function.
virtual scalar value(const scalar t) const =0
Return value for time t.
virtual ~Ramp()
Destructor.
const scalar duration_
Duration of the ramp function.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of keyword definitions, which are a keyword followed by any number of values (e....
A class for handling words, derived from string.
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)
const HashTable< unitConversion > & units()
Get the table of unit conversions.
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)