30 template<
class Type,
class GeoMesh>
45 name +
'_' + funcName,
63 dict.subDict(funcName),
74 if (
mesh.time().completeCase())
86 template<
class Type,
class GeoMesh>
95 const Type& defaultValue
117 dict.isDict(funcName)
120 dict.subDict(funcName),
129 if (funcPtr_.valid())
133 funcPtr_->evaluate();
149 template<
class Type,
class GeoMesh>
165 funcName_(udff.funcName_),
168 udff.funcPtr_.
valid()
169 ? udff.funcPtr_->
clone(*this)
178 template<
class Type,
class GeoMesh>
193 funcName_(udff.funcName_),
196 udff.funcPtr_.
valid()
197 ? udff.funcPtr_->
clone(*this)
208 template<
class Type,
class GeoMesh>
219 template<
class Type,
class GeoMesh>
224 if (funcPtr_.valid())
231 template<
class Type,
class GeoMesh>
234 if (funcPtr_.valid())
236 return funcPtr_->update();
245 template<
class Type,
class GeoMesh>
248 if (funcPtr_.valid())
255 template<
class Type,
class GeoMesh>
262 if (udff.funcPtr_.valid())
264 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.
const GeoMesh & mesh() const
Return mesh.
Pre-declare SubField and related Field type.
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,...
Specialisation of DimensionedField which holds a slice of a given complete field in such a form that ...
void reset(const Field< Type > &iField)
Reset internalField pointer.
bool completeCase() const
Return true if this is a complete serial or parallel case.
Combined class containing a field reference, a dimensionedField wrapper providing the corresponding m...
UFunctionalDimensionedField(const word &name, const word &funcName, const GeoMesh &, const dimensionSet &dimensions, Field< Type > &, const dictionary &)
Construct from name, mesh, dimensions, field and dictionary.
virtual bool write(const bool write=true) const
Write using setting from DB.
void map(const bool evaluate)
Map and optionally evaluate.
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.
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
Dimension set for the base types.
const Time & time() const
Return the top-level database.
label size() const
Return fvMesh size.
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)
void evaluate(GeometricField< Type, GeoMesh > &result, const Function1< Type > &func, const GeometricField< Type, GeoMesh > &x)
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)