From a74b9ca7633a977c4aa82565f3604757bc56c1fe Mon Sep 17 00:00:00 2001 From: mattijs Date: Wed, 2 Mar 2022 13:10:29 +0000 Subject: [PATCH] ENH: createPatch: handle multiple regions. Fixes #2386 Also #1361. --- .../manipulation/createPatch/createPatch.C | 319 ++-- .../createPatch/createPatch.C.orig | 1439 +++++++++++++++++ .../0.orig/bottomSolid/T | 65 + .../0.orig/bottomSolid/p | 35 + .../0.orig/leftSolid/T | 60 + .../0.orig/leftSolid/p | 35 + .../0.orig/rightSolid/T | 60 + .../0.orig/rightSolid/p | 35 + .../0.orig/topAir/T | 67 + .../0.orig/topAir/U | 61 + .../0.orig/topAir/epsilon | 66 + .../0.orig/topAir/k | 66 + .../0.orig/topAir/p | 65 + .../0.orig/topAir/p_rgh | 65 + .../multiRegionHeater_autoPatch/Allclean | 12 + .../multiRegionHeater_autoPatch/Allrun | 20 + .../multiRegionHeater_autoPatch/Allrun.pre | 25 + .../multiRegionHeater_autoPatch/README.txt | 4 + .../constant/bottomSolid/radiationProperties | 22 + .../bottomSolid/thermophysicalProperties | 50 + .../multiRegionHeater_autoPatch/constant/g | 21 + .../constant/leftSolid/radiationProperties | 1 + .../leftSolid/thermophysicalProperties | 1 + .../constant/regionProperties | 24 + .../constant/rightSolid/radiationProperties | 1 + .../rightSolid/thermophysicalProperties | 1 + .../constant/topAir/radiationProperties | 22 + .../constant/topAir/thermophysicalProperties | 47 + .../constant/topAir/turbulenceProperties | 20 + .../multiRegionHeater_autoPatch/system/README | 2 + .../system/bottomSolid/blockMeshDict | 93 ++ .../system/bottomSolid/createPatchDict | 163 ++ .../system/bottomSolid/fvSchemes | 49 + .../system/bottomSolid/fvSolution | 41 + .../system/controlDict | 60 + .../system/fvSchemes | 42 + .../system/fvSolution | 23 + .../system/leftSolid/blockMeshDict | 95 ++ .../system/leftSolid/createPatchDict | 1 + .../system/leftSolid/fvSchemes | 1 + .../system/leftSolid/fvSolution | 1 + .../system/rightSolid/blockMeshDict | 95 ++ .../system/rightSolid/createPatchDict | 1 + .../system/rightSolid/fvSchemes | 1 + .../system/rightSolid/fvSolution | 1 + .../system/topAir/blockMeshDict | 93 ++ .../system/topAir/createPatchDict | 99 ++ .../system/topAir/fvSchemes | 61 + .../system/topAir/fvSolution | 82 + .../system/vtkWrite | 61 + 50 files changed, 3648 insertions(+), 126 deletions(-) create mode 100644 applications/utilities/mesh/manipulation/createPatch/createPatch.C.orig create mode 100644 tutorials/mesh/createPatch/multiRegionHeater_autoPatch/0.orig/bottomSolid/T create mode 100644 tutorials/mesh/createPatch/multiRegionHeater_autoPatch/0.orig/bottomSolid/p create mode 100644 tutorials/mesh/createPatch/multiRegionHeater_autoPatch/0.orig/leftSolid/T create mode 100644 tutorials/mesh/createPatch/multiRegionHeater_autoPatch/0.orig/leftSolid/p create mode 100644 tutorials/mesh/createPatch/multiRegionHeater_autoPatch/0.orig/rightSolid/T create mode 100644 tutorials/mesh/createPatch/multiRegionHeater_autoPatch/0.orig/rightSolid/p create mode 100644 tutorials/mesh/createPatch/multiRegionHeater_autoPatch/0.orig/topAir/T create mode 100644 tutorials/mesh/createPatch/multiRegionHeater_autoPatch/0.orig/topAir/U create mode 100644 tutorials/mesh/createPatch/multiRegionHeater_autoPatch/0.orig/topAir/epsilon create mode 100644 tutorials/mesh/createPatch/multiRegionHeater_autoPatch/0.orig/topAir/k create mode 100644 tutorials/mesh/createPatch/multiRegionHeater_autoPatch/0.orig/topAir/p create mode 100644 tutorials/mesh/createPatch/multiRegionHeater_autoPatch/0.orig/topAir/p_rgh create mode 100755 tutorials/mesh/createPatch/multiRegionHeater_autoPatch/Allclean create mode 100755 tutorials/mesh/createPatch/multiRegionHeater_autoPatch/Allrun create mode 100755 tutorials/mesh/createPatch/multiRegionHeater_autoPatch/Allrun.pre create mode 100644 tutorials/mesh/createPatch/multiRegionHeater_autoPatch/README.txt create mode 100644 tutorials/mesh/createPatch/multiRegionHeater_autoPatch/constant/bottomSolid/radiationProperties create mode 100644 tutorials/mesh/createPatch/multiRegionHeater_autoPatch/constant/bottomSolid/thermophysicalProperties create mode 100644 tutorials/mesh/createPatch/multiRegionHeater_autoPatch/constant/g create mode 120000 tutorials/mesh/createPatch/multiRegionHeater_autoPatch/constant/leftSolid/radiationProperties create mode 120000 tutorials/mesh/createPatch/multiRegionHeater_autoPatch/constant/leftSolid/thermophysicalProperties create mode 100644 tutorials/mesh/createPatch/multiRegionHeater_autoPatch/constant/regionProperties create mode 120000 tutorials/mesh/createPatch/multiRegionHeater_autoPatch/constant/rightSolid/radiationProperties create mode 120000 tutorials/mesh/createPatch/multiRegionHeater_autoPatch/constant/rightSolid/thermophysicalProperties create mode 100644 tutorials/mesh/createPatch/multiRegionHeater_autoPatch/constant/topAir/radiationProperties create mode 100644 tutorials/mesh/createPatch/multiRegionHeater_autoPatch/constant/topAir/thermophysicalProperties create mode 100644 tutorials/mesh/createPatch/multiRegionHeater_autoPatch/constant/topAir/turbulenceProperties create mode 100644 tutorials/mesh/createPatch/multiRegionHeater_autoPatch/system/README create mode 100644 tutorials/mesh/createPatch/multiRegionHeater_autoPatch/system/bottomSolid/blockMeshDict create mode 100644 tutorials/mesh/createPatch/multiRegionHeater_autoPatch/system/bottomSolid/createPatchDict create mode 100644 tutorials/mesh/createPatch/multiRegionHeater_autoPatch/system/bottomSolid/fvSchemes create mode 100644 tutorials/mesh/createPatch/multiRegionHeater_autoPatch/system/bottomSolid/fvSolution create mode 100644 tutorials/mesh/createPatch/multiRegionHeater_autoPatch/system/controlDict create mode 100644 tutorials/mesh/createPatch/multiRegionHeater_autoPatch/system/fvSchemes create mode 100644 tutorials/mesh/createPatch/multiRegionHeater_autoPatch/system/fvSolution create mode 100644 tutorials/mesh/createPatch/multiRegionHeater_autoPatch/system/leftSolid/blockMeshDict create mode 120000 tutorials/mesh/createPatch/multiRegionHeater_autoPatch/system/leftSolid/createPatchDict create mode 120000 tutorials/mesh/createPatch/multiRegionHeater_autoPatch/system/leftSolid/fvSchemes create mode 120000 tutorials/mesh/createPatch/multiRegionHeater_autoPatch/system/leftSolid/fvSolution create mode 100644 tutorials/mesh/createPatch/multiRegionHeater_autoPatch/system/rightSolid/blockMeshDict create mode 120000 tutorials/mesh/createPatch/multiRegionHeater_autoPatch/system/rightSolid/createPatchDict create mode 120000 tutorials/mesh/createPatch/multiRegionHeater_autoPatch/system/rightSolid/fvSchemes create mode 120000 tutorials/mesh/createPatch/multiRegionHeater_autoPatch/system/rightSolid/fvSolution create mode 100644 tutorials/mesh/createPatch/multiRegionHeater_autoPatch/system/topAir/blockMeshDict create mode 100644 tutorials/mesh/createPatch/multiRegionHeater_autoPatch/system/topAir/createPatchDict create mode 100644 tutorials/mesh/createPatch/multiRegionHeater_autoPatch/system/topAir/fvSchemes create mode 100644 tutorials/mesh/createPatch/multiRegionHeater_autoPatch/system/topAir/fvSolution create mode 100644 tutorials/mesh/createPatch/multiRegionHeater_autoPatch/system/vtkWrite diff --git a/applications/utilities/mesh/manipulation/createPatch/createPatch.C b/applications/utilities/mesh/manipulation/createPatch/createPatch.C index 1f38a37854..0276c89bb3 100644 --- a/applications/utilities/mesh/manipulation/createPatch/createPatch.C +++ b/applications/utilities/mesh/manipulation/createPatch/createPatch.C @@ -98,11 +98,13 @@ void matchPatchFaces const labelList& patchesj, DynamicList& interfaceMesh0, + DynamicList