From 84db37f62f12f876860e2407bb9c586f4448fb6a Mon Sep 17 00:00:00 2001 From: Mark Olesen Date: Fri, 9 Sep 2022 16:40:00 +0200 Subject: [PATCH] ENH: improved bookkeeping for finite-area to volume mesh correspondence - whichPolyPatches() = the polyPatches related to the areaMesh. This helps when pre-calculating (and caching) any patch-specific content. - whichPatchFaces() = the poly-patch/patch-face for each of the faceLabels. This allows more convenient lookups and, since the list is cached on the area mesh, reduces the number of calls to whichPatch() etc. - whichFace() = the area-face corresponding to the given mesh-face ENH: more flexible/consistent volume->area mapper functions --- .../finiteArea/checkFaMesh/printMeshSummary.H | 12 +- .../finiteArea/makeFaMesh/printMeshSummary.H | 15 +- .../faMesh/faBoundaryMesh/faBoundaryMesh.C | 18 +- .../faMesh/faBoundaryMesh/faBoundaryMesh.H | 3 +- src/finiteArea/faMesh/faMesh.C | 24 + src/finiteArea/faMesh/faMesh.H | 24 + .../faMesh/faMeshDemandDrivenData.C | 40 ++ src/finiteArea/faMesh/faMeshI.H | 26 + .../volSurfaceMapping/volSurfaceMapping.C | 557 ++++++++++++++---- .../volSurfaceMapping/volSurfaceMapping.H | 261 +++++++- 10 files changed, 832 insertions(+), 148 deletions(-) diff --git a/applications/utilities/finiteArea/checkFaMesh/printMeshSummary.H b/applications/utilities/finiteArea/checkFaMesh/printMeshSummary.H index e3d255d961..a0ebeb01c5 100644 --- a/applications/utilities/finiteArea/checkFaMesh/printMeshSummary.H +++ b/applications/utilities/finiteArea/checkFaMesh/printMeshSummary.H @@ -116,12 +116,16 @@ Description { const faPatch& p = patches[patchi]; - Info<< " " << "patch " << p.index() - << " (size: " << returnReduce(p.size(), sumOp