38 #ifndef DimensionedField_H
39 #define DimensionedField_H
53 template<
class Type,
class GeoMesh>
class DimensionedField;
55 template<
class Type,
class GeoMesh>
Ostream&
operator<<
61 template<
class Type,
class GeoMesh>
Ostream&
operator<<
72 template<
class Type,
class GeoMesh>
111 bool readIfPresent(
const word& fieldDictEntry =
"value");
144 const bool checkIOFlags =
true
153 const bool checkIOFlags =
true
161 const word& fieldDictEntry=
"value"
170 const word& fieldDictEntry=
"value"
203 const bool checkIOFlags =
true
212 const bool checkIOFlags =
true
220 const bool checkIOFlags =
true
300 const word& fieldDictEntry =
"value"
404 friend Ostream& operator<< <Type, GeoMesh>
410 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.
Field< Type > & primitiveFieldRef()
Return a reference to the internal field.
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.
Field< Type > Base
Type of the field from which this DimensionedField is derived.
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
USING_OLD_TIME_FIELD(DimensionedField)
Use old-time methods from the base class.
const Field< Type > & primitiveField() const
Return a const-reference to the primitive field.
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.
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.
void operator==(const tmp< DimensionedField< Type, GeoMesh >> &)
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.
Class to add into field types to provide old-time storage and retrieval.
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...