Go to the documentation of this file.
34 void Foam::CPCCellToCellStencil::calcPointBoundaryData
38 Map<labelList>& neiGlobal
41 neiGlobal.resize(2*boundaryPoints.size());
47 label pointi = boundaryPoints[i];
55 mesh().pointFaces()[pointi],
71 void 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]
132 mesh().pointFaces()[pointi],
141 label celli = pCells[j];
145 globalNumbering().toGlobal(celli),
147 globalCellCells[celli]
162 calcCellStencil(*
this);
List< label > labelList
A List of labels.
const polyMesh & mesh() const
labelList calcFaceCells(const boolList &nonEmptyFace, const labelList &faceLabels, labelHashSet &globals) const
Collect cell neighbours of faces in global numbering.
List< bool > boolList
A List of bools.
Mesh consisting of general polyhedral cells.
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
CPCCellToCellStencil(const polyMesh &)
Construct from all cells and boundary faces.
List< labelList > labelListList
A List of labelList.
label nPoints() const
Number of mesh points.
const labelListList & pointCells() const
HashSet< label, Hash< label > > labelHashSet
A HashSet with label keys and label hasher.
baseclass for extended cell centred addressing. Contains per cell a list of neighbouring cells and/or...