Go to the documentation of this file.
100 faceCellsPtr_(
nullptr),
106 && constraintType(patchType)
107 && !inGroups().
found(patchType)
110 inGroups().
append(patchType);
122 const word& physicalType,
134 faceCellsPtr_(
nullptr),
145 const word& patchType
159 start_(
dict.
get<label>(
"startFace")),
161 faceCellsPtr_(
nullptr),
167 && constraintType(patchType)
168 && !inGroups().
found(patchType)
171 inGroups().
append(patchType);
195 faceCellsPtr_(
nullptr),
222 faceCellsPtr_(
nullptr),
242 mapAddressing.
size(),
249 faceCellsPtr_(
nullptr),
259 boundaryMesh_(
p.boundaryMesh_),
260 faceCellsPtr_(nullptr),
283 wordList cTypes(dictionaryConstructorTablePtr_->size());
289 if (constraintType(cstrIter.key()))
291 cTypes[i++] = cstrIter.key();
309 return boundaryMesh_;
331 const vectorField& gcc = boundaryMesh_.mesh().cellCentres();
354 const face& curFace = this->operator[](facei);
356 mag(faceAreas[facei])/(curFace.
mag(
points) + ROOTVSMALL);
373 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.
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)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
Identifies a patch by name, patch index and physical type.
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.
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.
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.
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
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).
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.