Go to the documentation of this file.
100 faceCellsPtr_(
nullptr),
103 if (!patchType.empty() && constraintType(patchType))
117 const word& physicalType,
129 faceCellsPtr_(
nullptr),
140 const word& patchType
154 start_(
dict.
get<label>(
"startFace")),
156 faceCellsPtr_(
nullptr),
159 if (!patchType.empty() && constraintType(patchType))
185 faceCellsPtr_(
nullptr),
212 faceCellsPtr_(
nullptr),
232 mapAddressing.
size(),
239 faceCellsPtr_(
nullptr),
249 boundaryMesh_(
p.boundaryMesh_),
250 faceCellsPtr_(nullptr),
289 const auto& cnstrTable = *dictionaryConstructorTablePtr_;
297 if (constraintType(iter.key()))
299 cTypes[i++] = iter.key();
317 return boundaryMesh_;
339 const vectorField& gcc = boundaryMesh_.mesh().cellCentres();
362 const face& curFace = this->operator[](facei);
364 mag(faceAreas[facei])/(curFace.
mag(
points) + ROOTVSMALL);
381 return *faceCellsPtr_;
addToRunTimeSelectionTable(decompositionMethod, kahipDecomp, dictionary)
List< label > labelList
A List of labels.
virtual const pointField & points() const
Return raw points.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
SubList< face > faceSubList
A SubList of faces.
patchIdentifier & operator=(const patchIdentifier &)=default
Copy assignment.
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
A class for handling words, derived from Foam::string.
virtual void movePoints(PstreamBuffers &, const pointField &p)
Correct patches after moving points.
A polyBoundaryMesh is a polyPatch list with additional search methods and registered IO.
A class for managing temporary objects.
virtual void clearAddressing()
Clear addressing.
int debugSwitch(const char *name, const int deflt=0)
Lookup debug switch or add default value.
scalar mag(const UList< point > &p) const
Magnitude of face area.
Template functions to aid in the implementation of demand driven data.
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
A List obtained as a section of another List.
Buffers for inter-processor communications streams (UOPstream, UIPstream).
virtual void clearGeom()
Clear geometry.
labelList meshEdges(const edgeList &allEdges, const labelListList &cellEdges, const labelList &faceCells) const
label offset() const
The offset where this patch starts in the boundary face list.
tmp< scalarField > areaFraction() const
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
virtual void updateMesh(PstreamBuffers &)
Update of the patch topology.
Abstract base class for point-mesh patch fields.
#define forAll(list, i)
Loop across all elements in list.
Field< vector > vectorField
Specialisation of Field<T> for vector.
SubField is a Field obtained as a section of another Field, without its own allocation....
void deleteDemandDrivenData(DataPtr &dataPtr)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
Identifies a patch by name and index, with optional physical type and group information.
const polyMesh & mesh() const noexcept
Return the mesh reference.
const polyBoundaryMesh & boundaryMesh() const
Return boundaryMesh reference.
void operator=(const polyPatch &)
Assignment.
A patch is a list of labels that address the faces in the global face list.
virtual bool order(PstreamBuffers &, const primitivePatch &, labelList &faceMap, labelList &rotation) const
Return new ordering for primitivePatch.
static wordList constraintTypes()
Return a list of all the constraint patch types.
static bool constraintType(const word &pt)
Return true if the given type is a constraint type.
label appendUniq(const T &val)
Append an element if not already in the list.
SubList< T > subList
Declare type of subList.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual void write(Ostream &os) const
Write the polyPatch data as a dictionary.
OBJstream os(runTime.globalPath()/outputName)
virtual void initOrder(PstreamBuffers &, const primitivePatch &) const
Initialize ordering for primitivePatch. Does not.
Macros for easy insertion into run-time selection tables.
const labelUList & faceCells() const
Return face-cell addressing.
label start() const
Return start label of this patch in the polyMesh face list.
virtual ~polyPatch()
Destructor.
tmp< vectorField > faceCellCentres() const
Return face cell centres.
polyPatch(const word &name, const label size, const label start, const label index, const polyBoundaryMesh &bm, const word &patchType)
Construct from components.
virtual const faceList & faces() const
Return raw faces.
forAllConstIters(mixture.phases(), phase)
const vectorField::subField faceCentres() const
Return face centres.
const vectorField::subField faceAreas() const
Return face normals.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
Addressing for all faces on surface of mesh. Can either be read from polyMesh or from triSurface....
void clearPatchMeshAddr()
void write(Ostream &os) const
PrimitivePatch< SubList< face >, const pointField & > primitivePatch
A PrimitivePatch with a SubList addressing for the faces, const reference for the point field.
A face is a list of labels corresponding to mesh vertices.
virtual void movePoints(const Field< point_type > &)
Correct patch after moving points.
void operator=(const PrimitivePatch< FaceList, PointField > &rhs)
Copy assign faces. Leave points alone (could be a reference).
void size(const label n)
Older name for setAddressableSize.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
const labelList & meshEdges() const
Return global edge index for local edges.
defineTypeNameAndDebug(combustionModel, 0)
Smooth ATC in cells next to a set of patches supplied by type.
A list of faces which address into the list of points.
static int disallowGenericPolyPatch
Debug switch to disallow the use of genericPolyPatch.