29#ifndef DimensionedFieldReuseFunctions_H
30#define DimensionedFieldReuseFunctions_H
39template<
class TypeR,
class Type1,
class GeoMesh>
49 const auto& df1 = tdf1();
66template<
class TypeR,
class GeoMesh>
78 auto& df1 = tdf1.constCast();
81 df1.dimensions().reset(dimensions);
85 const auto& df1 = tdf1();
103template<
class TypeR,
class GeoMesh>
120template<
class TypeR,
class Type1,
class Type12,
class Type2,
class GeoMesh>
131 const auto& df1 = tdf1();
148template<
class TypeR,
class Type1,
class Type12,
class GeoMesh>
161 auto& df2 = tdf2.constCast();
164 df2.dimensions().reset(dimensions);
168 const auto& df1 = tdf1();
185template<
class TypeR,
class Type2,
class GeoMesh>
198 auto& df1 = tdf1.constCast();
201 df1.dimensions().reset(dimensions);
205 const auto& df1 = tdf1();
222template<
class TypeR,
class GeoMesh>
235 auto& df1 = tdf1.constCast();
238 df1.dimensions().reset(dimensions);
241 else if (tdf2.isTmp())
243 auto& df2 = tdf2.constCast();
246 df2.dimensions().reset(dimensions);
250 const auto& df1 = tdf1();
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.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
Dimension set for the base types, which can be used to implement rigorous dimension checking for alge...
A class for managing temporary objects.
A class for handling words, derived from Foam::string.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh > > &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
static tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh > > &tdf1, const word &name, const dimensionSet &dimensions)
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< TypeR, GeoMesh > > &tdf2, const word &name, const dimensionSet &dimensions)
static tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh > > &tdf1, const tmp< DimensionedField< Type2, GeoMesh > > &tdf2, const word &name, const dimensionSet &dimensions)
static tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh > > &tdf1, const tmp< DimensionedField< TypeR, GeoMesh > > &tdf2, 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)