34 void Foam::sammMesh::createPolyBoundary()
36 label nBoundaryFacesFound = 0;
38 polyBoundaryPatchStartIndices_.
setSize(boundary_.
size());
40 label nCreatedFaces = nInternalFaces_;
48 polyBoundaryPatchStartIndices_[
patchi] = nCreatedFaces;
50 forAll(curShapePatch, facei)
54 const face& curFace = curShapePatch[facei];
56 meshFaces_[nCreatedFaces] = curFace;
65 PointCells[facePoints[pointi]];
67 forAll(facePointCells, celli)
70 cellFaces_[facePointCells[celli]];
72 forAll(curCellFaces, cellFacei)
74 if (curCellFaces[cellFacei] == curFace)
82 cellPolys_[facePointCells[celli]][cellFacei]
87 <<
"This looks like an already detected " 92 cellPolys_[facePointCells[celli]][cellFacei] =
95 nBoundaryFacesFound++;
109 meshFaces_.
setSize(nCreatedFaces);
111 Info<<
"Number of boundary faces: " << nBoundaryFacesFound <<
endl;
112 Info<<
"Total number of faces: " << nCreatedFaces <<
endl;
118 const polyMesh& pMesh
121 List<polyPatch* >
p(boundary_.
size());
131 curShapePatch.size(),
132 polyBoundaryPatchStartIndices_[
patchi],
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.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void size(const label)
Override size to be inconsistent with allocated storage.
Ostream & endl(Ostream &os)
Add newline and flush stream.
List< label > labelList
A List of labels.
errorManip< error > abort(error &err)
void setSize(const label)
Reset size of List.
static autoPtr< polyPatch > New(const word &patchType, const word &name, const label size, const label start, const label index, const polyBoundaryMesh &bm)
Return a pointer to a new patch created on freestore from.