38 #ifndef GeometricField_H 39 #define GeometricField_H 54 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
57 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
61 const GeometricField<Type, PatchField, GeoMesh>&
64 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
68 const tmp<GeometricField<Type, PatchField, GeoMesh>>&
76 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
79 public DimensionedField<Type, GeoMesh>
87 bool readOldTimeIfPresent();
101 typedef PatchField<Type>
Patch;
113 mutable label timeIndex_;
122 Boundary boundaryField_;
201 const PtrList<PatchField<Type>>&
211 const PtrList<PatchField<Type>>&
304 const PtrList<PatchField<Type>>&
380 inline const Internal&
v()
const;
547 friend Ostream& operator<< <Type, PatchField, GeoMesh>
553 friend Ostream& operator<< <Type, PatchField, GeoMesh>
561 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
void replace(const direction, const GeometricField< cmptType, PatchField, GeoMesh > &)
const Internal & operator()() const
Return a const-reference to the dimensioned internal field.
const GeometricField< Type, PatchField, GeoMesh > & oldTime() const
Return old time field.
void operator=(const GeometricField< Type, PatchField, GeoMesh > &)
A list of keyword definitions, which are a keyword followed by any number of values (e...
void clearOldTimes()
Delete old time and previous iteration fields.
const Boundary & boundaryField() const
Return const-reference to the boundary field.
bool writeData(Ostream &) const
WriteData member function required by regIOobject.
Field< Type >::cmptType cmptType
pTraits< Type >::cmptType cmptType
Component type.
volScalarField alpha(IOobject("alpha", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
static tmp< GeometricField< Type, PatchField, GeoMesh > > New(const word &name, const Internal &, const PtrList< PatchField< Type >> &)
Return a temporary field constructed from name,.
void operator/=(const GeometricField< scalar, PatchField, GeoMesh > &)
tmp< GeometricField< cmptType, PatchField, GeoMesh > > component(const direction) const
Return a component of the field.
GeoMesh::Mesh Mesh
Type of mesh on which this GeometricField is instantiated.
TypeName("GeometricField")
Runtime type information.
const Internal::FieldType & primitiveField() const
Return a const-reference to the internal field.
Generic GeometricField class.
GeometricBoundaryField< Type, PatchField, GeoMesh > Boundary
Type of the boundary field.
Generic dimensioned Type class.
label nOldTimes() const
Return the number of old time fields stored.
void maxMin(const dimensioned< Type > &minDt, const dimensioned< Type > &maxDt)
DimensionedField< Type, GeoMesh > Internal
Type of the internal field from which this GeometricField is derived.
word select(bool final) const
Select the final iteration parameters if `final' is true.
const Internal & internalField() const
Return a const-reference to the dimensioned internal field.
bool isOldTime() const
Return whether or not this is an old-time field.
bool needReference() const
Does the field need a reference level for solution.
Dimension set for the base types.
const Internal & v() const
Return a const-reference to the dimensioned internal field.
void storeOldTimes() const
Store the old-time fields.
void reset(const tmp< GeometricField< Type, PatchField, GeoMesh >> &)
Reset the field contents to the given field.
Pre-declare SubField and related Field type.
A class for handling words, derived from string.
void storeOldTime() const
Store the old-time field.
void operator*=(const GeometricField< scalar, PatchField, GeoMesh > &)
void operator+=(const GeometricField< Type, PatchField, GeoMesh > &)
void writeMinMax(Ostream &os) const
Helper function to write the min and max to an Ostream.
void min(const dimensioned< Type > &)
GeometricField(const IOobject &, const Mesh &, const dimensionSet &, const word &patchFieldType=PatchField< Type >::calculatedType())
Constructor given IOobject, mesh, dimensions and patch field type.
tmp< GeometricField< Type, PatchField, GeoMesh > > T() const
Return transpose (only if it is a tensor field)
Internal::FieldType & primitiveFieldRef()
Return a reference to the internal field.
void operator-=(const GeometricField< Type, PatchField, GeoMesh > &)
const GeometricField< Type, PatchField, GeoMesh > & prevIter() const
Return previous iteration field.
virtual ~GeometricField()
Destructor.
Generic GeometricBoundaryField class.
label timeIndex() const
Return the time index of the field.
Internal & ref()
Return a reference to the dimensioned internal field.
static const GeometricField< Type, PatchField, GeoMesh > & null()
Return a null geometric field.
List< word > wordList
A List of words.
void operator==(const tmp< GeometricField< Type, PatchField, GeoMesh >> &)
tmp< GeometricField< Type, PatchField, GeoMesh > > clone() const
Clone.
Boundary & boundaryFieldRef()
Return a reference to the boundary field.
PatchField< Type > Patch
Type of the patch field of which the Boundary is composed.
tmp< GeometricField< Type, PatchField, GeoMesh > > cloneUnSliced() const
Clone un-sliced.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
void max(const dimensioned< Type > &)
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
void correctBoundaryConditions()
Correct boundary field.
A class representing the concept of 0 used to avoid unnecessary manipulations for objects that are kn...
void storePrevIter() const
Store the field as the previous iteration value.
Generic mesh wrapper used by volMesh, surfaceMesh, pointMesh etc.
A class for managing temporary objects.
word patchFieldType(const PatchField &pf)
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
List of coupled interface fields to be used in coupling.
void relax()
Relax field (for steady-state solution).