26 #ifndef GeometricFieldReuseFunctions_H 27 #define GeometricFieldReuseFunctions_H 39 template<
class>
class PatchField,
57 && !
isA<
typename PatchField<Type>::Calculated>(gbf[
patchi])
61 <<
"Attempt to reuse temporary with non-reusable BC " 78 template<
class TypeR,
template<
class>
class PatchField,
class GeoMesh>
84 const bool initRet =
false 110 rtgf.
ref() == tgf1();
122 template<
class>
class PatchField,
148 template<
class TypeR,
template<
class>
class PatchField,
class GeoMesh>
188 template<
class>
class PatchField,
220 template<
class>
class PatchField,
224 <TypeR, Type1, Type12, TypeR, PatchField,
GeoMesh>
263 template<
class>
class PatchField,
300 template<
class TypeR,
template<
class>
class PatchField,
class GeoMesh>
bool isA(const Type &t)
Check if a dynamic_cast to typeid is possible.
#define forAll(list, i)
Loop across all elements in list.
const Boundary & boundaryField() const
Return const-reference to the boundary field.
T & ref() const
Return non-const reference or generate a fatal error.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Generic GeometricField class.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
static tmp< GeometricField< Type, PatchField, GeoMesh > > New(const word &name, const Mesh &, const dimensionSet &, const word &patchFieldType=PatchField< Type >::calculatedType())
Return a temporary field constructed from name, mesh, dimensionSet.
static bool constraintType(const word &pt)
Return true if the given type is a constraint type.
const dimensionSet & dimensions() const
Return dimensions.
Dimension set for the base types.
A class for handling words, derived from string.
static tmp< GeometricField< TypeR, PatchField, GeoMesh > > New(const tmp< GeometricField< Type1, PatchField, GeoMesh >> &tgf1, const word &name, const dimensionSet &dimensions)
const Mesh & mesh() const
Return mesh.
bool reusable(const tmp< GeometricField< Type, PatchField, GeoMesh >> &tgf)
virtual void rename(const word &newName)
Rename.
void reset(const dimensionSet &)
#define WarningInFunction
Report a warning using Foam::Warning.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
Generic mesh wrapper used by volMesh, surfaceMesh, pointMesh etc.
A class for managing temporary objects.