Go to the documentation of this file.
36 label nBoundaryFacesFound = 0;
50 forAll(curShapePatch, faceI)
54 const face& curFace = curShapePatch[faceI];
65 PointCells[facePoints[pointI]];
67 forAll(facePointCells, cellI)
72 forAll(curCellFaces, cellFaceI)
74 if (curCellFaces[cellFaceI] == curFace)
87 <<
"This looks like an already detected "
95 nBoundaryFacesFound++;
111 Info<<
"Number of boundary faces: " << nBoundaryFacesFound <<
endl;
112 Info<<
"Total number of faces: " << nCreatedFaces <<
endl;
118 const polyMesh& pMesh
125 const faceList& curShapePatch = boundary_[patchI];
131 curShapePatch.size(),
132 polyBoundaryPatchStartIndices_[patchI],
137 p[patchI]->physicalType() = patchPhysicalTypes_[patchI];
label nInternalFaces_
Number of internal faces for polyMesh.
List< polyPatch * > polyBoundaryPatches(const polyMesh &)
Add polyhedral boundary.
List< label > labelList
A List of labels.
cellList cellPolys_
Cells as polyhedra for polyMesh.
#define forAll(list, i)
Loop across all elements in list.
faceListList boundary_
Boundary faces.
Ostream & endl(Ostream &os)
Add newline and flush stream.
faceListList cellFaces_
List of faces for every cell.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
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.
errorManip< error > abort(error &err)
void setSize(const label)
Reset size of List.
List< labelList > labelListList
A List of labelList.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const labelListList & pointCells() const
faceList meshFaces_
Global face list for polyMesh.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
labelList polyBoundaryPatchStartIndices_
Polyhedral mesh boundary patch start indices.
void size(const label)
Override size to be inconsistent with allocated storage.
void createPolyBoundary()
Make polyhedral boundary from shape boundary.