From 029c5a24fe13aa22d34043b12f555fdcc9e4ceb5 Mon Sep 17 00:00:00 2001 From: mattijs <mattijs> Date: Wed, 14 Dec 2022 13:24:51 +0000 Subject: [PATCH] BUG: snappyMultiRegionHeaterImplicit: fix decomposition. Fixes #2657 --- .../snappyMultiRegionHeaterImplicit/Allrun | 8 +++++++- .../system/decomposeParDict | 12 +++++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeaterImplicit/Allrun b/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeaterImplicit/Allrun index 527adc0a3eb..0e3d605ef8b 100755 --- a/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeaterImplicit/Allrun +++ b/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeaterImplicit/Allrun @@ -16,8 +16,14 @@ runApplication blockMesh runApplication surfaceFeatureExtract runApplication snappyHexMesh -overwrite -runApplication topoSet -dict system/topoSetDict.f1 +#- Alternatively if snappyHexMesh has not set the faceZones correctly +# can do some topoSet magic: +# - pick up the outside of the cellZones +# - put into faceZones +#runApplication topoSet -dict system/topoSetDict.f1 + +# Use faceZones in combination with preserveFaceZones constraint runApplication $decompDict decomposePar # Restore initial fields diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeaterImplicit/system/decomposeParDict b/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeaterImplicit/system/decomposeParDict index 7c20dbe0172..f980783689c 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeaterImplicit/system/decomposeParDict +++ b/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeaterImplicit/system/decomposeParDict @@ -27,7 +27,17 @@ constraints faces { type preserveFaceZones; - zones (f1 f2 f3 f4 f5); + zones + ( + heater_to_bottomAir + heater_to_leftSolid + heater_to_rightSolid + heater_to_topAir + leftSolid_to_bottomAir + leftSolid_to_topAir + rightSolid_to_bottomAir + rightSolid_to_topAir + ); enabled true; } } -- GitLab