Commit 36af9f61 authored by Andrew Heather's avatar Andrew Heather
Browse files

ENH: Added utility functions to polyBoundaryMesh

parent f64125c6
......@@ -612,6 +612,28 @@ Foam::wordList Foam::polyBoundaryMesh::physicalTypes() const
}
Foam::labelList Foam::polyBoundaryMesh::patchStarts() const
{
return
getMethodImpl<labelList>
(
*this,
[](const polyPatch& p) { return p.start(); }
);
}
Foam::labelList Foam::polyBoundaryMesh::patchSizes() const
{
return
getMethodImpl<labelList>
(
*this,
[](const polyPatch& p) { return p.size(); }
);
}
Foam::label Foam::polyBoundaryMesh::start() const
{
return mesh_.nInternalFaces();
......
......@@ -167,6 +167,12 @@ public:
//- Return a list of physical types
wordList physicalTypes() const;
//- Return a list of patch start face indices
labelList patchStarts() const;
//- Return a list of patch sizes
labelList patchSizes() const;
//- The start label of the boundary faces in the polyMesh face list
// Same as mesh.nInternalFaces()
label start() const;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment