Go to the documentation of this file.
41 #ifndef DimensionedField_H
42 #define DimensionedField_H
57 template<
class Type,
class GeoMesh>
64 template<
class Type,
class GeoMesh>
76 template<
class Type,
class GeoMesh>
113 void checkFieldSize()
const;
115 void readIfPresent(
const word& fieldDictEntry =
"value");
176 const bool checkIOFlags =
true
187 const bool checkIOFlags =
true
195 const word& fieldDictEntry =
"value"
204 const word& fieldDictEntry =
"value"
294 const word& fieldDictEntry =
"value"
396 friend Ostream& operator<< <Type, GeoMesh>
402 friend Ostream& operator<< <Type, GeoMesh>
Defines the attributes of an object for which implicit objectRegistry management is supported,...
Field< Type > FieldType
Type of the field from which this DimensionedField is derived.
void operator+=(const DimensionedField< Type, GeoMesh > &df)
void readField(const dictionary &fieldDict, const word &fieldDictEntry="value")
A class for handling words, derived from Foam::string.
virtual ~DimensionedField()=default
Destructor.
A class for managing temporary objects.
const Field< Type > & field() const
Return field.
DimensionedField(const IOobject &io, const Mesh &mesh, const dimensionSet &dims, const Field< Type > &field)
Construct from components.
void replace(const direction d, const DimensionedField< cmptType, GeoMesh > &df)
Replace a component field of the field.
dimensioned< Type > average() const
Calculate and return arithmetic average.
Dimension set for the base types.
tmp< DimensionedField< Type, GeoMesh > > clone() const
Clone.
pTraits< Type >::cmptType cmptType
Component type.
GeoMesh::Mesh Mesh
Type of mesh on which this DimensionedField is instantiated.
Generic templated field type.
const Mesh & mesh() const
Return mesh.
Field< Type >::cmptType cmptType
Component type of the elements of the field.
void operator=(const DimensionedField< Type, GeoMesh > &df)
TypeName("DimensionedField")
Runtime type information.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
void operator-=(const DimensionedField< Type, GeoMesh > &df)
Generic dimensioned Type class.
const dimensionSet & dimensions() const
Return dimensions.
tmp< DimensionedField< Type, GeoMesh > > T() const
Return the field transpose (only defined for second rank tensors)
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
const orientedType & oriented() const
Return oriented type.
dimensioned< Type > weightedAverage(const DimensionedField< scalar, GeoMesh > &weightField) const
Calculate and return weighted average.
bool writeData(Ostream &os, const word &fieldDictEntry) const
void setOriented(const bool oriented=true)
Set the oriented flag.
void operator*=(const DimensionedField< scalar, GeoMesh > &df)
tmp< DimensionedField< cmptType, GeoMesh > > component(const direction d) const
Return a component field of the field.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
void operator/=(const DimensionedField< scalar, GeoMesh > &df)
Class to determine the 'oriented' status of surface fields.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...