34 {
"evaluate",
"update",
"codeInclude"}
40 {word::null, word::null, word::null}
46 "codedDimensionedFieldFunctionOptions"
52 "codedDimensionedFieldFunctionTemplate.C"
58 "codedDimensionedFieldFunctionTemplate.H"
64 template<
class DimensionedFieldType>
69 DimensionedFieldType& field
104 "DimensionedFieldTypeName",
115 template<
class DimensionedFieldType>
120 DimensionedFieldType& field
128 template<
class DimensionedFieldType>
132 DimensionedFieldType& field
144 template<
class DimensionedFieldType>
148 if (!redirectFunctionPtr_.valid())
151 redirectDict.set(
"type", codeName());
153 redirectFunctionPtr_ =
161 redirectFunctionPtr_->evaluate();
165 template<
class DimensionedFieldType>
169 if (!redirectFunctionPtr_.valid())
172 redirectDict.set(
"type", codeName());
174 redirectFunctionPtr_ =
182 return redirectFunctionPtr_->update();
186 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.
static autoPtr< DimensionedFieldFunction< DimensionedFieldType > > New(const dictionary &dict, DimensionedFieldType &field)
Select null constructed.
Coded internal and patch field initialisation, evaluation and update with dimension checking.
virtual void evaluate()
Evaluate the function and set the field.
virtual void write(Ostream &os) const
Write data to dictionary stream.
Coded(const dictionary &dict, DimensionedFieldType &field)
Construct with dictionary to initialise given field.
virtual bool update()
Update the field if the function has changed and return true.
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...
Base class for coded functionObjects, fvModels, Function1, Function2.
static word codedName(const word &name)
Create a coded name from the given name.
bool updateLibrary(const dictionary &dict) const
Update library from given updated dictionary as required.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
HashTable< string > & varSubstitutions()
void write(Ostream &os) const
Write the code for restart.
Mesh consisting of general polyhedral cells.
A class for handling words, derived from string.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
String typeName(const std::type_info &info)
Return the un-mangled name given the standard type info.
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.