diff --git a/applications/test/globalMeshData/Test-globalMeshData.C b/applications/test/globalMeshData/Test-globalMeshData.C index 56a285ae02..8d3f2c24e6 100644 --- a/applications/test/globalMeshData/Test-globalMeshData.C +++ b/applications/test/globalMeshData/Test-globalMeshData.C @@ -180,7 +180,7 @@ int main(int argc, char *argv[]) const labelListList& transformedSlaves = globalData.globalPointTransformedBoundaryFaces(); - label nBnd = mesh.nFaces()-mesh.nInternalFaces(); + const label nBnd = mesh.nBoundaryFaces(); pointField fc(globalPointBoundaryFacesMap.constructSize()); SubList(fc, nBnd) = diff --git a/applications/test/syncTools/Test-syncTools.C b/applications/test/syncTools/Test-syncTools.C index 5dfef2fcf2..5fca906370 100644 --- a/applications/test/syncTools/Test-syncTools.C +++ b/applications/test/syncTools/Test-syncTools.C @@ -195,7 +195,7 @@ void testSparseData(const polyMesh& mesh, Random& rndGen) SubList ( mesh.faces(), - mesh.nFaces()-mesh.nInternalFaces(), + mesh.nBoundaryFaces(), mesh.nInternalFaces() ), mesh.points() diff --git a/applications/utilities/mesh/advanced/modifyMesh/modifyMesh.C b/applications/utilities/mesh/advanced/modifyMesh/modifyMesh.C index ce2ee164f2..c522d8f48a 100644 --- a/applications/utilities/mesh/advanced/modifyMesh/modifyMesh.C +++ b/applications/utilities/mesh/advanced/modifyMesh/modifyMesh.C @@ -413,7 +413,7 @@ int main(int argc, char *argv[]) const SubList outsideFaces ( mesh.faces(), - mesh.nFaces() - mesh.nInternalFaces(), + mesh.nBoundaryFaces(), mesh.nInternalFaces() ); diff --git a/applications/utilities/mesh/conversion/fluentMeshToFoam/fluentMeshToFoam.L b/applications/utilities/mesh/conversion/fluentMeshToFoam/fluentMeshToFoam.L index 064395df05..e029457d42 100644 --- a/applications/utilities/mesh/conversion/fluentMeshToFoam/fluentMeshToFoam.L +++ b/applications/utilities/mesh/conversion/fluentMeshToFoam/fluentMeshToFoam.L @@ -1386,7 +1386,7 @@ int main(int argc, char *argv[]) DynamicList newPatches(nPatches); // For every boundary face the old patch. - labelList facePatchID(pShapeMesh.nFaces()-pShapeMesh.nInternalFaces(), -1); + labelList facePatchID(pShapeMesh.nBoundaryFaces(), -1); label cMeshFace = pShapeMesh.nInternalFaces(); label nBoundaries = 0; diff --git a/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/backgroundMeshDecomposition/backgroundMeshDecomposition.C b/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/backgroundMeshDecomposition/backgroundMeshDecomposition.C index ce5f0bc191..3ab96dd6b0 100644 --- a/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/backgroundMeshDecomposition/backgroundMeshDecomposition.C +++ b/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/backgroundMeshDecomposition/backgroundMeshDecomposition.C @@ -468,7 +468,7 @@ void Foam::backgroundMeshDecomposition::printMeshData // // Print stats - // globalIndex globalBoundaryFaces(mesh.nFaces()-mesh.nInternalFaces()); + // globalIndex globalBoundaryFaces(mesh.nBoundaryFaces()); for (label proci = 0; proci < Pstream::nProcs(); proci++) { @@ -671,7 +671,7 @@ void Foam::backgroundMeshDecomposition::buildPatchAndTree() SubList ( mesh_.faces(), - mesh_.nFaces() - mesh_.nInternalFaces(), + mesh_.nBoundaryFaces(), mesh_.nInternalFaces() ), mesh_.points() diff --git a/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/conformalVoronoiMesh/conformalVoronoiMeshZones.C b/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/conformalVoronoiMesh/conformalVoronoiMeshZones.C index 2a37049388..7f2ecf8c81 100644 --- a/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/conformalVoronoiMesh/conformalVoronoiMeshZones.C +++ b/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/conformalVoronoiMesh/conformalVoronoiMeshZones.C @@ -39,7 +39,7 @@ void Foam::conformalVoronoiMesh::calcNeighbourCellCentres pointField& neiCc ) const { - label nBoundaryFaces = mesh.nFaces() - mesh.nInternalFaces(); + const label nBoundaryFaces = mesh.nBoundaryFaces(); if (neiCc.size() != nBoundaryFaces) { @@ -319,7 +319,7 @@ void Foam::conformalVoronoiMesh::calcFaceZones const labelList& faceOwner = mesh.faceOwner(); const labelList& faceNeighbour = mesh.faceNeighbour(); - labelList neiFaceOwner(mesh.nFaces() - mesh.nInternalFaces(), label(-1)); + labelList neiFaceOwner(mesh.nBoundaryFaces(), label(-1)); const polyBoundaryMesh& patches = mesh.boundaryMesh(); @@ -421,7 +421,7 @@ void Foam::conformalVoronoiMesh::calcFaceZones ) ); - pointField neiCc(mesh.nFaces() - mesh.nInternalFaces()); + pointField neiCc(mesh.nBoundaryFaces()); calcNeighbourCellCentres ( mesh, @@ -498,7 +498,7 @@ void Foam::conformalVoronoiMesh::calcFaceZones } -// labelList neiCellSurface(mesh.nFaces()-mesh.nInternalFaces()); +// labelList neiCellSurface(mesh.nBoundaryFaces()); // // forAll(patches, patchi) // { diff --git a/applications/utilities/mesh/generation/foamyMesh/foamyHexMeshBackgroundMesh/foamyHexMeshBackgroundMesh.C b/applications/utilities/mesh/generation/foamyMesh/foamyHexMeshBackgroundMesh/foamyHexMeshBackgroundMesh.C index 578731132f..0364c17774 100644 --- a/applications/utilities/mesh/generation/foamyMesh/foamyHexMeshBackgroundMesh/foamyHexMeshBackgroundMesh.C +++ b/applications/utilities/mesh/generation/foamyMesh/foamyHexMeshBackgroundMesh/foamyHexMeshBackgroundMesh.C @@ -119,7 +119,7 @@ void printMeshData(const polyMesh& mesh) // Print stats - globalIndex globalBoundaryFaces(mesh.nFaces()-mesh.nInternalFaces()); + globalIndex globalBoundaryFaces(mesh.nBoundaryFaces()); label maxProcCells = 0; label totProcFaces = 0; diff --git a/applications/utilities/mesh/manipulation/checkMesh/checkTools.C b/applications/utilities/mesh/manipulation/checkMesh/checkTools.C index d3d7853436..e230e03990 100644 --- a/applications/utilities/mesh/manipulation/checkMesh/checkTools.C +++ b/applications/utilities/mesh/manipulation/checkMesh/checkTools.C @@ -314,7 +314,7 @@ void Foam::mergeAndWrite } - boolList bndInSet(mesh.nFaces()-mesh.nInternalFaces()); + boolList bndInSet(mesh.nBoundaryFaces()); forAll(pbm, patchi) { const polyPatch& pp = pbm[patchi]; diff --git a/applications/utilities/mesh/manipulation/mergeOrSplitBaffles/mergeOrSplitBaffles.C b/applications/utilities/mesh/manipulation/mergeOrSplitBaffles/mergeOrSplitBaffles.C index 5422183a3f..d6c7160f5d 100644 --- a/applications/utilities/mesh/manipulation/mergeOrSplitBaffles/mergeOrSplitBaffles.C +++ b/applications/utilities/mesh/manipulation/mergeOrSplitBaffles/mergeOrSplitBaffles.C @@ -249,7 +249,7 @@ labelList findBaffles(const polyMesh& mesh, const labelList& boundaryFaces) ( mesh, "duplicateFaces", - (mesh.nFaces() - mesh.nInternalFaces())/256 + mesh.nBoundaryFaces()/256 ); forAll(duplicates, bFacei) diff --git a/applications/utilities/mesh/manipulation/orientFaceZone/orientFaceZone.C b/applications/utilities/mesh/manipulation/orientFaceZone/orientFaceZone.C index 2a05649e77..972503c9ec 100644 --- a/applications/utilities/mesh/manipulation/orientFaceZone/orientFaceZone.C +++ b/applications/utilities/mesh/manipulation/orientFaceZone/orientFaceZone.C @@ -295,11 +295,7 @@ int main(int argc, char *argv[]) { const polyBoundaryMesh& bm = mesh.boundaryMesh(); - labelList neiStatus - ( - mesh.nFaces()-mesh.nInternalFaces(), - orientedSurface::UNVISITED - ); + labelList neiStatus(mesh.nBoundaryFaces(), orientedSurface::UNVISITED); forAll(faceLabels, i) { diff --git a/applications/utilities/mesh/manipulation/polyDualMesh/polyDualMeshApp.C b/applications/utilities/mesh/manipulation/polyDualMesh/polyDualMeshApp.C index 88f949782d..a1cbb287f6 100644 --- a/applications/utilities/mesh/manipulation/polyDualMesh/polyDualMeshApp.C +++ b/applications/utilities/mesh/manipulation/polyDualMesh/polyDualMeshApp.C @@ -140,7 +140,7 @@ void simpleMarkFeatures SubList ( mesh.faces(), - mesh.nFaces()-mesh.nInternalFaces(), + mesh.nBoundaryFaces(), mesh.nInternalFaces() ), mesh.points() @@ -238,7 +238,7 @@ void simpleMarkFeatures // ~~~~~~~~~~~~~~~~~~~~~~~~~ // Face centres that need inclusion in the dual mesh - labelHashSet featureFaceSet(mesh.nFaces()-mesh.nInternalFaces()); + labelHashSet featureFaceSet(mesh.nBoundaryFaces()); // A. boundary faces. for (label facei = mesh.nInternalFaces(); facei < mesh.nFaces(); facei++) { diff --git a/applications/utilities/mesh/manipulation/splitMeshRegions/splitMeshRegions.C b/applications/utilities/mesh/manipulation/splitMeshRegions/splitMeshRegions.C index fe0a60070f..2b9ff9c3b8 100644 --- a/applications/utilities/mesh/manipulation/splitMeshRegions/splitMeshRegions.C +++ b/applications/utilities/mesh/manipulation/splitMeshRegions/splitMeshRegions.C @@ -353,7 +353,7 @@ void getInterfaceSizes // ~~~~~~~~~~~~~~ // Neighbour cellRegion. - labelList coupledRegion(mesh.nFaces()-mesh.nInternalFaces()); + labelList coupledRegion(mesh.nBoundaryFaces()); forAll(coupledRegion, i) { @@ -641,7 +641,7 @@ autoPtr createRegionMesh // Neighbour cellRegion. - labelList coupledRegion(mesh.nFaces()-mesh.nInternalFaces()); + labelList coupledRegion(mesh.nBoundaryFaces()); forAll(coupledRegion, i) { @@ -1232,7 +1232,7 @@ void getZoneID } // Neighbour zoneID. - neiZoneID.setSize(mesh.nFaces()-mesh.nInternalFaces()); + neiZoneID.setSize(mesh.nBoundaryFaces()); forAll(neiZoneID, i) { @@ -1263,7 +1263,7 @@ void matchRegions // Get current per cell zoneID labelList zoneID(mesh.nCells(), -1); - labelList neiZoneID(mesh.nFaces()-mesh.nInternalFaces()); + labelList neiZoneID(mesh.nBoundaryFaces()); getZoneID(mesh, cellZones, zoneID, neiZoneID); // Sizes per cellzone @@ -1552,7 +1552,7 @@ int main(int argc, char *argv[]) // Existing zoneID labelList zoneID(mesh.nCells(), -1); // Neighbour zoneID. - labelList neiZoneID(mesh.nFaces()-mesh.nInternalFaces()); + labelList neiZoneID(mesh.nBoundaryFaces()); getZoneID(mesh, cellZones, zoneID, neiZoneID); @@ -1622,7 +1622,7 @@ int main(int argc, char *argv[]) ); labelList newZoneID(mesh.nCells(), -1); - labelList newNeiZoneID(mesh.nFaces()-mesh.nInternalFaces()); + labelList newNeiZoneID(mesh.nBoundaryFaces()); getZoneID(mesh, newCellZones, newZoneID, newNeiZoneID); label unzonedCelli = newZoneID.find(-1); diff --git a/applications/utilities/parallelProcessing/redistributePar/redistributePar.C b/applications/utilities/parallelProcessing/redistributePar/redistributePar.C index 133161fcc7..e01205428b 100644 --- a/applications/utilities/parallelProcessing/redistributePar/redistributePar.C +++ b/applications/utilities/parallelProcessing/redistributePar/redistributePar.C @@ -172,7 +172,7 @@ void printMeshData(const polyMesh& mesh) // Print stats - globalIndex globalBoundaryFaces(mesh.nFaces()-mesh.nInternalFaces()); + globalIndex globalBoundaryFaces(mesh.nBoundaryFaces()); label maxProcCells = 0; label totProcFaces = 0; diff --git a/applications/utilities/postProcessing/miscellaneous/postChannel/channelIndex.C b/applications/utilities/postProcessing/miscellaneous/postChannel/channelIndex.C index b90e4cefea..ddefd7f7ee 100644 --- a/applications/utilities/postProcessing/miscellaneous/postChannel/channelIndex.C +++ b/applications/utilities/postProcessing/miscellaneous/postChannel/channelIndex.C @@ -55,7 +55,7 @@ void Foam::channelIndex::walkOppositeFaces { const cellList& cells = mesh.cells(); const faceList& faces = mesh.faces(); - label nBnd = mesh.nFaces() - mesh.nInternalFaces(); + const label nBnd = mesh.nBoundaryFaces(); DynamicList