mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: extend patch/boundary methods: faces(), faceOwner()
- similar to polyBoundaryMesh
This commit is contained in:
@ -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)
|
||||
|
||||
@ -608,12 +608,7 @@ void Foam::backgroundMeshDecomposition::buildPatchAndTree()
|
||||
{
|
||||
primitivePatch tmpBoundaryFaces
|
||||
(
|
||||
SubList<face>
|
||||
(
|
||||
mesh_.faces(),
|
||||
mesh_.nBoundaryFaces(),
|
||||
mesh_.nInternalFaces()
|
||||
),
|
||||
mesh_.boundaryMesh().faces(),
|
||||
mesh_.points()
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user