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