37 return max(
min((floor((t -
start_)/interval_) + 1)/steps_, 1), 0);
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
scalar start_
Start-time of the ramp function.
virtual scalar value(const scalar t) const
Return value for time t.
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.