Go to the documentation of this file.
42 #ifndef GeometricField_H
43 #define GeometricField_H
60 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
63 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
67 const GeometricField<Type, PatchField, GeoMesh>&
70 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
74 const tmp<GeometricField<Type, PatchField, GeoMesh>>&
82 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
85 public DimensionedField<Type, GeoMesh>
93 bool readOldTimeIfPresent();
112 typedef PatchField<Type>
Patch;
139 const word& patchFieldType
161 const PtrList<PatchField<Type>>&
257 mutable label timeIndex_;
304 const word& patchFieldType = PatchField<Type>::calculatedType()
327 const word& patchFieldType = PatchField<Type>::calculatedType()
347 const PtrList<PatchField<Type>>& ptfl
357 const word& patchFieldType = PatchField<Type>::calculatedType()
367 const word& patchFieldType = PatchField<Type>::calculatedType()
377 const PtrList<PatchField<Type>>& ptfl
385 const bool readOldTime =
true
441 const word& patchFieldType
476 const word& patchFieldType = PatchField<Type>::calculatedType()
489 const word& patchFieldType = PatchField<Type>::calculatedType()
502 const word& patchFieldType = PatchField<Type>::calculatedType()
514 const word& patchFieldType = PatchField<Type>::calculatedType()
581 const bool updateAccessTime =
true
742 friend Ostream& operator<< <Type, PatchField, GeoMesh>
748 friend Ostream& operator<< <Type, PatchField, GeoMesh>
756 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
Defines the attributes of an object for which implicit objectRegistry management is supported,...
tmp< GeometricField< cmptType, PatchField, GeoMesh > > component(const direction) const
Return a component of the field.
void replace(const direction d, const GeometricField< cmptType, PatchField, GeoMesh > &gcf)
Replace specified field component with content from another field.
A class for handling words, derived from Foam::string.
A field of fields is a PtrList of fields with reference counting.
bool writeData(Ostream &) const
WriteData member function required by regIOobject.
A class for managing temporary objects.
Boundary(const BoundaryMesh &bmesh)
Construct from a BoundaryMesh.
void operator/=(const GeometricField< scalar, PatchField, GeoMesh > &)
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
#define FOAM_DEPRECATED_FOR(since, replacement)
const Internal::FieldType & primitiveField() const
Return a const-reference to the internal field.
void writeEntries(Ostream &os) const
Write dictionary entries of the individual boundary fields.
TypeName("GeometricField")
Runtime type information.
void operator=(const Boundary &)
Assignment to BoundaryField<Type, PatchField, BoundaryMesh>
const GeometricField< Type, PatchField, GeoMesh > & oldTime() const
Return old time field.
GeometricField(const IOobject &io, const Mesh &mesh, const dimensionSet &ds, const word &patchFieldType=PatchField< Type >::calculatedType())
Construct given IOobject, mesh, dimensions and patch type.
const Internal & v() const
GeoMesh::BoundaryMesh BoundaryMesh
Type of boundary mesh on which this.
Dimension set for the base types.
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.
void evaluate()
Evaluate boundary conditions.
void operator=(const GeometricField< Type, PatchField, GeoMesh > &)
Field< Type >::cmptType cmptType
void min(const dimensioned< Type > &dt)
Use the minimum of the field and specified value.
void updateCoeffs()
Update the boundary condition coefficients.
bool needReference() const
Does the field need a reference level for solution.
label nOldTimes() const
Return the number of old time fields stored.
static tmp< GeometricField< Type, PatchField, GeoMesh > > New(const word &name, const Mesh &mesh, const dimensionSet &ds, const word &patchFieldType=PatchField< Type >::calculatedType())
Return tmp field from name, mesh, dimensions and patch type.
void maxMin(const dimensioned< Type > &minVal, const dimensioned< Type > &maxVal) FOAM_DEPRECATED_FOR(2019-01
Deprecated(2019-01) identical to clip()
List< word > wordList
A List of words.
LduInterfaceFieldPtrsList< Type > interfaces() const
Return a list of pointers for each patch field with only those.
void storeOldTimes() const
Store the old-time fields.
GeoMesh::Mesh Mesh
Type of mesh on which this GeometricField is instantiated.
pTraits< Type >::cmptType cmptType
Component type.
void negate()
Negate the field inplace.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Generic templated field type.
void readField(const Internal &field, const dictionary &dict)
Read the boundary field.
void operator==(const Boundary &)
Forced assignment to.
void operator+=(const GeometricField< Type, PatchField, GeoMesh > &)
void writeMinMax(Ostream &os) const
Helper function to write the min and max to an Ostream.
word name(const complex &c)
Return string representation of complex.
DimensionedField< Type, GeoMesh > Internal
Type of the internal field from which this GeometricField is derived.
List of coupled interface fields to be used in coupling.
const GeometricField< Type, PatchField, GeoMesh > & prevIter() const
Return previous iteration field.
wordList types() const
Return a list of the patch types.
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
MESH::BoundaryMesh BoundaryMesh
void storeOldTime() const
Store the old-time field.
void operator*=(const GeometricField< scalar, PatchField, GeoMesh > &)
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
void operator-=(const GeometricField< Type, PatchField, GeoMesh > &)
Generic dimensioned Type class.
Generic mesh wrapper used by volMesh, surfaceMesh, pointMesh etc.
label timeIndex() const
Return the time index of the field.
Internal::FieldType & primitiveFieldRef(const bool updateAccessTime=true)
Return a reference to the internal field.
tmp< GeometricField< Type, PatchField, GeoMesh > > clone() const
Clone.
void correctBoundaryConditions()
Correct boundary field.
tmp< GeometricField< Type, PatchField, GeoMesh > > T() const
Return transpose (only if it is a tensor field)
void storePrevIter() const
Store the field as the previous iteration value.
Internal & ref(const bool updateAccessTime=true)
Return a reference to the dimensioned internal field.
Boundary & boundaryFieldRef(const bool updateAccessTime=true)
Return a reference to the boundary field.
void relax()
Relax field (for steady-state solution).
virtual ~GeometricField()
Destructor.
void max(const dimensioned< Type > &dt)
Use the maximum of the field and specified value.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
const Internal & operator()() const
Return a const-reference to the dimensioned internal field.
Generic GeometricField class.
PatchField< Type > Patch
Type of the patch field of which the.
void operator==(const tmp< GeometricField< Type, PatchField, GeoMesh >> &)
A min/max value pair with additional methods. In addition to conveniently storing values,...
void writeEntry(const word &keyword, Ostream &os) const
Write boundary field as dictionary entry.
const Boundary & boundaryField() const
Return const-reference to the boundary field.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
lduInterfaceFieldPtrsList scalarInterfaces() const
Return a list of pointers for each patch field with only those.
Boundary boundaryInternalField() const
Return BoundaryField of the cell values neighbouring.