From 00b94c4a406e2c0d589f682e2934f1b57a1651f8 Mon Sep 17 00:00:00 2001 From: Mark Olesen Date: Fri, 6 Oct 2017 14:18:54 +0200 Subject: [PATCH] ENH: handle partially attached master/slave faces (issue #608) - addresses problems if faces are already partly attached (eg, on a single vertex or along an edge). --- .../polyTopoChange/polyTopoChange.C | 521 ++++++++-------- .../polyTopoChange/polyTopoChange.H | 155 +++-- .../polyTopoChange/polyTopoChangeTemplates.C | 38 +- .../slidingInterface/coupleSlidingInterface.C | 571 +++++++++--------- .../decoupleSlidingInterface.C | 132 ++-- .../enrichedPatch/enrichedPatch.C | 39 +- .../enrichedPatch/enrichedPatch.H | 37 +- .../enrichedPatch/enrichedPatchCutFaces.C | 64 +- .../enrichedPatch/enrichedPatchFaces.C | 214 +++---- .../enrichedPatch/enrichedPatchI.H | 63 ++ .../enrichedPatch/enrichedPatchMasterPoints.C | 72 +-- .../enrichedPatch/enrichedPatchPointMap.C | 29 +- .../enrichedPatch/enrichedPatchPointPoints.C | 11 +- .../slidingInterfaceAttachedAddressing.C | 84 ++- .../slidingInterfaceProjectPoints.C | 295 +++++---- .../mesh/stitchMesh/simple-cube1/Allclean | 8 + .../mesh/stitchMesh/simple-cube1/Allmesh | 19 + tutorials/mesh/stitchMesh/simple-cube1/Allrun | 12 + .../stitchMesh/simple-cube1/scripts/stitch | 50 ++ .../simple-cube1/system/blockMeshDict | 132 ++++ .../simple-cube1/system/controlDict | 45 ++ .../simple-cube1/system/createPatchDict | 53 ++ .../stitchMesh/simple-cube1/system/fvSchemes | 55 ++ .../stitchMesh/simple-cube1/system/fvSolution | 43 ++ .../simple-cube1/system/topoSetDict | 106 ++++ .../simple-cube1/system/topoSetDict.patches | 88 +++ 26 files changed, 1739 insertions(+), 1197 deletions(-) create mode 100644 src/dynamicMesh/slidingInterface/enrichedPatch/enrichedPatchI.H create mode 100755 tutorials/mesh/stitchMesh/simple-cube1/Allclean create mode 100755 tutorials/mesh/stitchMesh/simple-cube1/Allmesh create mode 100755 tutorials/mesh/stitchMesh/simple-cube1/Allrun create mode 100755 tutorials/mesh/stitchMesh/simple-cube1/scripts/stitch create mode 100644 tutorials/mesh/stitchMesh/simple-cube1/system/blockMeshDict create mode 100644 tutorials/mesh/stitchMesh/simple-cube1/system/controlDict create mode 100644 tutorials/mesh/stitchMesh/simple-cube1/system/createPatchDict create mode 100644 tutorials/mesh/stitchMesh/simple-cube1/system/fvSchemes create mode 100644 tutorials/mesh/stitchMesh/simple-cube1/system/fvSolution create mode 100644 tutorials/mesh/stitchMesh/simple-cube1/system/topoSetDict create mode 100644 tutorials/mesh/stitchMesh/simple-cube1/system/topoSetDict.patches diff --git a/src/dynamicMesh/polyTopoChange/polyTopoChange/polyTopoChange.C b/src/dynamicMesh/polyTopoChange/polyTopoChange/polyTopoChange.C index 78e9b7b309..90c3c63520 100644 --- a/src/dynamicMesh/polyTopoChange/polyTopoChange/polyTopoChange.C +++ b/src/dynamicMesh/polyTopoChange/polyTopoChange/polyTopoChange.C @@ -3,7 +3,7 @@ \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation - \\/ M anipulation | Copyright (C) 2015 OpenCFD Ltd. + \\/ M anipulation | Copyright (C) 2015-2017 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -54,22 +54,22 @@ namespace Foam // Renumber with special handling for merged items (marked with <-1) void Foam::polyTopoChange::renumberReverseMap ( - const labelList& map, + const labelUList& oldToNew, DynamicList