From 3b40ee8f6b877dd293f577b595ac8c403140150c Mon Sep 17 00:00:00 2001
From: sergio <s.ferraris@opencfd.co.uk>
Date: Tue, 28 Jun 2022 16:04:59 -0700
Subject: [PATCH] ENH: Updating tutorials for view factors generation

---
 .../externalSolarLoad/Allrun                  | 10 ++--
 .../externalSolarLoad/Allrun-parallel         | 10 ++--
 .../constant/air/viewFactorsDict              |  3 +-
 .../multiRegionHeaterRadiation/Allrun         | 10 ++--
 .../Allrun-parallel                           | 10 ++--
 .../constant/bottomAir/viewFactorsDict        | 50 ------------------
 .../constant/topAir/viewFactorsDict           | 51 -------------------
 7 files changed, 21 insertions(+), 123 deletions(-)

diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/externalSolarLoad/Allrun b/tutorials/heatTransfer/chtMultiRegionFoam/externalSolarLoad/Allrun
index a851883e79f..0010d50a539 100755
--- a/tutorials/heatTransfer/chtMultiRegionFoam/externalSolarLoad/Allrun
+++ b/tutorials/heatTransfer/chtMultiRegionFoam/externalSolarLoad/Allrun
@@ -9,11 +9,11 @@ cd "${0%/*}" || exit                                # Run from this directory
 #-- Run on single processor
 
 # Agglomerate patch faces
-for region in air
-do
-    runApplication -s $region \
-        faceAgglomerate -region $region -dict constant/viewFactorsDict
-done
+#for region in air
+#do
+#    runApplication -s $region \
+#        faceAgglomerate -region $region -dict constant/viewFactorsDict
+#done
 
 # Generate view factors
 for region in air
diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/externalSolarLoad/Allrun-parallel b/tutorials/heatTransfer/chtMultiRegionFoam/externalSolarLoad/Allrun-parallel
index 53466d7bdf7..840f6a95496 100755
--- a/tutorials/heatTransfer/chtMultiRegionFoam/externalSolarLoad/Allrun-parallel
+++ b/tutorials/heatTransfer/chtMultiRegionFoam/externalSolarLoad/Allrun-parallel
@@ -12,11 +12,11 @@ cd "${0%/*}" || exit                                # Run from this directory
 runApplication decomposePar -allRegions -constant
 
 # Agglomerate patch faces
-for region in air
-do
-    runParallel -s $region \
-        faceAgglomerate -region $region -dict constant/viewFactorsDict
-done
+#for region in air
+#do
+#    runParallel -s $region \
+#        faceAgglomerate -region $region -dict constant/viewFactorsDict
+#done
 
 # Generate view factors
 for region in air
diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/externalSolarLoad/constant/air/viewFactorsDict b/tutorials/heatTransfer/chtMultiRegionFoam/externalSolarLoad/constant/air/viewFactorsDict
index c990ed61369..4d1ce89a5c5 100644
--- a/tutorials/heatTransfer/chtMultiRegionFoam/externalSolarLoad/constant/air/viewFactorsDict
+++ b/tutorials/heatTransfer/chtMultiRegionFoam/externalSolarLoad/constant/air/viewFactorsDict
@@ -15,11 +15,10 @@ FoamFile
 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
 
 writeViewFactorMatrix     true;
-writeFacesAgglomeration   true;
 writePatchViewFactors     false;
 // dumpRays    true;
 
-maxDynListLength     200000;
+maxDynListLength          200000;
 
 
 // ************************************************************************* //
diff --git a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeaterRadiation/Allrun b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeaterRadiation/Allrun
index cc062925277..f7400fbe4fa 100755
--- a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeaterRadiation/Allrun
+++ b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeaterRadiation/Allrun
@@ -9,11 +9,11 @@ cd "${0%/*}" || exit                                # Run from this directory
 #-- Run on single processor
 
 # Agglomerate patch faces
