37 template<
class Type,
class GeoMesh>
65 primitiveFieldPtr_(nullptr)
70 new Field<Type>(tField.ref().primitiveFieldRef(),
true);
94 template<
class Type,
class GeoMesh>
99 tmp<DimensionedField<Type, GeoMesh, SubField>>
114 reinterpret_cast<const DimensionedField<Type, GeoMesh, SubField>&
>
122 template<
class Type,
class GeoMesh>
126 return tmp<DimensionedField<Type, GeoMesh, SubField>>(
f);
130 template<
class Type,
class GeoMesh>
135 tmp<DimensionedField<Type, GeoMesh, SubField>>
137 new DimensionedFieldToDimensionedSubField<Type, GeoMesh>(
tf),
143 template<
class Type,
class GeoMesh>
147 return tmp<DimensionedField<Type, GeoMesh, SubField>>(
tf,
true);
151 template<
class Type,
class GeoMesh,
class ... Args>
DimensionedFieldToDimensionedSubField(const tmp< DimensionedField< Type, GeoMesh, Field >> &tField)
Construct from a temporary field.
virtual ~DimensionedFieldToDimensionedSubField()
Destructor.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
static const DimensionedField< Type, GeoMesh, SubField > & null()
Return a null DimensionedField.
const dimensionSet & dimensions() const
Return dimensions.
const Mesh & mesh() const
Return mesh.
Pre-declare SubField and related Field type.
Generic mesh wrapper used by volMesh, surfaceMesh, pointMesh etc.
Pre-declare related SubField type.
void shallowCopy(const UList< Type > &)
Copy the pointer held by the given UList.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A class for managing temporary objects.
autoPtr< CompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const viscosity &viscosity)
tmp< DimensionedField< Type, GeoMesh, SubField > > toSubField(const DimensionedField< Type, GeoMesh, Field > &)
Return a temporary sub-field from a reference to a field.
Foam::argList args(argc, argv)
Functions to cast/convert dimensioned field references and temporaries based on a primitive field to ...