34void Foam::CFCCellToCellStencil::calcFaceBoundaryData
47 const polyPatch& pp =
patches[patchi];
48 label facei = pp.
start();
60 else if (isA<emptyPolyPatch>(pp))
65 neiGlobal[bFacei] = -1;
85void Foam::CFCCellToCellStencil::calcCellStencil
99 calcFaceBoundaryData(neiGlobal);
105 globalCellCells.setSize(
mesh().nCells());
106 forAll(globalCellCells, celli)
108 const cell& cFaces =
mesh().
cells()[celli];
110 labelList& cCells = globalCellCells[celli];
112 cCells.
setSize(cFaces.size()+1);
117 cCells[nNbr++] = globalNumbering().toGlobal(celli);
122 label facei = cFaces[i];
124 if (
mesh().isInternalFace(facei))
126 label nbrCelli = own[facei];
127 if (nbrCelli == celli)
129 nbrCelli = nei[facei];
131 cCells[nNbr++] = globalNumbering().toGlobal(nbrCelli);
138 cCells[nNbr++] = nbrCelli;
142 cCells.setSize(nNbr);
154 calcCellStencil(*
this);
void setSize(const label n)
Alias for resize()
baseclass for extended cell centred addressing. Contains per cell a list of neighbouring cells and/or...
const polyMesh & mesh() const
const globalIndex & globalNumbering() const
Global numbering for cells and boundary faces.
label toGlobal(const label i) const
From local to global index.
label start() const noexcept
The start label of boundary faces in the polyMesh face list.
Mesh consisting of general polyhedral cells.
virtual const labelList & faceOwner() const
Return face owner.
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
virtual const labelList & faceNeighbour() const
Return face neighbour.
label nBoundaryFaces() const noexcept
Number of boundary faces (== nFaces - nInternalFaces)
label nInternalFaces() const noexcept
Number of internal faces.
const cellList & cells() const
const polyBoundaryMesh & patches
List< label > labelList
A List of labels.
List< labelList > labelListList
A List of labelList.
#define forAll(list, i)
Loop across all elements in list.