32 void Foam::CECCellToCellStencil::calcEdgeBoundaryData
36 EdgeMap<labelList>& neiGlobal
39 neiGlobal.resize(2*boundaryEdges.size());
45 label edgeI = boundaryEdges[i];
49 mesh().edges()[edgeI],
53 mesh().edgeFaces(edgeI),
63 void Foam::CECCellToCellStencil::calcCellStencil
71 allCoupledFacesPatch()().meshEdges
104 validBoundaryFaces(isValidBFace);
110 EdgeMap<labelList> neiGlobal;
118 globalCellCells.setSize(mesh().nCells());
124 label edgeI = boundaryEdges[i];
126 const labelList& eGlobals = neiGlobal[mesh().edges()[edgeI]];
129 const labelList& eCells = mesh().edgeCells(edgeI);
133 label celli = eCells[j];
138 globalNumbering().toGlobal(celli),
140 globalCellCells[celli]
149 for (
label edgeI = 0; edgeI < mesh().nEdges(); edgeI++)
156 mesh().edgeFaces(edgeI),
161 const labelList& eCells = mesh().edgeCells(edgeI);
165 label celli = eCells[j];
169 globalNumbering().toGlobal(celli),
171 globalCellCells[celli]
185 calcCellStencil(*
this);
#define forAll(list, i)
Loop across all elements in list.
CECCellToCellStencil(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.