32 void Foam::CPCCellToCellStencil::calcPointBoundaryData
36 Map<labelList>& neiGlobal
39 neiGlobal.resize(2*boundaryPoints.size());
45 label pointi = boundaryPoints[i];
53 mesh().pointFaces()[pointi],
69 void Foam::CPCCellToCellStencil::calcCellStencil
75 labelList boundaryPoints(allCoupledFacesPatch()().meshPoints());
80 validBoundaryFaces(isValidBFace);
84 Map<labelList> neiGlobal;
92 globalCellCells.setSize(mesh().nCells());
98 label pointi = boundaryPoints[i];
100 const labelList& pGlobals = neiGlobal[pointi];
103 const labelList& pCells = mesh().pointCells(pointi);
107 label celli = pCells[j];
112 globalNumbering().toGlobal(celli),
114 globalCellCells[celli]
123 for (
label pointi = 0; pointi < mesh().nPoints(); pointi++)
130 mesh().pointFaces()[pointi],
135 const labelList& pCells = mesh().pointCells(pointi);
139 label celli = pCells[j];
143 globalNumbering().toGlobal(celli),
145 globalCellCells[celli]
160 calcCellStencil(*
this);
#define forAll(list, i)
Loop across all elements in list.
CPCCellToCellStencil(const polyMesh &)
Construct from all cells and boundary faces.
baseclass for extended cell centred addressing. Contains per cell a list of neighbouring cells and/or...
labelList calcFaceCells(const boolList &nonEmptyFace, const labelList &faceLabels, labelHashSet &globals) const
Collect cell neighbours of faces in global numbering.
const polyMesh & mesh() const
Mesh consisting of general polyhedral cells.
List< label > labelList
A List of labels.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
List< bool > boolList
Bool container classes.
List< labelList > labelListList
A List of labelList.
HashSet< label, Hash< label > > labelHashSet
A HashSet with label keys.