38 #ifndef DimensionedField_H
39 #define DimensionedField_H
54 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField>
55 class DimensionedField;
57 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField>
64 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField>
76 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField>
80 public PrimitiveField<Type>,
81 public OldTimeField<DimensionedField<Type, GeoMesh, PrimitiveField>>
95 typedef PrimitiveField<Type>
Base;
98 typedef typename PrimitiveField<Type>::cmptType
cmptType;
115 bool readIfPresent(
const word& fieldDictEntry =
"value");
125 template<
class Type2,
class GeoMesh2,
template<
class>
class PrimitiveField2>
144 const PrimitiveField<Type>&
154 const bool checkIOFlags =
true
163 const bool checkIOFlags =
true
171 const word& fieldDictEntry=
"value"
180 const word& fieldDictEntry=
"value"
196 template<
template<
class>
class PrimitiveField2>
203 template<
template<
class>
class PrimitiveField2>
217 template<
template<
class>
class PrimitiveField2>
222 const bool checkIOFlags =
true
226 template<
template<
class>
class PrimitiveField2>
232 const bool checkIOFlags =
true
240 const bool checkIOFlags =
true
244 template<
template<
class>
class PrimitiveField2>
252 template<
template<
class>
class PrimitiveField2>
277 const PrimitiveField<Type>&
299 template<
template<
class>
class PrimitiveField2>
323 const word& fieldDictEntry =
"value"
351 template<
template<
class>
class PrimitiveField2>
359 template<
template<
class>
class PrimitiveField2>
373 template<
template<
class>
class PrimitiveField2>
380 template<
template<
class>
class PrimitiveField2>
388 template<
template<
class>
class PrimitiveField2>
397 template<
template<
class>
class PrimitiveField2>
419 template<
template<
class>
class PrimitiveField2>
424 template<
template<
class>
class PrimitiveField2>
432 template<
template<
class>
class PrimitiveField2>
437 template<
template<
class>
class PrimitiveField2>
445 template<
template<
class>
class PrimitiveField2>
450 template<
template<
class>
class PrimitiveField2>
457 template<
template<
class>
class PrimitiveField2>
462 template<
template<
class>
class PrimitiveField2>
469 template<
template<
class>
class PrimitiveField2>
474 template<
template<
class>
class PrimitiveField2>
481 template<
template<
class>
class PrimitiveField2>
486 template<
template<
class>
class PrimitiveField2>
496 friend Ostream& operator<< <Type, GeoMesh, PrimitiveField>
502 friend Ostream& operator<< <Type, GeoMesh, PrimitiveField>
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")
PrimitiveField< Type >::cmptType cmptType
Component type of the elements of the field.
TypeName("DimensionedField")
Runtime type information.
void operator-=(const DimensionedField< Type, GeoMesh, PrimitiveField2 > &)
friend class DimensionedField
Declare friendship with other dimensioned fields.
void replace(const direction, const DimensionedField< cmptType, GeoMesh, PrimitiveField2 > &)
Replace a component field of the field.
GeoMesh::Mesh Mesh
Type of mesh on which this DimensionedField is instantiated.
void operator=(const DimensionedField< Type, GeoMesh, PrimitiveField > &)
void operator+=(const DimensionedField< Type, GeoMesh, PrimitiveField2 > &)
const dimensionSet & dimensions() const
Return dimensions.
tmp< DimensionedField< Type, GeoMesh, PrimitiveField > > clone() const
Clone.
void operator/=(const DimensionedField< scalar, GeoMesh, PrimitiveField2 > &)
PrimitiveField< Type > & primitiveFieldRef()
Return a reference to the internal field.
PrimitiveField< Type > Base
Type of the field from which this DimensionedField is derived.
PrimitiveField< Type > FieldType
Type of the field from which this DimensionedField is derived.
bool writeData(Ostream &, const word &fieldDictEntry) const
USING_OLD_TIME_FIELD(DimensionedField)
Use old-time methods from the base class.
const Mesh & mesh() const
Return mesh.
void reset(const DimensionedField< Type, GeoMesh, PrimitiveField2 > &)
Reset the field values to the given field.
dimensioned< Type > average() const
Calculate and return arithmetic average.
dimensioned< Type > weightedAverage(const DimensionedField< scalar, GeoMesh, PrimitiveField2 > &) const
Calculate and return weighted average.
void operator==(const DimensionedField< Type, GeoMesh, PrimitiveField2 > &)
const PrimitiveField< Type > & primitiveField() const
Return a const-reference to the primitive field.
void operator*=(const DimensionedField< scalar, GeoMesh, PrimitiveField2 > &)
tmp< DimensionedField< cmptType, GeoMesh, Field > > component(const direction) const
Return a component field of the field.
static tmp< DimensionedField< Type, GeoMesh, PrimitiveField > > New(const word &name, const Mesh &mesh, const dimensionSet &, const PrimitiveField< Type > &)
Return a temporary field constructed from name, mesh,.
tmp< DimensionedField< Type, GeoMesh, Field > > T() const
Return the field transpose (only defined for second rank tensors)
virtual ~DimensionedField()
Destructor.
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 keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
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...