49 const cell& cFaces =
mesh.cells()[cellI];
55 if (faceToPatchEdgeAddressing_[cFaces[i]] != -1)
61 if (nSide != cFaces.
size()-2)
69 if (faceToPatchEdgeAddressing_[cFaces[i]] != -1)
74 label nLayerPlus1 = 0;
78 if (pointLayer_[pointI] == layerI)
82 else if (pointLayer_[pointI] == layerI+1)
88 if (
f.size() != 4 || (nLayer+nLayerPlus1 != 4))
112 Info<< typeName <<
" : seeding "
123 patchFaces[patchFaceI] = pp.addressing()[patchFaceI];
136 mesh.globalData().nTotalCells()+1
143 cellToPatchFaceAddressing_.setSize(
mesh.nCells());
144 cellLayer_.setSize(
mesh.nCells());
145 forAll(cellToPatchFaceAddressing_, cellI)
147 cellToPatchFaceAddressing_[cellI] = cellData[cellI].data();
148 cellLayer_[cellI] = cellData[cellI].distance();
157 faceToPatchEdgeAddressing_.setSize(
mesh.nFaces());
158 faceToPatchEdgeAddressing_ =
labelMin;
159 faceLayer_.setSize(
mesh.nFaces());
161 forAll(faceToPatchFaceAddressing_, faceI)
164 label patchFaceI = faceData[faceI].data();
165 label patchDist = faceData[faceI].distance();
167 if (
mesh.isInternalFace(faceI))
174 faceToPatchFaceAddressing_[faceI] = 0;
175 faceLayer_[faceI] = cellData[own].distance();
180 faceToPatchFaceAddressing_[faceI] = patchFaceI+1;
181 faceToPatchEdgeAddressing_[faceI] = -1;
182 faceLayer_[faceI] = patchDist;
187 faceToPatchFaceAddressing_[faceI] = -(patchFaceI+1);
188 faceToPatchEdgeAddressing_[faceI] = -1;
189 faceLayer_[faceI] = patchDist;
192 else if (patchDist == cellData[own].
distance())
195 faceToPatchFaceAddressing_[faceI] = -(patchFaceI+1);
196 faceToPatchEdgeAddressing_[faceI] = -1;
197 faceLayer_[faceI] = patchDist;
213 pointToPatchPointAddressing_.
setSize(
mesh.nPoints());
214 pointLayer_.setSize(
mesh.nPoints());
218 Info<< typeName <<
" : seeding "
232 patchPoints[patchPointI] = pp.
meshPoints()[patchPointI];
246 mesh.globalData().nTotalPoints()
251 pointToPatchPointAddressing_[pointI] =
pointData[pointI].data();
252 pointLayer_[pointI] =
pointData[pointI].distance();
264 forAll(faceToPatchEdgeAddressing_, faceI)
266 if (faceToPatchEdgeAddressing_[faceI] ==
labelMin)
273 label levelI = pointLayer_[
f[0]];
274 for (
label fp = 1; fp <
f.size(); fp++)
276 if (pointLayer_[
f[fp]] != levelI)
293 label patchFaceI = faceData[faceI].data();
294 label patchDist = faceData[faceI].distance();
296 faceToPatchEdgeAddressing_[faceI] = -1;
297 faceToPatchFaceAddressing_[faceI] = patchFaceI+1;
298 faceLayer_[faceI] = patchDist;
308 label nextPointI =
f.nextLabel(fp);
318 if (fnd != pointsToEdge.end())
320 faceToPatchEdgeAddressing_[faceI] = fnd();
321 faceToPatchFaceAddressing_[faceI] = 0;
323 faceLayer_[faceI] = cellData[own].distance();
343 forAll(layerToCells, layerI)
345 const labelList& lCells = layerToCells[layerI];
349 label cellI = lCells[lCellI];
351 structured_ = isStructuredCell