Go to the documentation of this file.
58 labelList& globFaces = neiGlobal[faceI-
mesh().nInternalFaces()];
64 if (cFaces[j] != faceI)
66 globFaces[globI++] = globalNumbering().toGlobal
75 else if (isA<emptyPolyPatch>(pp))
85 syncTools::syncBoundaryFaceList
121 if (isA<emptyPolyPatch>(pp))
126 validBFace[bFaceI++] =
false;
138 forAll(globalCellFaces, cellI)
142 allGlobalFaces.
clear();
147 label faceI = cFaces[i];
151 mesh().isInternalFace(faceI)
152 || validBFace[faceI-
mesh().nInternalFaces()]
162 label faceI = cFaces[i];
164 if (
mesh().isInternalFace(faceI))
166 label nbrCellI = own[faceI];
167 if (nbrCellI == cellI)
169 nbrCellI = nei[faceI];
175 label nbrFaceI = nbrFaces[j];
179 mesh().isInternalFace(nbrFaceI)
180 || validBFace[nbrFaceI-
mesh().nInternalFaces()]
186 if (
findIndex(allGlobalFaces, nbrGlobalI) == -1)
188 allGlobalFaces.
append(nbrGlobalI);
200 label nbrGlobalI = nbrGlobalFaces[j];
203 if (
findIndex(allGlobalFaces, nbrGlobalI) == -1)
205 allGlobalFaces.
append(nbrGlobalI);
211 globalCellFaces[cellI] = allGlobalFaces;
const polyMesh & mesh() const
#define forAll(list, i)
Loop across all elements in list.
label findIndex(const ListType &, typename ListType::const_reference, const label start=0)
Find first occurence of given element and return index,.
virtual bool coupled() const
Return true if this patch is geometrically coupled (i.e. faces and.
const cellList & cells() const
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
Mesh consisting of general polyhedral cells.
const globalIndex & globalNumbering() const
Global numbering for faces.
void calcFaceBoundaryData(labelListList &neiGlobal) const
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
CFCFaceToCellStencil(const polyMesh &)
Construct from mesh.
A patch is a list of labels that address the faces in the global face list.
void clear()
Clear the addressed list, i.e. set the size to zero.
void calcCellStencil(labelListList &globalCellFaces) const
virtual const labelList & faceOwner() const
Return face owner.
label nInternalFaces() const
label start() const
Return start label of this patch in the polyMesh face list.
DynamicList< T, SizeInc, SizeMult, SizeDiv > & append(const T &)
Append an element at the end of the list.
void setSize(const label)
Reset size of List.
baseclass for extended cell centred addressing. Contains per cell a list of neighbouring faces in glo...
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void size(const label)
Override size to be inconsistent with allocated storage.
A cell is defined as a list of faces with extra functionality.
virtual const labelList & faceNeighbour() const
Return face neighbour.
label toGlobal(const label i) const
From local to global.