30 template<
class Type,
class GeoMesh>
44 name +
'_' + funcName,
61 dict.subDict(funcName),
72 if (
mesh.time().completeCase())
85 template<
class Type,
class GeoMesh>
93 const Type& defaultValue
100 name +
'_' + funcName,
114 dict.isDict(funcName)
117 dict.subDict(funcName),
126 if (funcPtr_.valid())
128 if (
mesh.time().completeCase())
130 funcPtr_->evaluate();
133 else if (
dict.found(funcName))
146 template<
class Type,
class GeoMesh>
160 funcName_(udff.funcName_),
163 udff.funcPtr_.
valid()
164 ? udff.funcPtr_->
clone(*this)
173 template<
class Type,
class GeoMesh>
188 funcName_(udff.funcName_),
191 udff.funcPtr_.
valid()
192 ? udff.funcPtr_->
clone(*this)
199 if (!funcPtr_.valid())
206 template<
class Type,
class GeoMesh>
213 funcName_(udff.funcName_),
216 udff.funcPtr_.
valid()
217 ? udff.funcPtr_->
clone(*this)
228 template<
class Type,
class GeoMesh>
235 if (!mapper.
direct() && funcPtr_.valid())
247 template<
class Type,
class GeoMesh>
252 if (funcPtr_.valid())
259 template<
class Type,
class GeoMesh>
262 if (funcPtr_.valid())
264 return funcPtr_->update();
273 template<
class Type,
class GeoMesh>
276 if (funcPtr_.valid())
283 template<
class Type,
class GeoMesh>
290 if (udff.funcPtr_.valid())
292 writeEntry(os, udff.funcName_, *udff.funcPtr_);
Base class for run-time selectable internal and patch field initialisation evaluation and update with...
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const dimensionSet & dimensions() const
Return dimensions.
PrimitiveField< Type > & primitiveFieldRef()
Return a reference to the internal field.
const GeoMesh & mesh() const
Return mesh.
const PrimitiveField< Type > & primitiveField() const
Return a const-reference to the primitive field.
Pre-declare SubField and related Field type.
DimensionedField with a corresponding run-time selected function to evaluate and update the field.
virtual bool write(const bool write=true) const
Write using setting from DB.
FunctionalDimensionedField(const word &name, const word &funcName, const GeoMesh &, const dimensionSet &dimensions, const dictionary &)
Construct from name, mesh, dimensions, field and dictionary.
void map(const DimensionedField< Type, GeoMesh > &df, const fieldMapper &mapper)
Map if mapping direct or evaluate if function defined.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
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.
Dimension set for the base types.
Abstract base class for field mapping.
virtual bool direct() const
Is the mapper direct?
A class for handling words, derived from string.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
bool valid(const PtrList< ModelType > &l)
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
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)
points setSize(newPointi)