38#ifndef Foam_TimeState_H
39#define Foam_TimeState_H
86 const scalar newValue,
TimeState()
Construct a zero time state, using the current time formatting.
virtual scalar timeToUserTime(const scalar t) const
Convert the real-time (s) into user-time (e.g. CA deg).
virtual scalar userTimeToTime(const scalar theta) const
Convert the user-time (e.g. CA deg) to real-time (s).
bool outputTime() const noexcept
Deprecated(2016-05) return true if this is a write time.
scalar timeOutputValue() const
Return the current user-time value. (ie, after applying any timeToUserTime() conversion).
virtual ~TimeState()=default
Destructor.
void resetTimeState(const word &newName, const scalar newValue, const label newIndex)
Reset some of TimeState (name, value, index).
dimensionedScalar deltaT0() const
Return old time step.
label timeIndex() const noexcept
Return the current time index.
scalar deltaTValue() const noexcept
Return time step value.
dimensionedScalar deltaT() const
Return time step.
bool writeTime() const noexcept
True if this is a write interval.
scalar deltaT0Value() const noexcept
Return old time step value.
const word & timeName() const noexcept
Return the current time name.
const word & name() const noexcept
const scalar & value() const noexcept
A class for handling words, derived from Foam::string.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.