Go to the documentation of this file.
29 #ifndef GeometricFieldReuseFunctions_H
30 #define GeometricFieldReuseFunctions_H
47 template<
class>
class PatchField,
61 && !
isA<
typename PatchField<Type>::Calculated>(
p)
65 <<
"Attempt to reuse temporary with non-reusable BC "
84 template<
class>
class PatchField,
96 const auto& gf1 = tgf1();
113 template<
class TypeR,
template<
class>
class PatchField,
class GeoMesh>
123 const bool initCopy =
false
128 auto& gf1 = tgf1.constCast();
131 gf1.dimensions().reset(dimensions);
135 const auto& gf1 = tgf1();
160 template<
class TypeR,
template<
class>
class PatchField,
class GeoMesh>
163 GeometricField<TypeR, PatchField, GeoMesh>
169 const bool initCopy =
false
188 template<
class>
class PatchField,
201 const auto& gf1 = tgf1();
223 template<
class>
class PatchField,
228 TypeR, Type1, Type12, TypeR, PatchField,
GeoMesh
241 auto& gf2 = tgf2.constCast();
244 gf2.dimensions().reset(dimensions);
248 const auto& gf1 = tgf1();
269 template<
class>
class PatchField,
274 TypeR, TypeR, TypeR, Type2, PatchField,
GeoMesh
287 auto& gf1 = tgf1.constCast();
290 gf1.dimensions().reset(dimensions);
294 const auto& gf1 = tgf1();
311 template<
class TypeR,
template<
class>
class PatchField,
class GeoMesh>
314 TypeR, TypeR, TypeR, TypeR, PatchField,
GeoMesh
327 auto& gf1 = tgf1.constCast();
330 gf1.dimensions().reset(dimensions);
335 auto& gf2 = tgf2.constCast();
338 gf2.dimensions().reset(dimensions);
342 const auto& gf1 = tgf1();
Defines the attributes of an object for which implicit objectRegistry management is supported,...
A class for handling words, derived from Foam::string.
A class for managing temporary objects.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static tmp< GeometricField< TypeR, PatchField, GeoMesh > > New(const tmp< GeometricField< Type1, PatchField, GeoMesh >> &tgf1, const word &name, const dimensionSet &dimensions)
Dimension set for the base types.
static tmp< GeometricField< TypeR, PatchField, GeoMesh > > New(const tmp< GeometricField< Type1, PatchField, GeoMesh >> &tgf1, const tmp< GeometricField< Type2, PatchField, GeoMesh >> &tgf2, const word &name, const dimensionSet &dimensions)
word name(const complex &c)
Return string representation of complex.
static bool constraintType(const word &pt)
Return true if the given type is a constraint type.
Generic mesh wrapper used by volMesh, surfaceMesh, pointMesh etc.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
const TargetType * isA(const Type &t)
Check if dynamic_cast to TargetType is possible.
bool reusable(const tmp< GeometricField< Type, PatchField, GeoMesh >> &tgf)
Generic GeometricField class.
#define WarningInFunction
Report a warning using Foam::Warning.
const Boundary & boundaryField() const
Return const-reference to the boundary field.