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>
187 template<
class>
class PatchField,
218 template<
class>
class PatchField,
260 template<
class>
class PatchField,
297 template<
class TypeR,
template<
class>
class PatchField,
class GeoMesh>
#define forAll(list, i)
Loop across all elements in list.
const dimensionSet & dimensions() const
Return dimensions.
const Mesh & mesh() const
Return mesh.
Generic mesh wrapper used by volMesh, surfaceMesh, pointMesh etc.
Generic GeometricField class.
const Boundary & boundaryField() const
Return const-reference to the boundary field.
static tmp< GeometricField< Type, PatchField, GeoMesh > > New(const word &name, const Internal &, const PtrList< PatchField< Type >> &, const HashPtrTable< Source > &=HashPtrTable< Source >())
Return a temporary field constructed from name,.
Dimension set for the base types.
void reset(const dimensionSet &)
static bool constraintType(const word &pt)
Return true if the given type is a constraint type.
virtual void rename(const word &newName)
Rename.
static tmp< GeometricField< TypeR, PatchField, GeoMesh > > New(const tmp< GeometricField< TypeR, PatchField, GeoMesh >> &tgf1, const word &name, const dimensionSet &dimensions)
static tmp< GeometricField< TypeR, PatchField, GeoMesh > > New(const tmp< GeometricField< Type1, PatchField, GeoMesh >> &tgf1, const word &name, const dimensionSet &dimensions)
static tmp< GeometricField< TypeR, PatchField, GeoMesh > > New(const tmp< GeometricField< Type1, PatchField, GeoMesh >> &tgf1, const tmp< GeometricField< TypeR, PatchField, GeoMesh >> &tgf2, const word &name, const dimensionSet &dimensions)
static tmp< GeometricField< TypeR, PatchField, GeoMesh > > New(const tmp< GeometricField< TypeR, PatchField, GeoMesh >> &tgf1, const tmp< GeometricField< Type2, PatchField, GeoMesh >> &tgf2, const word &name, const dimensionSet &dimensions)
static tmp< GeometricField< TypeR, PatchField, GeoMesh > > New(const tmp< GeometricField< TypeR, PatchField, GeoMesh >> &tgf1, const tmp< GeometricField< TypeR, PatchField, GeoMesh >> &tgf2, const word &name, const dimensionSet &dimensions)
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)
A class for managing temporary objects.
T & ref() const
Return non-const reference or generate a fatal error.
A class for handling words, derived from string.
#define WarningInFunction
Report a warning using Foam::Warning.
const HashTable< dimensionSet > & dimensions()
Get the table of dimension sets.
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const bool)
Return a word representation of a bool.
bool reusable(const tmp< GeometricField< Type, PatchField, GeoMesh >> &tgf)
bool isA(const Type &t)
Check if a dynamic_cast to typeid is possible.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.