38 #ifndef DimensionedField_H
39 #define DimensionedField_H
52 template<
class Type,
class GeoMesh>
class DimensionedField;
54 template<
class Type,
class GeoMesh>
Ostream&
operator<<
60 template<
class Type,
class GeoMesh>
Ostream&
operator<<
71 template<
class Type,
class GeoMesh>
105 void readIfPresent(
const word& fieldDictEntry =
"value");
138 const bool checkIOFlags =
true
147 const bool checkIOFlags =
true
155 const word& fieldDictEntry=
"value"
164 const word& fieldDictEntry=
"value"
285 const word& fieldDictEntry =
"value"
380 friend Ostream& operator<< <Type, GeoMesh>
386 friend Ostream& operator<< <Type, GeoMesh>
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
void readField(const dictionary &fieldDict, const word &fieldDictEntry="value")
TypeName("DimensionedField")
Runtime type information.
tmp< DimensionedField< Type, GeoMesh > > T() const
Return the field transpose (only defined for second rank tensors)
GeoMesh::Mesh Mesh
Type of mesh on which this DimensionedField is instantiated.
void replace(const direction, const DimensionedField< cmptType, GeoMesh > &)
Replace a component field of the field.
void operator*=(const DimensionedField< scalar, GeoMesh > &)
const dimensionSet & dimensions() const
Return dimensions.
void operator+=(const DimensionedField< Type, GeoMesh > &)
void operator=(const DimensionedField< Type, GeoMesh > &)
Field< Type > FieldType
Type of the field from which this DimensionedField is derived.
void operator/=(const DimensionedField< scalar, GeoMesh > &)
bool writeData(Ostream &, const word &fieldDictEntry) const
const Mesh & mesh() const
Return mesh.
void operator-=(const DimensionedField< Type, GeoMesh > &)
Field< Type >::cmptType cmptType
Component type of the elements of the field.
tmp< DimensionedField< cmptType, GeoMesh > > component(const direction) const
Return a component field of the field.
void reset(const DimensionedField< Type, GeoMesh > &)
Reset the field values to the given field.
dimensioned< Type > average() const
Calculate and return arithmetic average.
const Field< Type > & field() const
static tmp< DimensionedField< Type, GeoMesh > > New(const word &name, const Mesh &mesh, const dimensionSet &, const Field< Type > &)
Return a temporary field constructed from name, mesh,.
tmp< DimensionedField< Type, GeoMesh > > clone() const
Clone.
dimensioned< Type > weightedAverage(const DimensionedField< scalar, GeoMesh > &) const
Calculate and return weighted average.
virtual ~DimensionedField()
Destructor.
DimensionedField(const IOobject &, const Mesh &mesh, const dimensionSet &, const Field< Type > &)
Construct from components.
Pre-declare SubField and related Field type.
pTraits< Type >::cmptType cmptType
Component type.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
const word & name() const
Return name.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of keyword definitions, which are a keyword followed by any number of values (e....
Dimension set for the base types.
Generic dimensioned Type class.
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
A class for managing temporary objects.
A class for handling words, derived from string.
A class representing the concept of 0 used to avoid unnecessary manipulations for objects that are kn...