33 void Foam::CFCFaceToCellStencil::calcFaceBoundaryData
46 const polyPatch& pp = patches[
patchi];
47 label facei = pp.start();
57 globFaces.
setSize(cFaces.size()-1);
62 if (cFaces[j] != facei)
73 else if (isA<emptyPolyPatch>(pp))
93 void Foam::CFCFaceToCellStencil::calcCellStencil
107 calcFaceBoundaryData(neiGlobal);
117 const polyPatch& pp = patches[
patchi];
119 if (isA<emptyPolyPatch>(pp))
124 validBFace[bFacei++] =
false;
133 DynamicList<label> allGlobalFaces(100);
135 globalCellFaces.setSize(
mesh().nCells());
136 forAll(globalCellFaces, celli)
138 const cell& cFaces =
mesh().
cells()[celli];
140 allGlobalFaces.
clear();
145 label facei = cFaces[i];
149 mesh().isInternalFace(facei)
150 || validBFace[facei-
mesh().nInternalFaces()]
160 label facei = cFaces[i];
162 if (
mesh().isInternalFace(facei))
164 label nbrCelli = own[facei];
165 if (nbrCelli == celli)
167 nbrCelli = nei[facei];
169 const cell& nbrFaces =
mesh().
cells()[nbrCelli];
173 label nbrFacei = nbrFaces[j];
177 mesh().isInternalFace(nbrFacei)
178 || validBFace[nbrFacei-
mesh().nInternalFaces()]
184 if (
findIndex(allGlobalFaces, nbrGlobalI) == -1)
186 allGlobalFaces.append(nbrGlobalI);
198 label nbrGlobalI = nbrGlobalFaces[j];
201 if (
findIndex(allGlobalFaces, nbrGlobalI) == -1)
203 allGlobalFaces.append(nbrGlobalI);
209 globalCellFaces[celli] = allGlobalFaces;
232 calcCellStencil(*
this);
List< labelList > labelListList
A List of labelList.
#define forAll(list, i)
Loop across all elements in list.
CFCFaceToCellStencil(const polyMesh &)
Construct from mesh.
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 toGlobal(const label i) const
From local to global.
baseclass for extended cell centred addressing. Contains per cell a list of neighbouring faces in glo...
const cellList & cells() const
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
List< bool > boolList
Bool container classes.
void clear()
Clear the list, i.e. set size to zero.
List< label > labelList
A List of labels.
const globalIndex & globalNumbering() const
Global numbering for faces.
label findIndex(const ListType &, typename ListType::const_reference, const label start=0)
Find first occurence of given element and return index,.
void setSize(const label)
Reset size of List.
const polyMesh & mesh() const
virtual const labelList & faceNeighbour() const
Return face neighbour.
Mesh consisting of general polyhedral cells.
virtual const labelList & faceOwner() const
Return face owner.
label nInternalFaces() const