ENH: extend patch/boundary methods: faces(), faceOwner()

- similar to polyBoundaryMesh
This commit is contained in:
Mark Olesen
2025-04-10 16:44:43 +02:00
parent 2d77f7ae26
commit 91e7870ee8
18 changed files with 112 additions and 232 deletions

View File

@ -104,18 +104,13 @@ const polyMesh& topoMesh = topoMeshPtr();
// Block boundary faces
{
const label nIntFaces = topoMesh.nInternalFaces();
const auto& patches = topoMesh.boundaryMesh();
const label nBndFaces = topoMesh.nBoundaryFaces();
faceList bndFaces
(
faceList::subList(topoMesh.faces(), nBndFaces, nIntFaces)
);
vtk::surfaceWriter writer
(
topoMesh.points(),
bndFaces,
faceList(patches.faces()),
vtk::formatType::INLINE_ASCII,
runTime.path()/"blockFaces"
);
@ -132,7 +127,7 @@ const polyMesh& topoMesh = topoMeshPtr();
for (const polyPatch& pp : patches)
{
label bndFacei = pp.start() - nIntFaces;
label bndFacei = pp.offset();
label meshFacei = pp.start();
forAll(pp, bfacei)

View File

@ -608,12 +608,7 @@ void Foam::backgroundMeshDecomposition::buildPatchAndTree()
{
primitivePatch tmpBoundaryFaces
(
SubList<face>
(
mesh_.faces(),
mesh_.nBoundaryFaces(),
mesh_.nInternalFaces()
),
mesh_.boundaryMesh().faces(),
mesh_.points()
);