34void Foam::CPCCellToCellStencil::calcPointBoundaryData
36 const boolList& isValidBFace,
37 const labelList& boundaryPoints,
38 Map<labelList>& neiGlobal
41 neiGlobal.resize(2*boundaryPoints.size());
47 label pointi = boundaryPoints[i];
55 mesh().pointFaces()[pointi],
71void Foam::CPCCellToCellStencil::calcCellStencil
77 labelList boundaryPoints(allCoupledFacesPatch()().meshPoints());
82 validBoundaryFaces(isValidBFace);
86 Map<labelList> neiGlobal;
94 globalCellCells.setSize(
mesh().nCells());
100 label pointi = boundaryPoints[i];
102 const labelList& pGlobals = neiGlobal[pointi];
109 label celli = pCells[j];
114 globalNumbering().toGlobal(celli),
116 globalCellCells[celli]
125 for (label pointi = 0; pointi <
mesh().
nPoints(); pointi++)
132 mesh().pointFaces()[pointi],
141 label celli = pCells[j];
145 globalNumbering().toGlobal(celli),
147 globalCellCells[celli]
162 calcCellStencil(*
this);
baseclass for extended cell centred addressing. Contains per cell a list of neighbouring cells and/or...
const polyMesh & mesh() const
labelList calcFaceCells(const boolList &nonEmptyFace, const labelList &faceLabels, labelHashSet &globals) const
Collect cell neighbours of faces in global numbering.
Mesh consisting of general polyhedral cells.
const labelListList & pointCells() const
label nPoints() const noexcept
Number of mesh points.
List< label > labelList
A List of labels.
List< labelList > labelListList
A List of labelList.
List< bool > boolList
A List of bools.
HashSet< label, Hash< label > > labelHashSet
A HashSet of labels, uses label hasher.
#define forAll(list, i)
Loop across all elements in list.