ENH: Refactored TimeFunction1 - now possible using Function1 directly

This commit is contained in:
Andrew Heather
2021-10-13 21:30:46 +01:00
committed by Mark Olesen
parent b9b011f5ea
commit f29eb55cee
9 changed files with 27 additions and 6 deletions

View File

@ -34,6 +34,11 @@ void Foam::Function1Types::ramp::read(const dictionary& coeffs)
{
start_ = coeffs.getOrDefault<scalar>("start", 0);
coeffs.readEntry("duration", duration_);
if (isTime())
{
convertTimeBase(time());
}
}