41#ifndef Foam_DimensionedField_H
42#define Foam_DimensionedField_H
55template<
class Type,
class GeoMesh>
class DimensionedField;
57template<
class Type,
class GeoMesh>
64template<
class Type,
class GeoMesh>
76template<
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"
350 const word& fieldDictEntry =
"value"
472#include "DimensionedFieldI.H"
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
tmp< DimensionedField< Type, GeoMesh > > T() const
Return the field transpose (only defined for second rank tensors)
tmp< DimensionedField< Type, GeoMesh > > clone() const
Clone.
void readField(const dictionary &fieldDict, const word &fieldDictEntry="value")
TypeName("DimensionedField")
Runtime type information.
GeoMesh::Mesh Mesh
Type of mesh on which this DimensionedField is instantiated.
const dimensionSet & dimensions() const
Return dimensions.
static const DimensionedField< Type, GeoMesh > & null()
Return a NullObjectRef DimensionedField.
dimensioned< Type > weightedAverage(const DimensionedField< scalar, GeoMesh > &weightField) const
Calculate and return weighted average.
Field< Type > FieldType
Type of the field from which this DimensionedField is derived.
tmp< DimensionedField< cmptType, GeoMesh > > component(const direction d) const
Return a component field of the field.
void replace(const direction d, const DimensionedField< cmptType, GeoMesh > &df)
Replace a component field of the field.
bool writeData(Ostream &os, const word &fieldDictEntry) const
dimensioned< Type > average() const
Calculate and return arithmetic average.
static tmp< DimensionedField< Type, GeoMesh > > New(const word &name, const Mesh &mesh, const dimensionSet &ds, const Field< Type > &iField)
virtual ~DimensionedField()=default
Destructor.
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.
friend Ostream & operator(Ostream &os, const DimensionedField< Type, GeoMesh > &df)
const Field< Type > & field() const
Return field.
const orientedType & oriented() const noexcept
Return oriented type.
Generic templated field type.
Generic mesh wrapper used by volMesh, surfaceMesh, pointMesh etc.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
const word & name() const noexcept
Return the object name.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
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 a number of values (eg,...
Dimension set for the base types, which can be used to implement rigorous dimension checking for alge...
Generic dimensioned Type class.
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
Class to determine the 'oriented' status of surface fields.
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 Foam::string.
OBJstream os(runTime.globalPath()/outputName)
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, false)
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.