41#ifndef Foam_GeometricField_H
42#define Foam_GeometricField_H
54template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
57template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
64template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
76template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
101 typedef PatchField<Type>
Patch;
113 mutable label timeIndex_;
116 mutable std::unique_ptr<this_type> field0Ptr_;
119 mutable std::unique_ptr<this_type> fieldPrevIterPtr_;
128 bool readIfPresent();
131 bool readOldTimeIfPresent();
142 template<
class... Args>
176 const word& patchFieldType = PatchField<Type>::calculatedType()
200 const word& patchFieldType = PatchField<Type>::calculatedType()
224 const word& patchFieldType = PatchField<Type>::calculatedType()
244 const PtrList<PatchField<Type>>& ptfl
252 const PtrList<PatchField<Type>>& ptfl
260 const PtrList<PatchField<Type>>& ptfl
274 const PtrList<PatchField<Type>>& ptfl
284 const word& patchFieldType = PatchField<Type>::calculatedType()
294 const word& patchFieldType = PatchField<Type>::calculatedType()
304 const word& patchFieldType = PatchField<Type>::calculatedType()
314 const PtrList<PatchField<Type>>& ptfl
324 const PtrList<PatchField<Type>>& ptfl
334 const PtrList<PatchField<Type>>& ptfl
342 const bool readOldTime =
true
398 const word& patchFieldType
408 const word& patchFieldType
446 const word& patchFieldType = PatchField<Type>::calculatedType()
459 const word& patchFieldType = PatchField<Type>::calculatedType()
474 const word& patchFieldType = PatchField<Type>::calculatedType()
488 const word& patchFieldType = PatchField<Type>::calculatedType()
504 const word& patchFieldType = PatchField<Type>::calculatedType()
519 const word& patchFieldType = PatchField<Type>::calculatedType()
535 const word& patchFieldType = PatchField<Type>::calculatedType()
550 const word& patchFieldType = PatchField<Type>::calculatedType()
566 const PtrList<PatchField<Type>>& pflds
581 const PtrList<PatchField<Type>>& pflds
597 const PtrList<PatchField<Type>>& pflds
612 const PtrList<PatchField<Type>>& pflds
627 const word& patchFieldType = PatchField<Type>::calculatedType()
641 const word& patchFieldType = PatchField<Type>::calculatedType()
686 const word& patchFieldType = PatchField<Type>::calculatedType()
699 const word& patchFieldType = PatchField<Type>::calculatedType()
761 const word& patchFieldType
772 const word& patchFieldType
805 template<
class AnyType>
811 const word& patchFieldType = PatchField<Type>::calculatedType()
820 template<
class AnyType>
826 const word& patchFieldType = PatchField<Type>::calculatedType()
876 const
bool updateAccessTime = true
1017 void clamp_range(const Type& lower, const Type& upper);
1155 template<
typename E>
1163 typename E::IntExpr,
1164 typename E::UncoupledPatchExpr,
1165 typename E::CoupledPatchExpr,
1166 typename E::value_type
1171 template<
typename E>
1179 typename E::IntExpr,
1180 typename E::UncoupledPatchExpr,
1181 typename E::CoupledPatchExpr,
1182 typename E::value_type
1193 template<
typename E>
1199 typename E::IntExpr,
1200 typename E::UncoupledPatchExpr,
1201 typename E::CoupledPatchExpr,
1202 typename E::value_type
1207 template<
typename E>
1213 typename E::IntExpr,
1214 typename E::UncoupledPatchExpr,
1215 typename E::CoupledPatchExpr,
1216 typename E::value_type
Expression templates for GeometricFields.
Info<< nl;Info<< "Write faMesh in vtk format:"<< nl;{ vtk::uindirectPatchWriter writer(aMesh.patch(), fileName(aMesh.time().globalPath()/vtkBaseFileName));writer.writeGeometry();globalIndex procAddr(aMesh.nFaces());labelList cellIDs;if(UPstream::master()) { cellIDs.resize(procAddr.totalSize());for(const labelRange &range :procAddr.ranges()) { auto slice=cellIDs.slice(range);slice=identity(range);} } writer.beginCellData(4);writer.writeProcIDs();writer.write("cellID", cellIDs);writer.write("area", aMesh.S().field());writer.write("normal", aMesh.faceAreaNormals());writer.beginPointData(1);writer.write("normal", aMesh.pointAreaNormals());Info<< " "<< writer.output().name()<< nl;}{ vtk::lineWriter writer(aMesh.points(), aMesh.edges(), fileName(aMesh.time().globalPath()/(vtkBaseFileName+"-edges")));writer.writeGeometry();writer.beginCellData(4);writer.writeProcIDs();{ Field< scalar > fld(faMeshTools::flattenEdgeField(aMesh.magLe(), true))
DimensionedField(const IOobject &io, const Mesh &mesh, const dimensionSet &dims, const Field< Type > &field)
Construct from components, copy initial field content.
DynamicField< Type > FieldType
const Mesh & mesh() const noexcept
Expression wrap of const reference to GeometricField.
Expression of GeometricField.
Generic templated field type that is much like a Foam::List except that it is expected to hold numeri...
pTraits< Type >::cmptType cmptType
Component type.
Generic mesh wrapper used by volMesh, surfaceMesh, pointMesh etc.
MESH::BoundaryMesh BoundaryMesh
Generic GeometricBoundaryField class.
Generic GeometricField class.
void relax(const scalar alpha)
void operator+=(const dimensioned< Type > &)
void operator=(Foam::zero)
Assign value zero (no dimension checks).
static tmp< GeometricField< Type, PatchField, GeoMesh > > New(const word &name, const Mesh &mesh, const dimensionSet &dims, Field< Type > &&iField, const PtrList< PatchField< Type > > &pflds)
Return tmp field (NO_READ, NO_WRITE) from name, mesh, dimensions, moved internal field contents and p...
Expression::GeometricFieldConstRefWrap< this_type > expr() const
void operator-=(const tmp< GeometricField< Type, PatchField, GeoMesh > > &)
GeometricField(const IOobject &io, const Mesh &mesh, const dimensioned< Type > &dt, const wordList &wantedPatchTypes, const wordList &actualPatchTypes=wordList())
Construct given IOobject, mesh, dimensioned<Type> and patch types.
void storeOldTime() const
static tmp< GeometricField< Type, PatchField, GeoMesh > > New(const word &name, const Mesh &mesh, const dimensionSet &dims, const tmp< Field< Type > > &tfield, const word &patchFieldType=PatchField< Type >::calculatedType())
Return tmp field (NO_READ, NO_WRITE) from name, mesh, dimensions, tmp of primitive field and patch ty...
static tmp< GeometricField< Type, PatchField, GeoMesh > > New(const word &name, const Mesh &mesh, const dimensioned< Type > &dt, const wordList &patchFieldTypes, const wordList &actualPatchTypes=wordList())
Return tmp field (NO_READ, NO_WRITE) from name, mesh, dimensioned-type and patch field types....
friend Ostream & operator(Ostream &, const GeometricField< Type, faPatchField, areaMesh > &)
static tmp< GeometricField< Type, PatchField, GeoMesh > > New(const word &name, const Mesh &mesh, const dimensionSet &dims, Field< Type > &&iField, const word &patchFieldType=PatchField< Type >::calculatedType())
Return tmp field (NO_READ, NO_WRITE) from name, mesh, dimensions, moved internal field contents and p...
static tmp< GeometricField< Type, PatchField, GeoMesh > > New(const word &name, IOobjectOption::registerOption regOpt, const Mesh &mesh, const dimensionSet &dims, const word &patchFieldType=PatchField< Type >::calculatedType())
Return tmp field (NO_READ, NO_WRITE) from name, mesh, dimensions and patch type. [Takes current timeN...
static const this_type & null() noexcept
Return a null GeometricField (reference to a nullObject).
void operator*=(const dimensioned< scalar > &)
void operator=(const dimensioned< Type > &dt)
Assign value (with dimension check).
DimensionedField< Type, areaMesh > Internal
bool operator!=(const GeometricField< Type, PatchField, GeoMesh > &)=delete
void clamp_range(const dimensioned< MinMax< Type > > &range)
void maxMin(const dimensioned< Type > &lo, const dimensioned< Type > &hi)
GeometricField(const IOobject &io, const Mesh &mesh, const Type &value, const dimensionSet &dims, const word &patchFieldType=PatchField< Type >::calculatedType())
Construct given IOobject, mesh, dimensions, initial field value and given patch type.
GeometricField(const IOobject &io, const Mesh &mesh, const dimensionSet &dims, const Field< Type > &iField, const PtrList< PatchField< Type > > &ptfl)
Copy construct from primitive field and a patch list to clone.
label timeIndex() const noexcept
const GeometricField< Type, faPatchField, areaMesh > & oldTime() const
static tmp< GeometricField< Type, PatchField, GeoMesh > > New(const word &name, IOobjectOption::registerOption regOpt, const Mesh &mesh, const dimensioned< Type > &dt, const word &patchFieldType=PatchField< Type >::calculatedType())
Return tmp field (NO_READ, NO_WRITE) from name, mesh, dimensioned-type and patch type....
TypeName("GeometricField")
Runtime type information.
void operator/=(const GeometricField< scalar, PatchField, GeoMesh > &)
static tmp< GeometricField< Type, PatchField, GeoMesh > > New(const word &name, IOobjectOption::registerOption regOpt, const Mesh &mesh, const dimensionSet &dims, const tmp< Field< Type > > &tfield, const word &patchFieldType=PatchField< Type >::calculatedType())
Return tmp field (NO_READ, NO_WRITE) from name, mesh, dimensions, tmp of primitive field and patch ty...
static tmp< GeometricField< Type, PatchField, GeoMesh > > New(const word &newName, const tmp< GeometricField< Type, PatchField, GeoMesh > > &tfld, const word &patchFieldType)
Return renamed tmp field (NO_READ, NO_WRITE) with reset patch field type, retaining its instance/loca...
label & timeIndex() noexcept
Write-access to the time index of the field.
GeometricField(Internal &&diField, const PtrList< PatchField< Type > > &ptfl)
Move construct from internal field and a patch list to clone.
GeometricField(const GeometricField< Type, PatchField, GeoMesh > &gf)
Copy construct.
tmp< GeometricField< Type, faPatchField, areaMesh > > T() const
static tmp< GeometricField< Type, PatchField, GeoMesh > > New(const word &name, IOobjectOption::registerOption regOpt, const Mesh &mesh, const dimensionSet &dims, const Field< Type > &iField, const word &patchFieldType=PatchField< Type >::calculatedType())
Return tmp field (NO_READ, NO_WRITE) from name, mesh, dimensions, copy of internal field and patch ty...
static tmp< GeometricField< Type, PatchField, GeoMesh > > New(const word &name, const Mesh &mesh, const dimensionSet &dims, const Field< Type > &iField, const PtrList< PatchField< Type > > &pflds)
Return tmp field (NO_READ, NO_WRITE) from name, mesh, dimensions, copy of internal field contents and...
GeometricField(const IOobject &io, const GeometricField< Type, PatchField, GeoMesh > &gf, const word &patchFieldType)
Construct as copy resetting IO parameters and patch type.
void replace(const direction d, const GeometricField< cmptType, faPatchField, areaMesh > &gcf)
GeometricField(const IOobject &io, const tmp< Internal > &tfield, const PtrList< PatchField< Type > > &ptfl)
Construct from internal field (tmp) and a patch list to clone.
GeometricField(const Internal &diField, const PtrList< PatchField< Type > > &ptfl)
Copy construct from internal field and a patch list to clone.
bool writeData(Ostream &os) const
The writeData function (required by regIOobject).
this_type & constCast() const noexcept
Return non-const reference to this field.
void operator==(const dimensioned< Type > &)
Assign value (with dimension check). Force assign for boundary.
GeometricField(const IOobject &io, const Mesh &mesh, const dimensionSet &dims, const word &patchFieldType=PatchField< Type >::calculatedType())
Construct given IOobject, mesh, dimensions and patch type.
void operator-=(const GeometricField< Type, PatchField, GeoMesh > &)
Internal & ref(const bool updateAccessTime=true)
Internal::FieldType & primitiveFieldRef(const bool updateAccessTime=true)
static tmp< GeometricField< Type, PatchField, GeoMesh > > New(const word &newName, IOobjectOption::registerOption regOpt, const tmp< GeometricField< Type, PatchField, GeoMesh > > &tfld, const word &patchFieldType)
Return renamed tmp field (NO_READ, NO_WRITE) with reset patch field type, retaining its instance/loca...
void operator==(const tmp< GeometricField< Type, PatchField, GeoMesh > > &)
void operator=(const tmp< GeometricField< Type, PatchField, GeoMesh > > &)
GeometricField(const IOobject &io, const Mesh &mesh, const dimensioned< Type > &dt, const word &patchFieldType=PatchField< Type >::calculatedType())
Construct given IOobject, mesh, dimensioned<Type> and patch type.
GeometricField(const IOobject &io, const Mesh &mesh, const Type &value, const dimensionSet &dims, const wordList &wantedPatchTypes, const wordList &actualPatchTypes=wordList())
Construct given IOobject, mesh, dimensions, initial field value and given patch types.
void clamp_min(const Type &lower)
Boundary & boundaryFieldRef(const bool updateAccessTime=true)
GeometricField(const word &newName, const GeometricField< Type, PatchField, GeoMesh > &gf)
Copy construct with a new name.
GeometricField(const IOobject &io, const GeometricField< Type, PatchField, GeoMesh > &gf, const wordList &patchFieldTypes, const wordList &actualPatchTypes=wordList())
Construct as copy resetting IO parameters and boundary types.
const Internal & internalField() const noexcept
Return a const-reference to the dimensioned internal field.
static tmp< GeometricField< Type, PatchField, GeoMesh > > New(const word &name, IOobjectOption::registerOption regOpt, const Mesh &mesh, const Type &value, const dimensionSet &dims, const word &patchFieldType=PatchField< Type >::calculatedType())
Return tmp field (NO_READ, NO_WRITE) from name, mesh, field value, dimensions and patch type....
void operator*=(const GeometricField< scalar, PatchField, GeoMesh > &)
void operator+=(const GeometricField< Type, PatchField, GeoMesh > &)
GeometricBoundaryField< Type, faPatchField, areaMesh > Boundary
areaMesh::BoundaryMesh BoundaryMesh
GeometricField(const IOobject &io, const Mesh &mesh, const dimensionSet &dims, const tmp< Field< Type > > &tfield, const PtrList< PatchField< Type > > &ptfl)
Copy construct from components.
void clip(const dimensioned< MinMax< Type > > &range)
label nOldTimes() const noexcept
The number of old time fields stored.
const Internal::FieldType & primitiveField() const noexcept
Return a const-reference to the internal field values.
const Internal & v() const
Return a const-reference to the dimensioned internal field of a "vol" field.
bool operator!=(const dimensioned< Type > &)=delete
void correctLocalBoundaryConditions()
faPatchField< Type > Patch
GeometricField(const IOobject &io, const GeometricField< Type, PatchField, GeoMesh > &gf)
Construct as copy resetting IO parameters.
Field< Type >::cmptType cmptType
GeometricField(const IOobject &io, const Mesh &mesh, const dimensionSet &dims, const wordList &wantedPatchTypes, const wordList &actualPatchTypes=wordList())
Construct given IOobject, mesh, dimensions and patch types.
Internal & internalFieldRef(const bool updateAccessTime=true)
static tmp< GeometricField< Type, PatchField, GeoMesh > > New(const word &name, const Mesh &mesh, const Type &value, const dimensionSet &dims, const word &patchFieldType=PatchField< Type >::calculatedType())
Return tmp field (NO_READ, NO_WRITE) from name, mesh, field value, dimensions and patch type....
static tmp< GeometricField< Type, PatchField, GeoMesh > > New(const word &name, IOobjectOption::registerOption regOpt, const Mesh &mesh, const dimensionSet &dims, const Field< Type > &iField, const PtrList< PatchField< Type > > &pflds)
Return tmp field (NO_READ, NO_WRITE) from name, mesh, dimensions, copy of internal field contents and...
const GeometricField< Type, faPatchField, areaMesh > & prevIter() const
static tmp< GeometricField< Type, PatchField, GeoMesh > > New(const word &newName, IOobjectOption::registerOption regOpt, const tmp< GeometricField< Type, PatchField, GeoMesh > > &tfld)
Return renamed tmp field (NO_READ, NO_WRITE) retaining its instance/local.
void operator-=(const dimensioned< Type > &)
GeometricField(const IOobject &io, Internal &&diField, const PtrList< PatchField< Type > > &ptfl)
Move construct from internal field and a patch list to clone.
bool needReference() const
static tmp< GeometricField< Type, PatchField, GeoMesh > > New(const word &name, const Mesh &mesh, const dimensionSet &dims, const Field< Type > &iField, const word &patchFieldType=PatchField< Type >::calculatedType())
Return tmp field (NO_READ, NO_WRITE) from name, mesh, dimensions, copy of internal field and patch ty...
GeometricField(const IOobject &io, const Mesh &mesh, const dimensionSet &dims, const tmp< Field< Type > > &tfield, const word &patchFieldType=PatchField< Type >::calculatedType())
Construct from primitive field (tmp), with specified patch type.
static tmp< GeometricField< Type, PatchField, GeoMesh > > New(const word &name, IOobjectOption::registerOption regOpt, const Mesh &mesh, const dimensionSet &dims, Field< Type > &&iField, const word &patchFieldType=PatchField< Type >::calculatedType())
Return tmp field (NO_READ, NO_WRITE) from name, mesh, dimensions, moved internal field contents and p...
bool operator!=(Foam::zero)=delete
GeometricField(const IOobject &io, const tmp< GeometricField< Type, PatchField, GeoMesh > > &tgf, const wordList &patchFieldTypes, const wordList &actualPatchTypes=wordList())
Construct as copy resetting IO parameters and boundary types.
GeometricField(const IOobject &io, const GeometricField< Type, PatchField, GeoMesh > &gf, const labelList &patchIDs, const word &patchFieldType)
Construct as copy resetting IO parameters and boundary type for selected patchIDs.
void operator==(Foam::zero)
Assign value zero (no dimension checks). Force assign for boundary.
void max(const dimensioned< Type > &lower)
GeometricField(const IOobject &io, const Mesh &mesh, const dictionary &dict)
Construct from dictionary.
label boundaryEvaluate(const Cop &cop)
virtual ~GeometricField()
Destructor.
GeometricField(const IOobject &io, const Mesh &mesh, const dimensionSet &dims, Field< Type > &&iField, const word &patchFieldType=PatchField< Type >::calculatedType())
Move construct from primitive field, with specified patch type.
void operator+=(const tmp< GeometricField< Type, PatchField, GeoMesh > > &)
void clamp_max(const Type &upper)
static tmp< GeometricField< Type, PatchField, GeoMesh > > New(const word &name, IOobjectOption::registerOption regOpt, const Mesh &mesh, const Type &value, const dimensionSet &dims, const wordList &patchFieldTypes, const wordList &actualPatchTypes=wordList())
Return tmp field (NO_READ, NO_WRITE) from name, mesh, field value, dimensions and patch field types....
GeometricField(const IOobject &io, const Mesh &mesh, const dimensionSet &dims, const Field< Type > &iField, const word &patchFieldType=PatchField< Type >::calculatedType())
Copy construct from primitive field, with specified patch type.
void storePrevIter() const
static tmp< GeometricField< Type, PatchField, GeoMesh > > New(const word &newName, IOobjectOption::registerOption regOpt, const tmp< GeometricField< Type, PatchField, GeoMesh > > &tfld, const wordList &patchFieldTypes, const wordList &actualPatchTypes=wordList())
Return renamed tmp field (NO_READ, NO_WRITE) with reset patch field types, retaining its instance/loc...
GeometricField(const tmp< GeometricField< Type, PatchField, GeoMesh > > &tgf)
Construct from tmp<GeometricField> deleting argument.
static tmp< GeometricField< Type, PatchField, GeoMesh > > New(const word &name, const Mesh &mesh, const Type &value, const dimensionSet &dims, const wordList &patchFieldTypes, const wordList &actualPatchTypes=wordList())
Return tmp field (NO_READ, NO_WRITE) from name, mesh, field value, dimensions and patch field types....
word select(bool final) const
void storeOldTimes() const
void correctBoundaryConditions()
const Boundary & boundaryField() const noexcept
static tmp< GeometricField< Type, PatchField, GeoMesh > > New(const word &name, const Mesh &mesh, const dimensioned< Type > &dt, const word &patchFieldType=PatchField< Type >::calculatedType())
Return tmp field (NO_READ, NO_WRITE) from name, mesh, dimensioned-type and patch type....
GeometricField(const IOobject &io, const Mesh &mesh, const Expression::GeometricFieldExpression< E, typename E::IntExpr, typename E::UncoupledPatchExpr, typename E::CoupledPatchExpr, typename E::value_type > &expr)
Construct from IOobject and value expression. Supports.
GeometricField(const IOobject &io, const Mesh &mesh, const dimensionSet &dims, Field< Type > &&iField, const PtrList< PatchField< Type > > &ptfl)
Move construct from primitive field and a patch list to clone.
static tmp< GeometricField< Type, PatchField, GeoMesh > > New(const word &newName, const tmp< GeometricField< Type, PatchField, GeoMesh > > &tfld, const wordList &patchFieldTypes, const wordList &actualPatchTypes=wordList())
Return renamed tmp field (NO_READ, NO_WRITE) with reset patch field types, retaining its instance/loc...
GeometricField(const IOobject &io, const Internal &diField, const PtrList< PatchField< Type > > &ptfl)
Copy construct from internal field and a patch list to clone.
GeometricField(const IOobject &io, const tmp< GeometricField< Type, PatchField, GeoMesh > > &tgf)
Construct from tmp<GeometricField> resetting IO parameters.
void operator/=(const tmp< GeometricField< scalar, PatchField, GeoMesh > > &)
void operator*=(const tmp< GeometricField< scalar, PatchField, GeoMesh > > &)
void min(const dimensioned< Type > &upper)
void operator=(const GeometricField< Type, PatchField, GeoMesh > &)
tmp< GeometricField< Type, PatchField, GeoMesh > > clone() const
Clone.
static tmp< GeometricField< Type, PatchField, GeoMesh > > New(const GeometricField< AnyType, PatchField, GeoMesh > &fld, const word &name, const dimensioned< Type > &dt, const word &patchFieldType=PatchField< Type >::calculatedType())
Construct tmp field (NO_READ, NO_WRITE) based on mesh/registry information from an existing field....
static tmp< GeometricField< Type, PatchField, GeoMesh > > New(const word &name, IOobjectOption::registerOption regOpt, const Mesh &mesh, const dimensioned< Type > &dt, const wordList &patchFieldTypes, const wordList &actualPatchTypes=wordList())
Return tmp field (NO_READ, NO_WRITE) from name, mesh, dimensioned-type and patch field types....
void writeMinMax(Ostream &os, label comm=UPstream::worldComm) const
GeometricField(const word &newName, const tmp< GeometricField< Type, PatchField, GeoMesh > > &tgf)
Construct with a new name from tmp<GeometricField>.
GeometricField< Type, faPatchField, areaMesh > this_type
GeometricField(const IOobject &io, const Mesh &mesh, const bool readOldTime=true)
Read construct using given IOobject. Always reads!
static tmp< GeometricField< Type, PatchField, GeoMesh > > New(const word &name, const Mesh &mesh, const dimensionSet &dims, const word &patchFieldType=PatchField< Type >::calculatedType())
Return tmp field (NO_READ, NO_WRITE) from name, mesh, dimensions and patch type. [Takes current timeN...
static tmp< GeometricField< Type, PatchField, GeoMesh > > New(const word &newName, const tmp< GeometricField< Type, PatchField, GeoMesh > > &tfld)
Return renamed tmp field (NO_READ, NO_WRITE) retaining its instance/local.
void operator/=(const dimensioned< scalar > &)
static tmp< GeometricField< Type, PatchField, GeoMesh > > New(const word &name, IOobjectOption::registerOption regOpt, const Mesh &mesh, const dimensionSet &dims, Field< Type > &&iField, const PtrList< PatchField< Type > > &pflds)
Return tmp field (NO_READ, NO_WRITE) from name, mesh, dimensions, moved internal field contents and p...
GeometricField(const word &name, const Mesh &mesh, const Expression::GeometricFieldExpression< E, typename E::IntExpr, typename E::UncoupledPatchExpr, typename E::CoupledPatchExpr, typename E::value_type > &expr)
Construct from name, mesh and value expression.
static tmp< GeometricField< Type, PatchField, GeoMesh > > New(const GeometricField< AnyType, PatchField, GeoMesh > &fld, const word &name, const dimensionSet &dims, const word &patchFieldType=PatchField< Type >::calculatedType())
Construct tmp field (NO_READ, NO_WRITE) based on mesh/registry information from an existing field....
tmp< GeometricField< cmptType, faPatchField, areaMesh > > component(const direction) const
registerOption
Enumeration for use with registerObject(). Values map to bool (false/true).
Defines the attributes of an object for which implicit objectRegistry management is supported,...
A min/max value pair with additional methods. In addition to conveniently storing values,...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
Inter-processor communications stream.
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.
A class for managing temporary objects.
A class for handling words, derived from Foam::string.
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...
OBJstream os(runTime.globalPath()/outputName)
List< word > wordList
List of word.
const T & NullObjectRef() noexcept
Const reference (of type T) to the nullObject.
List< label > labelList
A List of labels.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
Foam::argList args(argc, argv)
#define FOAM_DEPRECATED_FOR(since, replacement)
#define FOAM_DEPRECATED_STRICT(since, replacement)
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.