-for region in bottomAir topAir
-do
-    runApplication -s "$region" \
-        faceAgglomerate -region "$region" -dict constant/viewFactorsDict
-done
+#for region in bottomAir topAir
+#do
+#    runApplication -s "$region" \
+#        faceAgglomerate -region "$region" -dict constant/viewFactorsDict
+#done
 
 # Generate view factors
 for region in bottomAir topAir
diff --git a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeaterRadiation/Allrun-parallel b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeaterRadiation/Allrun-parallel
index 88d96266122..26ed334b6a5 100755
--- a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeaterRadiation/Allrun-parallel
+++ b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeaterRadiation/Allrun-parallel
@@ -12,11 +12,11 @@ cd "${0%/*}" || exit                                # Run from this directory
 runApplication decomposePar -allRegions
 
 # Agglomerate patch faces
-for region in bottomAir topAir
-do
-    runParallel -s "$region" \
-        faceAgglomerate -region "$region" -dict constant/viewFactorsDict
-done
+#for region in bottomAir topAir
+#do
+#    runParallel -s "$region" \
+#        faceAgglomerate -region "$region" -dict constant/viewFactorsDict
+#done
 
 # Generate view factors
 for region in bottomAir topAir
diff --git a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeaterRadiation/constant/bottomAir/viewFactorsDict b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeaterRadiation/constant/bottomAir/viewFactorsDict
index 863e9e4a9dc..cc24d075339 100644
--- a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeaterRadiation/constant/bottomAir/viewFactorsDict
+++ b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeaterRadiation/constant/bottomAir/viewFactorsDict
@@ -15,56 +15,6 @@ FoamFile
 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
 
 writeViewFactorMatrix     true;
-writeFacesAgglomeration   true;
-writePatchViewFactors     false;
-
-bottomAir_to_heater
-{
-    nFacesInCoarsestLevel     30;
-    featureAngle              10;
-}
-
-bottomAir_to_leftSolid
-{
-    nFacesInCoarsestLevel     20;
-    featureAngle              10;
-}
-
-bottomAir_to_rightSolid
-{
-    nFacesInCoarsestLevel     20;
-    featureAngle              10;
-}
-
-minX
-{
-    nFacesInCoarsestLevel     10;
-    featureAngle              10;
-}
-
-minY
-{
-    nFacesInCoarsestLevel     30;
-    featureAngle              10;
-}
-
-minZ
-{
-    nFacesInCoarsestLevel     20;
-    featureAngle              10;
-}
-
-maxX
-{
-    nFacesInCoarsestLevel     10;
-    featureAngle              10;
-}
-
-maxZ
-{
-    nFacesInCoarsestLevel     20;
-    featureAngle              10;
-}
 
 
 // ************************************************************************* //
diff --git a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeaterRadiation/constant/topAir/viewFactorsDict b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeaterRadiation/constant/topAir/viewFactorsDict
index ebd7dcafdcd..c885191e521 100644
--- a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeaterRadiation/constant/topAir/viewFactorsDict
+++ b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeaterRadiation/constant/topAir/viewFactorsDict
@@ -15,56 +15,5 @@ FoamFile
 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
 
 writeViewFactorMatrix     true;
-writeFacesAgglomeration   true;
-writePatchViewFactors     false;
-
-topAir_to_heater
-{
-    nFacesInCoarsestLevel     24;
-    featureAngle              10;
-}
-
-topAir_to_leftSolid
-{
-    nFacesInCoarsestLevel     20;
-    featureAngle              10;
-}
-
-topAir_to_rightSolid
-{
-    nFacesInCoarsestLevel     20;
-    featureAngle              10;
-}
-
-minX
-{
-    nFacesInCoarsestLevel     10;
-    featureAngle              10;
-}
-
-maxY
-{
-    nFacesInCoarsestLevel     40;
-    featureAngle              10;
-}
-
-minZ
-{
-    nFacesInCoarsestLevel     20;
-    featureAngle              10;
-}
-
-maxX
-{
-    nFacesInCoarsestLevel     10;
-    featureAngle              10;
-}
-
-maxZ
-{
-    nFacesInCoarsestLevel     20;
-    featureAngle              10;
-}
-
 
 // ************************************************************************* //
-- 
GitLab