31 template<
class DimensionedFieldType>
36 DimensionedFieldType& field
54 template<
class DimensionedFieldType>
59 DimensionedFieldType& field
63 funcPtr_(dff.funcPtr_, false),
64 direction_(dff.direction_)
68 template<
class DimensionedFieldType>
72 DimensionedFieldType& field
84 template<
class DimensionedFieldType>
88 this->field_.primitiveFieldRef() =
89 funcPtr_->value(direction_ & this->field_.mesh().C());
93 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.
Distance function internal and patch field initialisation function.
DistanceFunction(const dictionary &dict, DimensionedFieldType &field)
Construct with dictionary to initialise given field.
virtual void evaluate()
Evaluate the function and set the field.
virtual void write(Ostream &os) const
Write data to dictionary stream.
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 unitSet & lookup(const word &unitName)
Lookup and return the named unit from the table.
const dimensionSet & dimLength
dimensionSet normalised(const dimensionSet &)
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)