58 #ifndef FieldFunction_DimensionedFieldFunction_H
59 #define FieldFunction_DimensionedFieldFunction_H
68 namespace DimensionedFieldFunctions
75 template<
class DimensionedFieldType>
83 const word fieldName_;
104 DimensionedFieldType& field
111 DimensionedFieldType& field
116 clone(DimensionedFieldType& field)
const;
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.
Field function which looks up another field and uses it as the argument to evaluate a given Foam::Fun...
virtual void evaluate()
Evaluate the function and set the field.
virtual void write(Ostream &os) const
Write data to dictionary stream.
virtual bool update()
Update the field for the current time.
FieldFunction(const dictionary &dict, DimensionedFieldType &field)
Construct with dictionary to initialise given field.
virtual ~FieldFunction()
Destructor.
TypeName("fieldFunction")
Runtime type information.
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.
A class for handling words, derived from string.