31 template<
class DimensionedFieldType>
36 DimensionedFieldType& field
45 field.
time().userUnits(),
53 template<
class DimensionedFieldType>
58 DimensionedFieldType& field
62 funcPtr_(dff.funcPtr_, false)
66 template<
class DimensionedFieldType>
70 DimensionedFieldType& field
82 template<
class DimensionedFieldType>
86 this->field_.primitiveFieldRef() =
87 funcPtr_->value(this->field_.time().value());
91 template<
class DimensionedFieldType>
100 template<
class DimensionedFieldType>
Base class for run-time selectable internal and patch field initialisation evaluation and update with...
virtual autoPtr< DimensionedFieldFunction< DimensionedFieldType > > clone() const
Construct and return a clone for the specified field.
Time dependent internal and patch field initialisation and update function.
virtual void evaluate()
Evaluate the function and set the field.
virtual void write(Ostream &os) const
Write data to dictionary stream.
TimeFunction(const dictionary &dict, DimensionedFieldType &field)
Construct with dictionary to initialise given field.
virtual bool update()
Update the field for the current time.
Run-time selectable general function of one variable.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
const dimensionSet & dimLength
void evaluate(GeometricField< Type, GeoMesh > &result, const Function1< Type > &func, const GeometricField< Type, GeoMesh > &x)
tmp< DimensionedField< TypeR, GeoMesh, Field > > New(const tmp< DimensionedField< TypeR, GeoMesh, Field >> &tdf1, const word &name, const dimensionSet &dimensions)
void writeEntry(Ostream &os, const word &key, const DimensionedFieldFunction< DimensionedFieldType > &f)