Go to the documentation of this file.
98 faceCellsPtr_(
nullptr),
104 && constraintType(patchType)
105 && !inGroups().
found(patchType)
108 inGroups().
append(patchType);
120 const word& physicalType,
132 faceCellsPtr_(
nullptr),
143 const word& patchType
159 faceCellsPtr_(
nullptr),
165 && constraintType(patchType)
166 && !inGroups().
found(patchType)
169 inGroups().
append(patchType);
193 faceCellsPtr_(
nullptr),
220 faceCellsPtr_(
nullptr),
240 mapAddressing.
size(),
247 faceCellsPtr_(
nullptr),
257 boundaryMesh_(
p.boundaryMesh_),
258 faceCellsPtr_(nullptr),
281 wordList cTypes(dictionaryConstructorTablePtr_->size());
287 if (constraintType(cstrIter.key()))
289 cTypes[i++] = cstrIter.key();
307 return boundaryMesh_;
329 const vectorField& gcc = boundaryMesh_.mesh().cellCentres();
352 const face& curFace = this->operator[](facei);
354 mag(faceAreas[facei])/(curFace.
mag(
points) + ROOTVSMALL);
371 return *faceCellsPtr_;
435 patchIdentifier::operator=(
p);
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.
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.
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.
virtual void write(Ostream &) const
Write the polyPatch data as a dictionary.
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
void append(const T &val)
Append an element at the end of the list.
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.
void deleteDemandDrivenData(DataPtr &dataPtr)
Identifies a patch by name, patch index and physical type.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
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.
word name(const complex &c)
Return string representation of complex.
virtual bool order(PstreamBuffers &, const primitivePatch &, labelList &faceMap, labelList &rotation) const
Return new ordering for primitivePatch.
virtual void movePoints(const Field< PointType > &)
Correct patch after moving points.
const polyMesh & mesh() const
Return the mesh reference.
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.
SubList< label > 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 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.
void operator=(const PrimitivePatch< Face, FaceList, PointField, PointType > &)
Assignment.
const vectorField::subField faceAreas() const
Return face normals.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
label ListType::const_reference const label start
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
static const word null
An empty word.
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
void size(const label n) noexcept
Override size to be inconsistent with allocated storage.
Addressing for all faces on surface of mesh. Can either be read from polyMesh or from triSurface....
void clearPatchMeshAddr()
void write(Ostream &os) const
Write patchIdentifier as a dictionary.
PrimitivePatch< face, SubList, const pointField & > primitivePatch
Addressing for a faceList slice.
A face is a list of labels corresponding to mesh vertices.
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.
Ostream & operator<<(Ostream &, const boundaryPatch &)
A list of faces which address into the list of points.
static int disallowGenericPolyPatch
Debug switch to disallow the use of genericPolyPatch.