33 void Foam::CFCCellToCellStencil::calcFaceBoundaryData
46 const polyPatch& pp = patches[
patchi];
47 label facei = pp.start();
59 else if (isA<emptyPolyPatch>(pp))
64 neiGlobal[bFacei] = -1;
84 void Foam::CFCCellToCellStencil::calcCellStencil
98 calcFaceBoundaryData(neiGlobal);
104 globalCellCells.setSize(
mesh().nCells());
105 forAll(globalCellCells, celli)
107 const cell& cFaces =
mesh().
cells()[celli];
109 labelList& cCells = globalCellCells[celli];
111 cCells.
setSize(cFaces.size()+1);
121 label facei = cFaces[i];
123 if (
mesh().isInternalFace(facei))
125 label nbrCelli = own[facei];
126 if (nbrCelli == celli)
128 nbrCelli = nei[facei];
137 cCells[nNbr++] = nbrCelli;
141 cCells.setSize(nNbr);
153 calcCellStencil(*
this);
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
List< labelList > labelListList
A List of labelList.
#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.
label nInternalFaces() const
virtual const labelList & faceNeighbour() const
Return face neighbour.
const cellList & cells() const
virtual const labelList & faceOwner() const
Return face owner.
List< label > labelList
A List of labels.
void setSize(const label)
Reset size of List.
label toGlobal(const label i) const
From local to global.
CFCCellToCellStencil(const polyMesh &mesh)
Construct from mesh.
const globalIndex & globalNumbering() const
Global numbering for cells and boundary faces.
const polyMesh & mesh() const
Mesh consisting of general polyhedral cells.
baseclass for extended cell centred addressing. Contains per cell a list of neighbouring cells and/or...