From af25e71e1c5323a63b23e39c29852f4c89414288 Mon Sep 17 00:00:00 2001 From: mattijs Date: Fri, 16 Dec 2011 11:28:44 +0000 Subject: [PATCH] ENH: patchDist: helper class to determine distance on patch to neighbouring patches --- .../Test-PatchEdgeFaceWave.C | 158 ++++++++++------ src/meshTools/Make/files | 1 + .../algorithms/PatchEdgeFaceWave/patchDist.C | 173 ++++++++++++++++++ .../algorithms/PatchEdgeFaceWave/patchDist.H | 114 ++++++++++++ 4 files changed, 385 insertions(+), 61 deletions(-) create mode 100644 src/meshTools/algorithms/PatchEdgeFaceWave/patchDist.C create mode 100644 src/meshTools/algorithms/PatchEdgeFaceWave/patchDist.H diff --git a/applications/test/PatchEdgeFaceWave/Test-PatchEdgeFaceWave.C b/applications/test/PatchEdgeFaceWave/Test-PatchEdgeFaceWave.C index 2dfb19118b..cfc402e14a 100644 --- a/applications/test/PatchEdgeFaceWave/Test-PatchEdgeFaceWave.C +++ b/applications/test/PatchEdgeFaceWave/Test-PatchEdgeFaceWave.C @@ -32,6 +32,7 @@ Description #include "volFields.H" #include "PatchEdgeFaceWave.H" #include "patchEdgeFaceInfo.H" +#include "patchDist.H" using namespace Foam; @@ -49,80 +50,115 @@ int main(int argc, char *argv[]) // Get name of patch const word patchName = args[1]; - const polyPatch& patch = patches[patchName]; - // Data on all edges and faces - List allEdgeInfo(patch.nEdges()); - List allFaceInfo(patch.size()); - - // Initial seed - DynamicList