Go to the documentation of this file.
44 entry_->convertTimeBase(t);
69 entry_.reset(tde.
entry_->clone().ptr());
95 entry_->convertTimeBase(time_);
102 return entry_->name();
109 return entry_->value(
x);
120 return entry_->integrate(x1, x2);
133 return de.entry_->operator<<(os, de);
140 entry_->writeData(os);
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A class for handling words, derived from Foam::string.
TimeFunction1(const Time &t, const word &name, const dictionary &dict)
Construct from entry name.
Light wrapper around Function1 to provide a mechanism to update time-based entries.
const word name_
Name of the data entry.
virtual Type integrate(const scalar x1, const scalar x2) const
Integrate between two (scalar) values.
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
virtual Type value(const scalar x) const
Return value as a function of (scalar) independent variable.
virtual ~TimeFunction1()
Destructor.
word name(const complex &c)
Return string representation of complex.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
const Time & time_
Reference to the time database.
void reset(const dictionary &dict)
Reset entry by re-reading from dictionary.
const word & name() const
Return the name of the entry.
virtual void writeData(Ostream &os) const
Write in dictionary format.
autoPtr< Function1< Type > > entry_
The underlying Function1.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...