36 #ifndef TimeFunction1_H 37 #define TimeFunction1_H 53 const TimeFunction1<Type>&
85 const word& entryName,
115 virtual Type
value(
const scalar
x)
const;
118 virtual Type
integrate(
const scalar x1,
const scalar x2)
const;
124 friend Ostream& operator<< <Type>
131 virtual void writeData(Ostream& os)
const;
A list of keyword definitions, which are a keyword followed by any number of values (e...
virtual Type integrate(const scalar x1, const scalar x2) const
Integrate between two (scalar) values.
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.
virtual Type value(const scalar x) const
Return value as a function of (scalar) independent variable.
virtual void writeData(Ostream &os) const
Write in dictionary format.
TimeFunction1(const Time &time, const word &entryName, const dictionary &dict)
Construct from time, entry name and dictionary.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
const word name_
Name of the data entry.
const Time & time_
Reference to the time database.