Go to the documentation of this file.
39 #ifndef GeometricField_H
40 #define GeometricField_H
58 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
61 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
65 const GeometricField<Type, PatchField, GeoMesh>&
68 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
72 const tmp<GeometricField<Type, PatchField, GeoMesh> >&
80 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
83 public DimensionedField<Type, GeoMesh>
152 const PtrList<PatchField<Type> >&
292 const word& patchFieldType=PatchField<Type>::calculatedType()
313 const word& patchFieldType=PatchField<Type>::calculatedType()
333 const PtrList<PatchField<Type> >&
341 const bool readOldTime =
true
359 #ifndef NoConstructFromTmp
374 #ifndef NoConstructFromTmp
390 #ifndef NoConstructFromTmp
403 const word& patchFieldType
579 friend Ostream& operator<< <Type, PatchField, GeoMesh>
585 friend Ostream& operator<< <Type, PatchField, GeoMesh>
593 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
598 GeometricBoundaryField&
void scale(const GeometricField< Type, PatchField, GeoMesh > &, const GeometricField< Type, PatchField, GeoMesh > &)
LduInterfaceFieldPtrsList< Type > interfaces() const
Return a list of pointers for each patch field with only those.
void evaluate()
Evaluate boundary conditions.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
tmp< GeometricField< cmptType, PatchField, GeoMesh > > component(const direction) const
Return a component of the field.
GeometricField< Type, PatchField, GeoMesh > * fieldPrevIterPtr_
Pointer to previous iteration (used for under-relaxation)
void operator==(const GeometricBoundaryField &)
Forced assignment to.
void updateCoeffs()
Update the boundary condition coefficients.
DimensionedInternalField & dimensionedInternalField()
Return dimensioned internal field.
A class for handling words, derived from string.
bool writeData(Ostream &) const
WriteData member function required by regIOobject.
GeometricBoundaryField boundaryField_
Boundary Type field containing boundary field values.
A class for managing temporary objects.
void operator/=(const GeometricField< scalar, PatchField, GeoMesh > &)
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
TypeName("GeometricField")
Runtime type information.
const GeometricField< Type, PatchField, GeoMesh > & oldTime() const
Return old time field.
void readFields()
Read the field - create the field dictionary on-the-fly.
GeometricBoundaryField & boundaryField()
Return reference to GeometricBoundaryField.
void readField(const DimensionedField< Type, GeoMesh > &field, const dictionary &dict)
Read the boundary field.
GeoMesh::BoundaryMesh BoundaryMesh
Dimension set for the base types.
word select(bool final) const
Select the final iteration parameters if `final' is true.
void operator=(const GeometricField< Type, PatchField, GeoMesh > &)
const BoundaryMesh & bmesh_
Reference to BoundaryMesh for which this field is defined.
Field< Type >::cmptType cmptType
label timeIndex_
Current time index.
bool needReference() const
Does the field need a reference level for solution.
label nOldTimes() const
Return the number of old time fields stored.
bool readIfPresent()
Read from file if it is present.
void operator=(const GeometricBoundaryField &)
Assignment to BoundaryField<Type, PatchField, BoundaryMesh>
lduInterfaceFieldPtrsList scalarInterfaces() const
Return a list of pointers for each patch field with only those.
List< word > wordList
A List of words.
void min(const dimensioned< Type > &)
void storeOldTimes() const
Store the old-time fields.
PatchField< Type > PatchFieldType
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void operator+=(const GeometricField< Type, PatchField, GeoMesh > &)
void writeMinMax(Ostream &os) const
Helper function to write the min and max to an Ostream.
bool readOldTimeIfPresent()
Read old time field from file if it is present.
List of coupled interface fields to be used in coupling.
GeometricBoundaryField(const BoundaryMesh &)
Construct from a BoundaryMesh.
const GeometricField< Type, PatchField, GeoMesh > & prevIter() const
Return previous iteration field.
InternalField & internalField()
Return internal field.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
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 any number of values (e....
void operator-=(const GeometricField< Type, PatchField, GeoMesh > &)
Generic mesh wrapper used by volMesh, surfaceMesh, pointMesh etc.
label timeIndex() const
Return the time index of the field.
void correctBoundaryConditions()
Correct boundary field.
tmp< GeometricField< Type, PatchField, GeoMesh > > T() const
Return transpose (only if it is a tensor field)
wordList types() const
Return a list of the patch types.
void max(const dimensioned< Type > &)
void storePrevIter() const
Store the field as the previous iteration value.
GeometricField(const IOobject &, const Mesh &, const dimensionSet &, const word &patchFieldType=PatchField< Type >::calculatedType())
Constructor given IOobject, mesh, dimensions and patch type.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void operator==(const tmp< GeometricField< Type, PatchField, GeoMesh > > &)
void relax()
Relax field (for steady-state solution).
virtual ~GeometricField()
Destructor.
void replace(const direction, const GeometricField< cmptType, PatchField, GeoMesh > &)
DimensionedField< Type, GeoMesh > DimensionedInternalField
Field< Type > InternalField
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
GeometricBoundaryField boundaryInternalField() const
Return BoundaryField of the cell values neighbouring.
Generic GeometricField class.
void writeEntry(const word &keyword, Ostream &os) const
Write boundary field as dictionary entry.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
GeometricField< Type, PatchField, GeoMesh > * field0Ptr_
Pointer to old time field.