From c8c6af5b6c0fef51118e6a4937364cbdf858e1d4 Mon Sep 17 00:00:00 2001 From: Mark Olesen Date: Fri, 10 May 2019 17:11:47 +0200 Subject: [PATCH] ENH: add -excludePatches option for surfaceMeshExtract (#1315) - simplify faceZone selection in surfaceMeshExtract --- .../surfaceMeshExtract/surfaceMeshExtract.C | 155 ++++++++++++------ 1 file changed, 105 insertions(+), 50 deletions(-) diff --git a/applications/utilities/surface/surfaceMeshExtract/surfaceMeshExtract.C b/applications/utilities/surface/surfaceMeshExtract/surfaceMeshExtract.C index 7232b683f4..6e3c8f5aec 100644 --- a/applications/utilities/surface/surfaceMeshExtract/surfaceMeshExtract.C +++ b/applications/utilities/surface/surfaceMeshExtract/surfaceMeshExtract.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2017-2018 OpenCFD Ltd. + \\ / A nd | Copyright (C) 2017-2019 OpenCFD Ltd. \\/ M anipulation | ------------------------------------------------------------------------------- | Copyright (C) 2011-2016 OpenFOAM Foundation @@ -24,7 +24,7 @@ License along with OpenFOAM. If not, see . Application - surfaceMeshTriangulate + surfaceMeshExtract Group grpSurfaceUtilities @@ -47,6 +47,7 @@ Description #include "argList.H" #include "Time.H" #include "polyMesh.H" +#include "emptyPolyPatch.H" #include "processorPolyPatch.H" #include "ListListOps.H" #include "uindirectPrimitivePatch.H" @@ -58,6 +59,57 @@ using namespace Foam; // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // +labelList getSelectedPatches +( + const polyBoundaryMesh& patches, + const wordRes& whitelist, + const wordRes& blacklist +) +{ + DynamicList