mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Refactored TimeFunction1 - now possible using Function1 directly
This commit is contained in:
committed by
Mark Olesen
parent
b9b011f5ea
commit
f29eb55cee
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user