39 #ifndef TimeFunction1_H 40 #define TimeFunction1_H 54 Ostream& operator<<(Ostream&, const TimeFunction1<Type>&);
118 virtual Type
value(
const scalar
x)
const;
121 virtual Type
integrate(
const scalar x1,
const scalar x2)
const;
128 friend Ostream& operator<< <Type>
autoPtr< Function1< Type > > entry_
The underlying Function1.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
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.
A class for handling words, derived from Foam::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.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
const word & name() const
Return the name of the entry.
OBJstream os(runTime.globalPath()/outputName)
virtual Type value(const scalar x) const
Return value as a function of (scalar) independent variable.
virtual ~TimeFunction1()=default
Destructor.
virtual void writeData(Ostream &os) const
Write in dictionary format.
TimeFunction1(const Time &runTime, const word &name, const dictionary &dict)
Construct from entry name and dictionary.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
const word name_
Name of the data entry.
const Time & time_
Reference to the time database.