mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Added utility functions to polyBoundaryMesh
This commit is contained in:
@ -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
|
Foam::label Foam::polyBoundaryMesh::start() const
|
||||||
{
|
{
|
||||||
return mesh_.nInternalFaces();
|
return mesh_.nInternalFaces();
|
||||||
|
|||||||
@ -167,6 +167,12 @@ public:
|
|||||||
//- Return a list of physical types
|
//- Return a list of physical types
|
||||||
wordList physicalTypes() const;
|
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
|
//- The start label of the boundary faces in the polyMesh face list
|
||||||
// Same as mesh.nInternalFaces()
|
// Same as mesh.nInternalFaces()
|
||||||
label start() const;
|
label start() const;
|
||||||
|
|||||||
Reference in New Issue
Block a user