46 using namespace constant::mathematical;
51 0.5*(l2 - l1 - (
sin(
pi*l2) -
sin(
pi*l1))/
pi)/dLinearRampDt()
52 + (t2 -
min(t2, end()));
Linear ramp function starting from 0 and increasing linearRamply to 1 from start over the duration an...
virtual scalar value(const scalar t) const
Return value for time t.
dimensionedScalar cos(const dimensionedScalar &ds)
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)
dimensionedScalar sin(const dimensionedScalar &ds)
virtual scalar integral(const scalar t1, const scalar t2) const
Return the integral between times t1 and t2.