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"
416 #include "DimensionedFieldI.H"
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 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, which can be used to implement rigorous dimension checking for alge...
friend Ostream & operator(Ostream &os, const DimensionedField< Type, GeoMesh > &df)
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 setOriented(const bool oriented=true) noexcept
Set the oriented flag.
TypeName("DimensionedField")
Runtime type information.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
Generic dimensioned Type class.
Generic mesh wrapper used by volMesh, surfaceMesh, pointMesh etc.
const orientedType & oriented() const noexcept
Return oriented type.
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...
dimensioned< Type > weightedAverage(const DimensionedField< scalar, GeoMesh > &weightField) const
Calculate and return weighted average.
bool writeData(Ostream &os, const word &fieldDictEntry) const
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,...
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...