88 return function_->value(time_.userTimeToTime(x));
100 time_.timeToUserTimeRatio()
103 time_.userTimeToTime(x1),
104 time_.userTimeToTime(x2)
Run-time selectable general function of one variable.
A list of keyword definitions, which are a keyword followed by any number of values (e...
TimeFunction1(const Time &time, const word &name, const dictionary &dict)
Construct from time, name and dictionary.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
virtual ~TimeFunction1()
Destructor.
A class for handling words, derived from string.
Light wrapper around Function1 to provide a mechanism to update time-based entries.
void reset(const dictionary &dict)
Reset entry by re-reading from dictionary.
autoPtr< Function1< Type > > function_
The function.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
virtual Type value(const scalar x) const
Return value as a function of scalar x.
virtual Type integral(const scalar x1, const scalar x2) const
Integrate between two scalars.
virtual void write(Ostream &os) const
Write in dictionary format.
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
const word name_
Name of the data entry.
const Time & time_
Reference to the time database.