29 #ifndef Foam_DimensionedFieldReuseFunctions_H 30 #define Foam_DimensionedFieldReuseFunctions_H 39 template<
class TypeR,
class Type1,
class GeoMesh>
49 const auto& df1 = tdf1();
66 template<
class TypeR,
class GeoMesh>
76 const bool initCopy =
false 81 auto& df1 = tdf1.constCast();
84 df1.dimensions().reset(dimensions);
88 const auto& df1 = tdf1();
104 tresult.ref().field() = tdf1().field();
113 template<
class TypeR,
class GeoMesh>
119 const bool initCopy =
false 132 template<
class TypeR,
class Type1,
class Type12,
class Type2,
class GeoMesh>
143 const auto& df1 = tdf1();
160 template<
class TypeR,
class Type1,
class Type12,
class GeoMesh>
173 auto& df2 = tdf2.constCast();
176 df2.dimensions().reset(dimensions);
180 const auto& df1 = tdf1();
197 template<
class TypeR,
class Type2,
class GeoMesh>
210 auto& df1 = tdf1.constCast();
213 df1.dimensions().reset(dimensions);
217 const auto& df1 = tdf1();
234 template<
class TypeR,
class GeoMesh>
247 auto& df1 = tdf1.constCast();
250 df1.dimensions().reset(dimensions);
255 auto& df2 = tdf2.constCast();
258 df2.dimensions().reset(dimensions);
262 const auto& df1 = tdf1();
static tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< Type1, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
static tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< Type1, GeoMesh >> &tdf1, const tmp< DimensionedField< Type2, GeoMesh >> &tdf2, const word &name, const dimensionSet &dimensions)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
Dimension set for the base types, which can be used to implement rigorous dimension checking for alge...
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
A class for handling words, derived from Foam::string.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Generic mesh wrapper used by volMesh, surfaceMesh, pointMesh etc.
A class for managing temporary objects.
Defines the attributes of an object for which implicit objectRegistry management is supported...