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