From 7ac5d767734362ed47b65a847f7a5d61643cb38f Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Fri, 23 Mar 2018 17:02:18 +0000 Subject: [PATCH] ENH: fvMeshDistribute: uses topological rather than geometric point merging Patch contributed by Mattijs Janssens --- .../fvMeshDistribute/fvMeshDistribute.C | 213 +++++++++++++++--- .../fvMeshDistribute/fvMeshDistribute.H | 28 ++- 2 files changed, 200 insertions(+), 41 deletions(-) diff --git a/src/dynamicMesh/fvMeshDistribute/fvMeshDistribute.C b/src/dynamicMesh/fvMeshDistribute/fvMeshDistribute.C index 4206ca325b..d232a54559 100644 --- a/src/dynamicMesh/fvMeshDistribute/fvMeshDistribute.C +++ b/src/dynamicMesh/fvMeshDistribute/fvMeshDistribute.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation \\/ M anipulation | Copyright (C) 2015-2018 OpenCFD Ltd. ------------------------------------------------------------------------------- License @@ -42,6 +42,7 @@ License #include "fvMeshTools.H" #include "labelPairHashes.H" #include "ListOps.H" +#include "globalIndex.H" // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // @@ -688,25 +689,54 @@ Foam::autoPtr Foam::fvMeshDistribute::repatch // merge those points. Foam::autoPtr Foam::fvMeshDistribute::mergeSharedPoints ( + const labelList& pointToGlobalMaster, labelListList& constructPointMap ) { // Find out which sets of points get merged and create a map from // mesh point to unique point. - Map