From a88bfabae7d856b1990a426492c6863921f5efeb Mon Sep 17 00:00:00 2001
From: Andrew Heather <>
Date: Tue, 25 Jun 2019 09:59:20 +0100
Subject: [PATCH] TUT: Tutorial updates

---
 .../annularCombustorTurbine/system/decomposeParDict    | 10 +++++++++-
 .../annularCombustorTurbine/system/snappyHexMeshDict   |  8 --------
 .../RAS/aerofoilNACA0012/system/controlDict            |  2 --
 .../gasMixing/injectorPipe/system/decomposeParDict     |  2 --
 .../compressible/sonicFoam/laminar/shockTube/Allrun    |  2 +-
 5 files changed, 10 insertions(+), 14 deletions(-)

diff --git a/tutorials/combustion/XiDyMFoam/annularCombustorTurbine/system/decomposeParDict b/tutorials/combustion/XiDyMFoam/annularCombustorTurbine/system/decomposeParDict
index 69f1b8916c..02a0573f97 100644
--- a/tutorials/combustion/XiDyMFoam/annularCombustorTurbine/system/decomposeParDict
+++ b/tutorials/combustion/XiDyMFoam/annularCombustorTurbine/system/decomposeParDict
@@ -23,7 +23,15 @@ coeffs
     n           (6 1 1);
 }
 
-preservePatches (cyclic0 cyclic1 ami0 ami1);
+// Optional decomposition constraints
+constraints
+{
+    preservePatches
+    {
+        type            preservePatches;
+        patches         (cyclic0 cyclic1 ami0 ami1);
+    }
+}
 
 
 // ************************************************************************* //
diff --git a/tutorials/combustion/XiDyMFoam/annularCombustorTurbine/system/snappyHexMeshDict b/tutorials/combustion/XiDyMFoam/annularCombustorTurbine/system/snappyHexMeshDict
index 4fdd4c745e..53569f3a99 100644
--- a/tutorials/combustion/XiDyMFoam/annularCombustorTurbine/system/snappyHexMeshDict
+++ b/tutorials/combustion/XiDyMFoam/annularCombustorTurbine/system/snappyHexMeshDict
@@ -135,14 +135,6 @@ castellatedMeshControls
             level (1 1);
             faceType baffle;
         }
-        cooling
-        {
-            level (1 1);
-            patchInfo
-            {
-                type patch;
-            }
-        }
         inlet
         {
             level (1 1);
diff --git a/tutorials/compressible/rhoPimpleFoam/RAS/aerofoilNACA0012/system/controlDict b/tutorials/compressible/rhoPimpleFoam/RAS/aerofoilNACA0012/system/controlDict
index 708cea1e55..21f809e54e 100644
--- a/tutorials/compressible/rhoPimpleFoam/RAS/aerofoilNACA0012/system/controlDict
+++ b/tutorials/compressible/rhoPimpleFoam/RAS/aerofoilNACA0012/system/controlDict
@@ -14,8 +14,6 @@ FoamFile
 }
 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
 
-libs            ("libmodifiedInletOutlet.so");
-
 application     rhoPimpleFoam;
 
 startFrom       latestTime;
diff --git a/tutorials/compressible/rhoSimpleFoam/gasMixing/injectorPipe/system/decomposeParDict b/tutorials/compressible/rhoSimpleFoam/gasMixing/injectorPipe/system/decomposeParDict
index f457e4c19c..7540ca61b2 100644
--- a/tutorials/compressible/rhoSimpleFoam/gasMixing/injectorPipe/system/decomposeParDict
+++ b/tutorials/compressible/rhoSimpleFoam/gasMixing/injectorPipe/system/decomposeParDict
@@ -23,7 +23,5 @@ coeffs
     n           (2 2 2);
 }
 
-preservePatches ();
-
 
 // ************************************************************************* //
diff --git a/tutorials/compressible/sonicFoam/laminar/shockTube/Allrun b/tutorials/compressible/sonicFoam/laminar/shockTube/Allrun
index 5ef8615ad9..b000d60c0f 100755
--- a/tutorials/compressible/sonicFoam/laminar/shockTube/Allrun
+++ b/tutorials/compressible/sonicFoam/laminar/shockTube/Allrun
@@ -6,6 +6,6 @@ restore0Dir
 runApplication blockMesh
 runApplication setFields
 runApplication $(getApplication)
-runApplication -s sample  postProcess -func sample
+runApplication -s sample postProcess -func sample -noZero
 
 #------------------------------------------------------------------------------
-- 
GitLab