52 name_(function.
name()),
53 function_(function.
clone().ptr())
78 function_(
tf.function_, false)
101 return function_->value(time_.timeToUserTime(
x));
113 time_.userTimeToTime(1)
116 time_.timeToUserTime(x1),
117 time_.timeToUserTime(x2)
138 return os <<
tf.function_();
Run-time selectable general function of one variable.
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.
virtual ~TimeFunction1()
Destructor.
virtual Type integral(const scalar x1, const scalar x2) const
Integrate between two scalars.
virtual void write(Ostream &os) const
Write in dictionary format.
virtual Type value(const scalar x) const
Return value as a function of scalar x.
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.
A list of keyword definitions, which are a keyword followed by any number of values (e....
A class for handling words, derived from string.
autoPtr< CompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const viscosity &viscosity)
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
word name(const complex &)
Return a string representation of a complex.