From c1bbed3633b07d7e2f0f5ecc1037ed23881816ad Mon Sep 17 00:00:00 2001
From: andy <a.heather@opencfd.co.uk>
Date: Fri, 20 Jun 2008 17:25:03 +0100
Subject: [PATCH] general update

---
 tutorials/MRFSimpleFoam/mixerVessel2D/Allrun  |  6 +++---
 .../MRFSimpleFoam/mixerVessel2D/makeMesh      | 12 ++++++-----
 .../constant/polyMesh/boundary                |  5 -----
 .../pitzDaily/constant/polyMesh/boundary      |  5 -----
 .../pitzDaily3D/constant/polyMesh/boundary    |  5 -----
 .../constant/polyMesh/boundary                |  2 --
 .../constant/polyMesh/boundary                |  2 --
 .../bubbleColumn/constant/polyMesh/boundary   |  3 ---
 tutorials/buoyantFoam/hotRoom/Allrun          |  3 +--
 .../hotRoom/constant/polyMesh/boundary        |  3 ---
 tutorials/buoyantSimpleFoam/hotRoom/Allrun    |  3 +--
 .../hotRoom/constant/polyMesh/boundary        |  3 ---
 .../channel395/constant/polyMesh/boundary     |  6 ------
 .../pitzDaily/constant/polyMesh/boundary      |  5 -----
 tutorials/dnsFoam/boxTurb16/Allrun            |  2 +-
 .../boxTurb16/constant/polyMesh/boundary      |  3 ---
 .../chargedWire/constant/polyMesh/boundary    |  5 -----
 tutorials/engineFoam/kivaTest/Allrun          |  2 +-
 .../europeanCall/constant/polyMesh/boundary   |  2 --
 .../icoFoam/cavity/constant/polyMesh/boundary |  3 ---
 .../cavityClipped/constant/polyMesh/boundary  |  3 ---
 .../cavityGrade/constant/polyMesh/boundary    |  3 ---
 tutorials/interFoam/Allrun                    |  6 +++++-
 .../damBreak/constant/polyMesh/boundary       |  4 ----
 tutorials/laplacianFoam/flange/Allrun         |  5 ++---
 tutorials/lesInterFoam/nozzleFlow2D/Allrun    |  2 +-
 .../nozzleFlow2D/constant/polyMesh/boundary   |  6 ------
 tutorials/mhdFoam/Allrun                      |  2 +-
 .../hartmann/constant/polyMesh/boundary       |  5 -----
 .../damBreak4phase/constant/polyMesh/boundary |  4 ----
 .../constant/polyMesh/boundary                |  4 ----
 .../offsetCylinder/constant/polyMesh/boundary |  5 -----
 .../pitzDaily/constant/polyMesh/boundary      |  5 -----
 tutorials/oodles/pitzDailyDirectMapped/Allrun |  2 +-
 tutorials/potentialFoam/cylinder/Allrun       |  3 +--
 .../cylinder/constant/polyMesh/boundary       |  5 -----
 tutorials/potentialFoam/pitzDaily/Allrun      |  3 +--
 .../pitzDaily/constant/polyMesh/boundary      |  5 -----
 tutorials/rasInterFoam/Allrun                 |  3 +--
 tutorials/rasInterFoam/damBreak/Allrun        |  2 +-
 .../damBreak/constant/polyMesh/boundary       |  4 ----
 .../forwardStep/constant/polyMesh/boundary    |  5 -----
 .../shockTube/constant/polyMesh/boundary      |  2 --
 .../cavity/constant/polyMesh/boundary         |  3 ---
 tutorials/rhopSonicFoam/shockTube/Allrun      |  3 +--
 .../shockTube/constant/polyMesh/boundary      |  2 --
 .../pitzDaily/constant/polyMesh/boundary      |  5 -----
 .../dahl/constant/polyMesh/boundary           |  6 ------
 tutorials/settlingFoam/tank3D/Allclean        |  5 ++---
 tutorials/settlingFoam/tank3D/Allrun          |  4 ++--
 tutorials/settlingFoam/tank3D/Allrun_bak      | 17 ----------------
 .../tank3D/constant/polyMesh/boundary         | 20 -------------------
 .../constant/polyMesh/boundary                |  5 -----
 .../plateHole/constant/polyMesh/boundary      |  6 ------
 .../forwardStep/constant/polyMesh/boundary    |  5 -----
 tutorials/sonicFoam/shockTube/Allrun          |  3 +--
 .../shockTube/constant/polyMesh/boundary      |  2 --
 .../constant/polyMesh/boundary                |  5 -----
 .../prism/constant/polyMesh/boundary          |  5 -----
 .../cavity/constant/polyMesh/boundary         |  3 ---
 .../bed/constant/polyMesh/boundary            |  3 ---
 .../bubbleColumn/constant/polyMesh/boundary   |  3 ---
 62 files changed, 34 insertions(+), 239 deletions(-)
 delete mode 100755 tutorials/settlingFoam/tank3D/Allrun_bak

diff --git a/tutorials/MRFSimpleFoam/mixerVessel2D/Allrun b/tutorials/MRFSimpleFoam/mixerVessel2D/Allrun
index c301b15ffee..f0d118b12b9 100755
--- a/tutorials/MRFSimpleFoam/mixerVessel2D/Allrun
+++ b/tutorials/MRFSimpleFoam/mixerVessel2D/Allrun
@@ -1,9 +1,9 @@
 #!/bin/sh
+
 # Source tutorial run functions
 . $WM_PROJECT_DIR/bin/tools/RunFunctions
 
-# Get application name from directory
-application=`basename $PWD`
+application="MRFSimpleFoam"
 
-runApplication makeMesh
+./makeMesh
 runApplication $application
diff --git a/tutorials/MRFSimpleFoam/mixerVessel2D/makeMesh b/tutorials/MRFSimpleFoam/mixerVessel2D/makeMesh
index f943e8d0d94..f45c6ff0be3 100755
--- a/tutorials/MRFSimpleFoam/mixerVessel2D/makeMesh
+++ b/tutorials/MRFSimpleFoam/mixerVessel2D/makeMesh
@@ -1,8 +1,10 @@
+#!/bin/sh
+
 m4 < constant/polyMesh/blockMeshDict.m4 > constant/polyMesh/blockMeshDict
-blockMesh .. mixerVessel2D
-cellSet .. mixerVessel2D
+blockMesh
+cellSet
 cp system/faceSetDict_rotorFaces system/faceSetDict
-faceSet .. mixerVessel2D
+faceSet
 cp system/faceSetDict_noBoundaryFaces system/faceSetDict
-faceSet .. mixerVessel2D
-setsToZones .. mixerVessel2D -noFlipMap
+faceSet
+setsToZones -noFlipMap
diff --git a/tutorials/XiFoam/moriyoshiHomogeneous/constant/polyMesh/boundary b/tutorials/XiFoam/moriyoshiHomogeneous/constant/polyMesh/boundary
index 2e505d79646..d9ddd2f0d94 100644
--- a/tutorials/XiFoam/moriyoshiHomogeneous/constant/polyMesh/boundary
+++ b/tutorials/XiFoam/moriyoshiHomogeneous/constant/polyMesh/boundary
@@ -20,35 +20,30 @@ FoamFile
     left
     {
         type            symmetryPlane;
-        physicalType    symmetryPlane;
         nFaces          35;
         startFace       4795;
     }
     right
     {
         type            symmetryPlane;
-        physicalType    symmetryPlane;
         nFaces          35;
         startFace       4830;
     }
     top
     {
         type            symmetryPlane;
-        physicalType    symmetryPlane;
         nFaces          70;
         startFace       4865;
     }
     bottom
     {
         type            symmetryPlane;
-        physicalType    symmetryPlane;
         nFaces          70;
         startFace       4935;
     }
     frontAndBack
     {
         type            empty;
-        physicalType    empty;
         nFaces          4900;
         startFace       5005;
     }
diff --git a/tutorials/Xoodles/pitzDaily/constant/polyMesh/boundary b/tutorials/Xoodles/pitzDaily/constant/polyMesh/boundary
index 4345de228b5..49f0028da10 100644
--- a/tutorials/Xoodles/pitzDaily/constant/polyMesh/boundary
+++ b/tutorials/Xoodles/pitzDaily/constant/polyMesh/boundary
@@ -27,7 +27,6 @@ FoamFile
 inlet
 {
     type patch;
-    physicalType turbulentInlet;
     nFaces 30;
     startFace 24170;
 }
@@ -35,7 +34,6 @@ inlet
 outlet
 {
     type patch;
-    physicalType inletOutlet;
     nFaces 57;
     startFace 24200;
 }
@@ -43,7 +41,6 @@ outlet
 upperWall
 {
     type wall;
-    physicalType fixedTemperatureWall;
     nFaces 223;
     startFace 24257;
 }
@@ -51,7 +48,6 @@ upperWall
 lowerWall
 {
     type wall;
-    physicalType fixedTemperatureWall;
     nFaces 250;
     startFace 24480;
 }
@@ -59,7 +55,6 @@ lowerWall
 frontAndBack
 {
     type empty;
-    physicalType empty;
     nFaces 24450;
     startFace 24730;
 }
diff --git a/tutorials/Xoodles/pitzDaily3D/constant/polyMesh/boundary b/tutorials/Xoodles/pitzDaily3D/constant/polyMesh/boundary
index 704c438c9a5..894474c99c8 100644
--- a/tutorials/Xoodles/pitzDaily3D/constant/polyMesh/boundary
+++ b/tutorials/Xoodles/pitzDaily3D/constant/polyMesh/boundary
@@ -26,7 +26,6 @@ FoamFile
 (    inlet
     {
         type            patch;
-        physicalType    turbulentInlet;
         startFace       715675;
         nFaces          600;
     }
@@ -34,7 +33,6 @@ FoamFile
     outlet
     {
         type            patch;
-        physicalType    inletOutlet;
         startFace       716275;
         nFaces          1140;
     }
@@ -42,7 +40,6 @@ FoamFile
     upperWall
     {
         type            wall;
-        physicalType    fixedTemperatureWall;
         startFace       717415;
         nFaces          4460;
     }
@@ -50,7 +47,6 @@ FoamFile
     lowerWall
     {
         type            wall;
-        physicalType    fixedTemperatureWall;
         startFace       721875;
         nFaces          5000;
     }
@@ -58,7 +54,6 @@ FoamFile
     frontAndBack
     {
         type            cyclic;
-        physicalType    cyclic;
         startFace       726875;
         nFaces          24450;
     }
diff --git a/tutorials/boundaryFoam/boundaryLaunderSharma/constant/polyMesh/boundary b/tutorials/boundaryFoam/boundaryLaunderSharma/constant/polyMesh/boundary
index c66ae2d99cf..65cbd63af2f 100644
--- a/tutorials/boundaryFoam/boundaryLaunderSharma/constant/polyMesh/boundary
+++ b/tutorials/boundaryFoam/boundaryLaunderSharma/constant/polyMesh/boundary
@@ -20,14 +20,12 @@ FoamFile
     lowerWall
     {
         type            wall;
-        physicalType    wall;
         nFaces          1;
         startFace       79;
     }
     upperWall
     {
         type            wall;
-        physicalType    wall;
         nFaces          1;
         startFace       80;
     }
diff --git a/tutorials/boundaryFoam/boundaryWallFunctions/constant/polyMesh/boundary b/tutorials/boundaryFoam/boundaryWallFunctions/constant/polyMesh/boundary
index aed23dc8108..65cbd63af2f 100644
--- a/tutorials/boundaryFoam/boundaryWallFunctions/constant/polyMesh/boundary
+++ b/tutorials/boundaryFoam/boundaryWallFunctions/constant/polyMesh/boundary
@@ -20,14 +20,12 @@ FoamFile
     lowerWall
     {
         type            wall;
-        physicalType    wallFunctions;
         nFaces          1;
         startFace       79;
     }
     upperWall
     {
         type            wall;
-        physicalType    wallFunctions;
         nFaces          1;
         startFace       80;
     }
diff --git a/tutorials/bubbleFoam/bubbleColumn/constant/polyMesh/boundary b/tutorials/bubbleFoam/bubbleColumn/constant/polyMesh/boundary
index c9e5b920f35..de40251b3c5 100644
--- a/tutorials/bubbleFoam/bubbleColumn/constant/polyMesh/boundary
+++ b/tutorials/bubbleFoam/bubbleColumn/constant/polyMesh/boundary
@@ -20,21 +20,18 @@ FoamFile
     inlet
     {
         type            patch;
-        physicalType    inlet;
         nFaces          25;
         startFace       3650;
     }
     outlet
     {
         type            patch;
-        physicalType    inletOutlet;
         nFaces          25;
         startFace       3675;
     }
     walls
     {
         type            wall;
-        physicalType    wallFunctions;
         nFaces          150;
         startFace       3700;
     }
diff --git a/tutorials/buoyantFoam/hotRoom/Allrun b/tutorials/buoyantFoam/hotRoom/Allrun
index 48ced9d4b37..d000bedff7b 100755
--- a/tutorials/buoyantFoam/hotRoom/Allrun
+++ b/tutorials/buoyantFoam/hotRoom/Allrun
@@ -3,8 +3,7 @@
 . $WM_PROJECT_DIR/bin/tools/RunFunctions
 
 # Get application name from directory
-parentDir=`dirname $PWD`
-application=`basename $parentDir`
+application="buoyantFoam"
 
 compileApplication setHotRoom
 runApplication blockMesh
diff --git a/tutorials/buoyantFoam/hotRoom/constant/polyMesh/boundary b/tutorials/buoyantFoam/hotRoom/constant/polyMesh/boundary
index 8dc4f6b2fd6..8fc91893a4e 100644
--- a/tutorials/buoyantFoam/hotRoom/constant/polyMesh/boundary
+++ b/tutorials/buoyantFoam/hotRoom/constant/polyMesh/boundary
@@ -20,21 +20,18 @@ FoamFile
     floor
     {
         type            wall;
-        physicalType    fixedTemperatureWallFunctions;
         nFaces          400;
         startFace       11200;
     }
     ceiling
     {
         type            wall;
-        physicalType    fixedTemperatureWallFunctions;
         nFaces          400;
         startFace       11600;
     }
     fixedWalls
     {
         type            wall;
-        physicalType    adiabaticWallFunctions;
         nFaces          800;
         startFace       12000;
     }
diff --git a/tutorials/buoyantSimpleFoam/hotRoom/Allrun b/tutorials/buoyantSimpleFoam/hotRoom/Allrun
index acb0bd54d95..0b8cae611d1 100755
--- a/tutorials/buoyantSimpleFoam/hotRoom/Allrun
+++ b/tutorials/buoyantSimpleFoam/hotRoom/Allrun
@@ -2,8 +2,7 @@
 # Source tutorial run functions
 . $WM_PROJECT_DIR/bin/tools/RunFunctions
 
-# Get application name from directory
-application=`basename $PWD`
+application="buoyantSimpleFoam"
 
 compileApplication ../../buoyantFoam/hotRoom/setHotRoom
 runApplication blockMesh
diff --git a/tutorials/buoyantSimpleFoam/hotRoom/constant/polyMesh/boundary b/tutorials/buoyantSimpleFoam/hotRoom/constant/polyMesh/boundary
index 8dc4f6b2fd6..8fc91893a4e 100644
--- a/tutorials/buoyantSimpleFoam/hotRoom/constant/polyMesh/boundary
+++ b/tutorials/buoyantSimpleFoam/hotRoom/constant/polyMesh/boundary
@@ -20,21 +20,18 @@ FoamFile
     floor
     {
         type            wall;
-        physicalType    fixedTemperatureWallFunctions;
         nFaces          400;
         startFace       11200;
     }
     ceiling
     {
         type            wall;
-        physicalType    fixedTemperatureWallFunctions;
         nFaces          400;
         startFace       11600;
     }
     fixedWalls
     {
         type            wall;
-        physicalType    adiabaticWallFunctions;
         nFaces          800;
         startFace       12000;
     }
diff --git a/tutorials/channelOodles/channel395/constant/polyMesh/boundary b/tutorials/channelOodles/channel395/constant/polyMesh/boundary
index be461319162..37f81f479d4 100644
--- a/tutorials/channelOodles/channel395/constant/polyMesh/boundary
+++ b/tutorials/channelOodles/channel395/constant/polyMesh/boundary
@@ -20,21 +20,18 @@ FoamFile
     bottomWall
     {
         type            wall;
-        physicalType    wall;
         nFaces          1200;
         startFace       175300;
     }
     topWall
     {
         type            wall;
-        physicalType    wall;
         nFaces          1200;
         startFace       176500;
     }
     sides1
     {
         type            cyclic;
-        physicalType    cyclic;
         nFaces          2000;
         startFace       177700;
         featureCos      0.9;
@@ -42,7 +39,6 @@ FoamFile
     sides2
     {
         type            cyclic;
-        physicalType    cyclic;
         nFaces          2000;
         startFace       179700;
         featureCos      0.9;
@@ -50,7 +46,6 @@ FoamFile
     inout1
     {
         type            cyclic;
-        physicalType    cyclic;
         nFaces          1500;
         startFace       181700;
         featureCos      0.9;
@@ -58,7 +53,6 @@ FoamFile
     inout2
     {
         type            cyclic;
-        physicalType    cyclic;
         nFaces          1500;
         startFace       183200;
         featureCos      0.9;
diff --git a/tutorials/coodles/pitzDaily/constant/polyMesh/boundary b/tutorials/coodles/pitzDaily/constant/polyMesh/boundary
index 0a5ec5b0ea2..c821169dc80 100644
--- a/tutorials/coodles/pitzDaily/constant/polyMesh/boundary
+++ b/tutorials/coodles/pitzDaily/constant/polyMesh/boundary
@@ -20,35 +20,30 @@ FoamFile
     inlet
     {
         type            patch;
-        physicalType    turbulentInlet;
         nFaces          30;
         startFace       24170;
     }
     outlet
     {
         type            patch;
-        physicalType    pressureTransmissiveOutlet;
         nFaces          57;
         startFace       24200;
     }
     upperWall
     {
         type            wall;
-        physicalType    fixedTemperatureWall;
         nFaces          223;
         startFace       24257;
     }
     lowerWall
     {
         type            wall;
-        physicalType    fixedTemperatureWall;
         nFaces          250;
         startFace       24480;
     }
     frontAndBack
     {
         type            empty;
-        physicalType    empty;
         nFaces          24450;
         startFace       24730;
     }
diff --git a/tutorials/dnsFoam/boxTurb16/Allrun b/tutorials/dnsFoam/boxTurb16/Allrun
index 3a0bc77cabd..b78ade21c1a 100755
--- a/tutorials/dnsFoam/boxTurb16/Allrun
+++ b/tutorials/dnsFoam/boxTurb16/Allrun
@@ -3,7 +3,7 @@
 . $WM_PROJECT_DIR/bin/tools/RunFunctions
 
 # Get application name from directory
-application=`basename $PWD`
+application="dnsFoam"
 
 runApplication blockMesh
 runApplication boxTurb
diff --git a/tutorials/dnsFoam/boxTurb16/constant/polyMesh/boundary b/tutorials/dnsFoam/boxTurb16/constant/polyMesh/boundary
index 9edca7a5cd7..8edeec9104d 100644
--- a/tutorials/dnsFoam/boxTurb16/constant/polyMesh/boundary
+++ b/tutorials/dnsFoam/boxTurb16/constant/polyMesh/boundary
@@ -20,7 +20,6 @@ FoamFile
     patch0
     {
         type            cyclic;
-        physicalType    cyclic;
         nFaces          512;
         startFace       11520;
         featureCos      0.9;
@@ -28,7 +27,6 @@ FoamFile
     patch1
     {
         type            cyclic;
-        physicalType    cyclic;
         nFaces          512;
         startFace       12032;
         featureCos      0.9;
@@ -36,7 +34,6 @@ FoamFile
     patch2
     {
         type            cyclic;
-        physicalType    cyclic;
         nFaces          512;
         startFace       12544;
         featureCos      0.9;
diff --git a/tutorials/electrostaticFoam/chargedWire/constant/polyMesh/boundary b/tutorials/electrostaticFoam/chargedWire/constant/polyMesh/boundary
index 8069f7c4882..fb0286178d7 100644
--- a/tutorials/electrostaticFoam/chargedWire/constant/polyMesh/boundary
+++ b/tutorials/electrostaticFoam/chargedWire/constant/polyMesh/boundary
@@ -20,35 +20,30 @@ FoamFile
     left
     {
         type            symmetryPlane;
-        physicalType    symmetryPlane;
         nFaces          110;
         startFace       17980;
     }
     right
     {
         type            symmetryPlane;
-        physicalType    symmetryPlane;
         nFaces          80;
         startFace       18090;
     }
     down
     {
         type            symmetryPlane;
-        physicalType    symmetryPlane;
         nFaces          110;
         startFace       18170;
     }
     up
     {
         type            patch;
-        physicalType    insulator;
         nFaces          80;
         startFace       18280;
     }
     hole
     {
         type            patch;
-        physicalType    fixedCharge;
         nFaces          60;
         startFace       18360;
     }
diff --git a/tutorials/engineFoam/kivaTest/Allrun b/tutorials/engineFoam/kivaTest/Allrun
index 395c85fed1e..0912af15e2f 100755
--- a/tutorials/engineFoam/kivaTest/Allrun
+++ b/tutorials/engineFoam/kivaTest/Allrun
@@ -3,7 +3,7 @@
 . $WM_PROJECT_DIR/bin/tools/RunFunctions
 
 # Get application name from directory
-application=`basename $PWD`
+application="engineFoam"
 
 runKivaToFoam ()
 {
diff --git a/tutorials/financialFoam/europeanCall/constant/polyMesh/boundary b/tutorials/financialFoam/europeanCall/constant/polyMesh/boundary
index 1d7fa326d15..b056d04d71d 100644
--- a/tutorials/financialFoam/europeanCall/constant/polyMesh/boundary
+++ b/tutorials/financialFoam/europeanCall/constant/polyMesh/boundary
@@ -20,14 +20,12 @@ FoamFile
     lowValue
     {
         type            patch;
-        physicalType    limitValue;
         nFaces          1;
         startFace       499;
     }
     highValue
     {
         type            patch;
-        physicalType    limitGradient;
         nFaces          1;
         startFace       500;
     }
diff --git a/tutorials/icoFoam/cavity/constant/polyMesh/boundary b/tutorials/icoFoam/cavity/constant/polyMesh/boundary
index 96a4ebeffd6..e1bb74e3e21 100644
--- a/tutorials/icoFoam/cavity/constant/polyMesh/boundary
+++ b/tutorials/icoFoam/cavity/constant/polyMesh/boundary
@@ -20,21 +20,18 @@ FoamFile
     movingWall
     {
         type            wall;
-        physicalType    wall;
         nFaces          20;
         startFace       760;
     }
     fixedWalls
     {
         type            wall;
-        physicalType    wall;
         nFaces          60;
         startFace       780;
     }
     frontAndBack
     {
         type            empty;
-        physicalType    empty;
         nFaces          800;
         startFace       840;
     }
diff --git a/tutorials/icoFoam/cavityClipped/constant/polyMesh/boundary b/tutorials/icoFoam/cavityClipped/constant/polyMesh/boundary
index 56439878032..6c905786094 100644
--- a/tutorials/icoFoam/cavityClipped/constant/polyMesh/boundary
+++ b/tutorials/icoFoam/cavityClipped/constant/polyMesh/boundary
@@ -20,21 +20,18 @@ FoamFile
     lid
     {
         type            wall;
-        physicalType    wall;
         nFaces          20;
         startFace       632;
     }
     fixedWalls
     {
         type            wall;
-        physicalType    wall;
         nFaces          60;
         startFace       652;
     }
     frontAndBack
     {
         type            empty;
-        physicalType    empty;
         nFaces          672;
         startFace       712;
     }
diff --git a/tutorials/icoFoam/cavityGrade/constant/polyMesh/boundary b/tutorials/icoFoam/cavityGrade/constant/polyMesh/boundary
index 96a4ebeffd6..e1bb74e3e21 100644
--- a/tutorials/icoFoam/cavityGrade/constant/polyMesh/boundary
+++ b/tutorials/icoFoam/cavityGrade/constant/polyMesh/boundary
@@ -20,21 +20,18 @@ FoamFile
     movingWall
     {
         type            wall;
-        physicalType    wall;
         nFaces          20;
         startFace       760;
     }
     fixedWalls
     {
         type            wall;
-        physicalType    wall;
         nFaces          60;
         startFace       780;
     }
     frontAndBack
     {
         type            empty;
-        physicalType    empty;
         nFaces          800;
         startFace       840;
     }
diff --git a/tutorials/interFoam/Allrun b/tutorials/interFoam/Allrun
index 1cfdef6c8d7..3e7961c94b8 100755
--- a/tutorials/interFoam/Allrun
+++ b/tutorials/interFoam/Allrun
@@ -25,7 +25,11 @@ setDamBreakFine ()
 }
 
 # Do damBreak
-(cd damBreak && foamRunTutorials)
+cd damBreak
+    runApplication blockMesh
+    runApplication setFields
+    runApplication $application
+cd ..
 
 # Clone case
 cloneCase damBreak damBreakFine
diff --git a/tutorials/interFoam/damBreak/constant/polyMesh/boundary b/tutorials/interFoam/damBreak/constant/polyMesh/boundary
index f22d2018cc7..368deff6d7e 100644
--- a/tutorials/interFoam/damBreak/constant/polyMesh/boundary
+++ b/tutorials/interFoam/damBreak/constant/polyMesh/boundary
@@ -20,28 +20,24 @@ FoamFile
     leftWall
     {
         type            wall;
-        physicalType    wall;
         nFaces          50;
         startFace       4432;
     }
     rightWall
     {
         type            wall;
-        physicalType    wall;
         nFaces          50;
         startFace       4482;
     }
     lowerWall
     {
         type            wall;
-        physicalType    wall;
         nFaces          62;
         startFace       4532;
     }
     atmosphere
     {
         type            patch;
-        physicalType    atmosphere;
         nFaces          46;
         startFace       4594;
     }
diff --git a/tutorials/laplacianFoam/flange/Allrun b/tutorials/laplacianFoam/flange/Allrun
index 29fb73dce67..6e3250d8c66 100755
--- a/tutorials/laplacianFoam/flange/Allrun
+++ b/tutorials/laplacianFoam/flange/Allrun
@@ -3,8 +3,7 @@
 . $WM_PROJECT_DIR/bin/tools/RunFunctions
 
 # Get application directory
-parentDir=`dirname $PWD`
-application=`basename $parentDir`
+application="laplacianFoam"
 
 runIdeasToFoam ()
 {
@@ -18,5 +17,5 @@ runIdeasToFoam ()
 
 runIdeasToFoam flange.ans 0.001
 runApplication $application
-runApplication foamToFieldview
+runApplication foamToFieldview9
 runApplication foamToEnsight
diff --git a/tutorials/lesInterFoam/nozzleFlow2D/Allrun b/tutorials/lesInterFoam/nozzleFlow2D/Allrun
index 04f4170e1fb..8b76469d5ee 100755
--- a/tutorials/lesInterFoam/nozzleFlow2D/Allrun
+++ b/tutorials/lesInterFoam/nozzleFlow2D/Allrun
@@ -3,7 +3,7 @@
 . $WM_PROJECT_DIR/bin/tools/RunFunctions
 
 # Get application name from directory
-application=`basename $PWD`
+application="lesInterFoam"
 
 runRefineMesh ()
 {
diff --git a/tutorials/lesInterFoam/nozzleFlow2D/constant/polyMesh/boundary b/tutorials/lesInterFoam/nozzleFlow2D/constant/polyMesh/boundary
index 027d5ba1c05..0f0f96a3f4b 100644
--- a/tutorials/lesInterFoam/nozzleFlow2D/constant/polyMesh/boundary
+++ b/tutorials/lesInterFoam/nozzleFlow2D/constant/polyMesh/boundary
@@ -27,7 +27,6 @@ FoamFile
 axis
 {
     type empty;
-    physicalType empty;
     nFaces 0;
     startFace 41031;
 }
@@ -35,7 +34,6 @@ axis
 inlet
 {
     type patch;
-    physicalType inlet;
     nFaces 30;
     startFace 41031;
 }
@@ -43,7 +41,6 @@ inlet
 wall
 {
     type wall;
-    physicalType wall;
     nFaces 70;
     startFace 41061;
 }
@@ -51,7 +48,6 @@ wall
 atmosphere
 {
     type patch;
-    physicalType atmosphere;
     nFaces 175;
     startFace 41131;
 }
@@ -59,7 +55,6 @@ atmosphere
 front
 {
     type wedge;
-    physicalType wedge;
     nFaces 20603;
     startFace 41306;
 }
@@ -67,7 +62,6 @@ front
 back
 {
     type wedge;
-    physicalType wedge;
     nFaces 20603;
     startFace 61909;
 }
diff --git a/tutorials/mhdFoam/Allrun b/tutorials/mhdFoam/Allrun
index 57065d0204e..df0077cf053 100755
--- a/tutorials/mhdFoam/Allrun
+++ b/tutorials/mhdFoam/Allrun
@@ -3,7 +3,7 @@
 . $WM_PROJECT_DIR/bin/tools/RunFunctions
 
 # Get application name from directory
-application=`basename $PWD`
+application="mdEquilibrationFoam"
 
 (cd hartmann && runApplication blockMesh)
 (cd hartmann && runApplication $application)
diff --git a/tutorials/mhdFoam/hartmann/constant/polyMesh/boundary b/tutorials/mhdFoam/hartmann/constant/polyMesh/boundary
index 3dda1645b44..92fca3121d8 100644
--- a/tutorials/mhdFoam/hartmann/constant/polyMesh/boundary
+++ b/tutorials/mhdFoam/hartmann/constant/polyMesh/boundary
@@ -20,35 +20,30 @@ FoamFile
     inlet
     {
         type            patch;
-        physicalType    inlet;
         nFaces          40;
         startFace       7860;
     }
     outlet
     {
         type            patch;
-        physicalType    outlet;
         nFaces          40;
         startFace       7900;
     }
     lowerWall
     {
         type            patch;
-        physicalType    wall;
         nFaces          100;
         startFace       7940;
     }
     upperWall
     {
         type            patch;
-        physicalType    wall;
         nFaces          100;
         startFace       8040;
     }
     frontAndBack
     {
         type            empty;
-        physicalType    empty;
         nFaces          8000;
         startFace       8140;
     }
diff --git a/tutorials/multiphaseInterFoam/damBreak4phase/constant/polyMesh/boundary b/tutorials/multiphaseInterFoam/damBreak4phase/constant/polyMesh/boundary
index e5db453b8ee..c02d92f111e 100644
--- a/tutorials/multiphaseInterFoam/damBreak4phase/constant/polyMesh/boundary
+++ b/tutorials/multiphaseInterFoam/damBreak4phase/constant/polyMesh/boundary
@@ -27,7 +27,6 @@ FoamFile
 leftWall
 {
     type wall;
-    physicalType wallNoSurfaceTension;
     nFaces 50;
     startFace 4432;
 }
@@ -35,7 +34,6 @@ leftWall
 rightWall
 {
     type wall;
-    physicalType wallNoSurfaceTension;
     nFaces 50;
     startFace 4482;
 }
@@ -43,7 +41,6 @@ rightWall
 lowerWall
 {
     type wall;
-    physicalType wallNoSurfaceTension;
     nFaces 62;
     startFace 4532;
 }
@@ -51,7 +48,6 @@ lowerWall
 atmosphere
 {
     type patch;
-    physicalType atmosphere;
     nFaces 46;
     startFace 4594;
 }
diff --git a/tutorials/multiphaseInterFoam/damBreak4phaseFine/constant/polyMesh/boundary b/tutorials/multiphaseInterFoam/damBreak4phaseFine/constant/polyMesh/boundary
index 3d24ef14d08..4ccefa5a284 100644
--- a/tutorials/multiphaseInterFoam/damBreak4phaseFine/constant/polyMesh/boundary
+++ b/tutorials/multiphaseInterFoam/damBreak4phaseFine/constant/polyMesh/boundary
@@ -27,7 +27,6 @@ FoamFile
 leftWall
 {
     type wall;
-    physicalType wallNoSurfaceTension;
     nFaces 195;
     startFace 68014;
 }
@@ -35,7 +34,6 @@ leftWall
 rightWall
 {
     type wall;
-    physicalType wallNoSurfaceTension;
     nFaces 195;
     startFace 68209;
 }
@@ -43,7 +41,6 @@ rightWall
 lowerWall
 {
     type wall;
-    physicalType wallNoSurfaceTension;
     nFaces 206;
     startFace 68404;
 }
@@ -51,7 +48,6 @@ lowerWall
 atmosphere
 {
     type patch;
-    physicalType atmosphere;
     nFaces 176;
     startFace 68610;
 }
diff --git a/tutorials/nonNewtonianIcoFoam/offsetCylinder/constant/polyMesh/boundary b/tutorials/nonNewtonianIcoFoam/offsetCylinder/constant/polyMesh/boundary
index 804204d6b90..00ee67f8768 100644
--- a/tutorials/nonNewtonianIcoFoam/offsetCylinder/constant/polyMesh/boundary
+++ b/tutorials/nonNewtonianIcoFoam/offsetCylinder/constant/polyMesh/boundary
@@ -27,7 +27,6 @@ FoamFile
 left
 {
     type patch;
-    physicalType inlet;
     nFaces 35;
     startFace 3485;
 }
@@ -35,7 +34,6 @@ left
 right
 {
     type patch;
-    physicalType outlet;
     nFaces 35;
     startFace 3520;
 }
@@ -43,7 +41,6 @@ right
 down
 {
     type wall;
-    physicalType wall;
     nFaces 40;
     startFace 3555;
 }
@@ -51,7 +48,6 @@ down
 up
 {
     type wall;
-    physicalType wall;
     nFaces 40;
     startFace 3595;
 }
@@ -59,7 +55,6 @@ up
 cylinder
 {
     type wall;
-    physicalType wall;
     nFaces 80;
     startFace 3635;
 }
diff --git a/tutorials/oodles/pitzDaily/constant/polyMesh/boundary b/tutorials/oodles/pitzDaily/constant/polyMesh/boundary
index 3bafee60014..54a21ace22a 100644
--- a/tutorials/oodles/pitzDaily/constant/polyMesh/boundary
+++ b/tutorials/oodles/pitzDaily/constant/polyMesh/boundary
@@ -27,7 +27,6 @@ FoamFile
 inlet
 {
     type patch;
-    physicalType turbulentInlet;
     nFaces 30;
     startFace 24170;
 }
@@ -35,7 +34,6 @@ inlet
 outlet
 {
     type patch;
-    physicalType inletOutlet;
     nFaces 57;
     startFace 24200;
 }
@@ -43,7 +41,6 @@ outlet
 upperWall
 {
     type wall;
-    physicalType wall;
     nFaces 223;
     startFace 24257;
 }
@@ -51,7 +48,6 @@ upperWall
 lowerWall
 {
     type wall;
-    physicalType wall;
     nFaces 250;
     startFace 24480;
 }
@@ -59,7 +55,6 @@ lowerWall
 frontAndBack
 {
     type empty;
-    physicalType empty;
     nFaces 24450;
     startFace 24730;
 }
diff --git a/tutorials/oodles/pitzDailyDirectMapped/Allrun b/tutorials/oodles/pitzDailyDirectMapped/Allrun
index fcfe81e699c..1e010624787 100755
--- a/tutorials/oodles/pitzDailyDirectMapped/Allrun
+++ b/tutorials/oodles/pitzDailyDirectMapped/Allrun
@@ -3,7 +3,7 @@
 . $WM_PROJECT_DIR/bin/tools/RunFunctions
 
 # Get application name from directory
-application=`basename $PWD`
+application="oodles"
 
 runApplication blockMesh
 runApplication changeDictionary
diff --git a/tutorials/potentialFoam/cylinder/Allrun b/tutorials/potentialFoam/cylinder/Allrun
index 2e95e61ac47..b4a0869ee59 100755
--- a/tutorials/potentialFoam/cylinder/Allrun
+++ b/tutorials/potentialFoam/cylinder/Allrun
@@ -2,8 +2,7 @@
 # Source tutorial run functions
 . $WM_PROJECT_DIR/bin/tools/RunFunctions
 
-# Get application name from directory
-application=`basename $PWD`
+application="potentialFoam"
 
 runApplication blockMesh
 runApplication $application
diff --git a/tutorials/potentialFoam/cylinder/constant/polyMesh/boundary b/tutorials/potentialFoam/cylinder/constant/polyMesh/boundary
index 6b46cab803c..60a46d69bca 100644
--- a/tutorials/potentialFoam/cylinder/constant/polyMesh/boundary
+++ b/tutorials/potentialFoam/cylinder/constant/polyMesh/boundary
@@ -20,35 +20,30 @@ FoamFile
     down
     {
         type            symmetryPlane;
-        physicalType    symmetryPlane;
         nFaces          60;
         startFace       3890;
     }
     right
     {
         type            patch;
-        physicalType    outlet;
         nFaces          30;
         startFace       3950;
     }
     up
     {
         type            symmetryPlane;
-        physicalType    symmetryPlane;
         nFaces          60;
         startFace       3980;
     }
     left
     {
         type            patch;
-        physicalType    inlet;
         nFaces          30;
         startFace       4040;
     }
     cylinder
     {
         type            symmetryPlane;
-        physicalType    symmetryPlane;
         nFaces          40;
         startFace       4070;
     }
diff --git a/tutorials/potentialFoam/pitzDaily/Allrun b/tutorials/potentialFoam/pitzDaily/Allrun
index 5918334c930..60190328819 100755
--- a/tutorials/potentialFoam/pitzDaily/Allrun
+++ b/tutorials/potentialFoam/pitzDaily/Allrun
@@ -2,8 +2,7 @@
 # Source tutorial run functions
 . $WM_PROJECT_DIR/bin/tools/RunFunctions
 
-# Get application name from directory
-application=`basename $PWD`
+application="potentialFoam"
 
 runApplication blockMesh
 runApplication $application
diff --git a/tutorials/potentialFoam/pitzDaily/constant/polyMesh/boundary b/tutorials/potentialFoam/pitzDaily/constant/polyMesh/boundary
index 6eddca2b5cd..d26df5c77e0 100644
--- a/tutorials/potentialFoam/pitzDaily/constant/polyMesh/boundary
+++ b/tutorials/potentialFoam/pitzDaily/constant/polyMesh/boundary
@@ -27,7 +27,6 @@ FoamFile
 inlet
 {
     type patch;
-    physicalType inlet;
     nFaces 30;
     startFace 24170;
 }
@@ -35,7 +34,6 @@ inlet
 outlet
 {
     type patch;
-    physicalType outlet;
     nFaces 57;
     startFace 24200;
 }
@@ -43,7 +41,6 @@ outlet
 upperWall
 {
     type wall;
-    physicalType wall;
     nFaces 223;
     startFace 24257;
 }
@@ -51,7 +48,6 @@ upperWall
 lowerWall
 {
     type wall;
-    physicalType wall;
     nFaces 250;
     startFace 24480;
 }
@@ -59,7 +55,6 @@ lowerWall
 frontAndBack
 {
     type empty;
-    physicalType empty;
     nFaces 24450;
     startFace 24730;
 }
diff --git a/tutorials/rasInterFoam/Allrun b/tutorials/rasInterFoam/Allrun
index 1cfdef6c8d7..c01b35fcbd4 100755
--- a/tutorials/rasInterFoam/Allrun
+++ b/tutorials/rasInterFoam/Allrun
@@ -2,8 +2,7 @@
 # Source tutorial run functions
 . $WM_PROJECT_DIR/bin/tools/RunFunctions
 
-# Get application name from directory
-application=`basename $PWD`
+application="rasInterFoam"
 
 setDamBreakFine ()
 {
diff --git a/tutorials/rasInterFoam/damBreak/Allrun b/tutorials/rasInterFoam/damBreak/Allrun
index 487efbda1b7..599b286f3d8 100755
--- a/tutorials/rasInterFoam/damBreak/Allrun
+++ b/tutorials/rasInterFoam/damBreak/Allrun
@@ -3,7 +3,7 @@
 . $WM_PROJECT_DIR/bin/tools/RunFunctions
 
 # Get application name from directory
-application=`basename $PWD`
+application="interFoam"
 
 runApplication blockMesh
 runApplication setFields
diff --git a/tutorials/rasInterFoam/damBreak/constant/polyMesh/boundary b/tutorials/rasInterFoam/damBreak/constant/polyMesh/boundary
index 1f6dab6fbcb..f7cca85ea52 100644
--- a/tutorials/rasInterFoam/damBreak/constant/polyMesh/boundary
+++ b/tutorials/rasInterFoam/damBreak/constant/polyMesh/boundary
@@ -27,7 +27,6 @@ FoamFile
 leftWall
 {
     type wall;
-    physicalType wallFunctions;
     nFaces 50;
     startFace 4432;
 }
@@ -35,7 +34,6 @@ leftWall
 rightWall
 {
     type wall;
-    physicalType wallFunctions;
     nFaces 50;
     startFace 4482;
 }
@@ -43,7 +41,6 @@ rightWall
 lowerWall
 {
     type wall;
-    physicalType wallFunctions;
     nFaces 62;
     startFace 4532;
 }
@@ -51,7 +48,6 @@ lowerWall
 atmosphere
 {
     type patch;
-    physicalType atmosphere;
     nFaces 46;
     startFace 4594;
 }
diff --git a/tutorials/rhoSonicFoam/forwardStep/constant/polyMesh/boundary b/tutorials/rhoSonicFoam/forwardStep/constant/polyMesh/boundary
index a2c35b73615..df1d8f65423 100644
--- a/tutorials/rhoSonicFoam/forwardStep/constant/polyMesh/boundary
+++ b/tutorials/rhoSonicFoam/forwardStep/constant/polyMesh/boundary
@@ -27,7 +27,6 @@ FoamFile
 inlet
 {
     type patch;
-    physicalType supersonicInlet;
     nFaces 50;
     startFace 10325;
 }
@@ -35,7 +34,6 @@ inlet
 outlet
 {
     type patch;
-    physicalType extrapolatedOutlet;
     nFaces 40;
     startFace 10375;
 }
@@ -43,7 +41,6 @@ outlet
 bottom
 {
     type symmetryPlane;
-    physicalType symmetryPlane;
     nFaces 25;
     startFace 10415;
 }
@@ -51,7 +48,6 @@ bottom
 top
 {
     type symmetryPlane;
-    physicalType symmetryPlane;
     nFaces 125;
     startFace 10440;
 }
@@ -59,7 +55,6 @@ top
 obstacle
 {
     type patch;
-    physicalType adiabaticWall;
     nFaces 110;
     startFace 10565;
 }
diff --git a/tutorials/rhoSonicFoam/shockTube/constant/polyMesh/boundary b/tutorials/rhoSonicFoam/shockTube/constant/polyMesh/boundary
index 7f1d0779bcc..60d70bf4882 100644
--- a/tutorials/rhoSonicFoam/shockTube/constant/polyMesh/boundary
+++ b/tutorials/rhoSonicFoam/shockTube/constant/polyMesh/boundary
@@ -27,7 +27,6 @@ FoamFile
 sides
 {
     type patch;
-    physicalType extrapolatedOutlet;
     nFaces 2;
     startFace 999;
 }
@@ -35,7 +34,6 @@ sides
 empty
 {
     type empty;
-    physicalType empty;
     nFaces 4000;
     startFace 1001;
 }
diff --git a/tutorials/rhoTurbFoam/cavity/constant/polyMesh/boundary b/tutorials/rhoTurbFoam/cavity/constant/polyMesh/boundary
index f5e1930ee4e..dcd695fba9f 100644
--- a/tutorials/rhoTurbFoam/cavity/constant/polyMesh/boundary
+++ b/tutorials/rhoTurbFoam/cavity/constant/polyMesh/boundary
@@ -27,7 +27,6 @@ FoamFile
 movingWall
 {
     type wall;
-    physicalType adiabaticWallFunctions;
     nFaces 20;
     startFace 760;
 }
@@ -35,7 +34,6 @@ movingWall
 fixedWalls
 {
     type wall;
-    physicalType adiabaticWallFunctions;
     nFaces 60;
     startFace 780;
 }
@@ -43,7 +41,6 @@ fixedWalls
 frontAndBack
 {
     type empty;
-    physicalType empty;
     nFaces 800;
     startFace 840;
 }
diff --git a/tutorials/rhopSonicFoam/shockTube/Allrun b/tutorials/rhopSonicFoam/shockTube/Allrun
index 487efbda1b7..6415109243e 100755
--- a/tutorials/rhopSonicFoam/shockTube/Allrun
+++ b/tutorials/rhopSonicFoam/shockTube/Allrun
@@ -2,8 +2,7 @@
 # Source tutorial run functions
 . $WM_PROJECT_DIR/bin/tools/RunFunctions
 
-# Get application name from directory
-application=`basename $PWD`
+application="rhopSonicFoam"
 
 runApplication blockMesh
 runApplication setFields
diff --git a/tutorials/rhopSonicFoam/shockTube/constant/polyMesh/boundary b/tutorials/rhopSonicFoam/shockTube/constant/polyMesh/boundary
index 22fdcf78959..9534f2433bb 100644
--- a/tutorials/rhopSonicFoam/shockTube/constant/polyMesh/boundary
+++ b/tutorials/rhopSonicFoam/shockTube/constant/polyMesh/boundary
@@ -27,7 +27,6 @@ FoamFile
 sides
 {
     type patch;
-    physicalType outletAdiabatic;
     nFaces 2;
     startFace 99;
 }
@@ -35,7 +34,6 @@ sides
 empty
 {
     type empty;
-    physicalType empty;
     nFaces 400;
     startFace 101;
 }
diff --git a/tutorials/scalarTransportFoam/pitzDaily/constant/polyMesh/boundary b/tutorials/scalarTransportFoam/pitzDaily/constant/polyMesh/boundary
index cae91515bad..6f5ebefb5b8 100644
--- a/tutorials/scalarTransportFoam/pitzDaily/constant/polyMesh/boundary
+++ b/tutorials/scalarTransportFoam/pitzDaily/constant/polyMesh/boundary
@@ -27,7 +27,6 @@ FoamFile
 inlet
 {
     type patch;
-    physicalType inlet;
     nFaces 30;
     startFace 24170;
 }
@@ -35,7 +34,6 @@ inlet
 outlet
 {
     type patch;
-    physicalType outlet;
     nFaces 57;
     startFace 24200;
 }
@@ -43,7 +41,6 @@ outlet
 upperWall
 {
     type wall;
-    physicalType wall;
     nFaces 223;
     startFace 24257;
 }
@@ -51,7 +48,6 @@ upperWall
 lowerWall
 {
     type wall;
-    physicalType wall;
     nFaces 250;
     startFace 24480;
 }
@@ -59,7 +55,6 @@ lowerWall
 frontAndBack
 {
     type empty;
-    physicalType empty;
     nFaces 24450;
     startFace 24730;
 }
diff --git a/tutorials/settlingFoam/dahl/constant/polyMesh/boundary b/tutorials/settlingFoam/dahl/constant/polyMesh/boundary
index b365e0a08c5..c456af065d6 100644
--- a/tutorials/settlingFoam/dahl/constant/polyMesh/boundary
+++ b/tutorials/settlingFoam/dahl/constant/polyMesh/boundary
@@ -27,7 +27,6 @@ FoamFile
 inlet
 {
     type patch;
-    physicalType inlet;
     nFaces 40;
     startFace 15760;
 }
@@ -35,7 +34,6 @@ inlet
 outlet
 {
     type patch;
-    physicalType outlet;
     nFaces 4;
     startFace 15800;
 }
@@ -43,7 +41,6 @@ outlet
 bottomWall
 {
     type patch;
-    physicalType wallFunctions;
     nFaces 200;
     startFace 15804;
 }
@@ -51,7 +48,6 @@ bottomWall
 endWall
 {
     type wall;
-    physicalType wallFunctions;
     nFaces 36;
     startFace 16004;
 }
@@ -59,7 +55,6 @@ endWall
 top
 {
     type symmetryPlane;
-    physicalType symmetryPlane;
     nFaces 200;
     startFace 16040;
 }
@@ -67,7 +62,6 @@ top
 frontAndBack
 {
     type empty;
-    physicalType empty;
     nFaces 16000;
     startFace 16240;
 }
diff --git a/tutorials/settlingFoam/tank3D/Allclean b/tutorials/settlingFoam/tank3D/Allclean
index b0dd9b61839..a657f303ba2 100755
--- a/tutorials/settlingFoam/tank3D/Allclean
+++ b/tutorials/settlingFoam/tank3D/Allclean
@@ -1,6 +1,5 @@
 #!/bin/sh
 
-# Source tutorial clean functions
-. $WM_PROJECT_DIR/bin/tools/CleanFunctions
+# Clean time folders only
 
-cleanTimeDirectories
+rm -rf *[1-9]*
diff --git a/tutorials/settlingFoam/tank3D/Allrun b/tutorials/settlingFoam/tank3D/Allrun
index 405b0877a42..1ce228b8f6a 100755
--- a/tutorials/settlingFoam/tank3D/Allrun
+++ b/tutorials/settlingFoam/tank3D/Allrun
@@ -2,7 +2,7 @@
 # Source tutorial run functions
 . $WM_PROJECT_DIR/bin/tools/RunFunctions
 
-# Get application name from directory
-application=`basename $PWD`
+application="settlingFoam"
 
+#runApplication blockMesh
 runApplication $application
diff --git a/tutorials/settlingFoam/tank3D/Allrun_bak b/tutorials/settlingFoam/tank3D/Allrun_bak
deleted file mode 100755
index 448d114ab9e..00000000000
--- a/tutorials/settlingFoam/tank3D/Allrun_bak
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/sh
-
-# Get application name from directory
-parentDir=`dirname $PWD`
-application=`basename $parentDir`
-
-# Find and source additional functions
-tutorialsDir='.'
-while [ ! -f $tutorialsDir/RunFunctions ]
-do
-    tutorialsDir="../$tutorialsDir"
-done
-. $tutorialsDir/RunFunctions
-
-
-runApplication $application
-
diff --git a/tutorials/settlingFoam/tank3D/constant/polyMesh/boundary b/tutorials/settlingFoam/tank3D/constant/polyMesh/boundary
index c881493356a..bd58d695288 100644
--- a/tutorials/settlingFoam/tank3D/constant/polyMesh/boundary
+++ b/tutorials/settlingFoam/tank3D/constant/polyMesh/boundary
@@ -26,7 +26,6 @@ FoamFile
     SYMP3
     {
         type            symmetryPlane;
-        physicalType    symmetryPlane;
         startFace       53708;
         nFaces          3191;
     }
@@ -34,7 +33,6 @@ FoamFile
     INLE1
     {
         type            patch;
-        physicalType    inlet;
         startFace       56899;
         nFaces          45;
     }
@@ -42,7 +40,6 @@ FoamFile
     OUTL9
     {
         type            patch;
-        physicalType    fixedVelocityOutlet;
         startFace       56944;
         nFaces          11;
     }
@@ -50,7 +47,6 @@ FoamFile
     OUTL10
     {
         type            patch;
-        physicalType    fixedVelocityOutlet;
         startFace       56955;
         nFaces          11;
     }
@@ -58,7 +54,6 @@ FoamFile
     OUTL11
     {
         type            patch;
-        physicalType    fixedVelocityOutlet;
         startFace       56966;
         nFaces          11;
     }
@@ -66,7 +61,6 @@ FoamFile
     OUTL12
     {
         type            patch;
-        physicalType    fixedVelocityOutlet;
         startFace       56977;
         nFaces          11;
     }
@@ -74,7 +68,6 @@ FoamFile
     WALL6
     {
         type            wall;
-        physicalType    wallFunctions;
         startFace       56988;
         nFaces          1474;
     }
@@ -82,7 +75,6 @@ FoamFile
     WALL8
     {
         type            wall;
-        physicalType    wallFunctions;
         startFace       58462;
         nFaces          1640;
     }
@@ -90,7 +82,6 @@ FoamFile
     WALL61
     {
         type            wall;
-        physicalType    wallFunctions;
         startFace       60102;
         nFaces          44;
     }
@@ -98,7 +89,6 @@ FoamFile
     WALL62
     {
         type            wall;
-        physicalType    wallFunctions;
         startFace       60146;
         nFaces          78;
     }
@@ -106,7 +96,6 @@ FoamFile
     WALL63
     {
         type            wall;
-        physicalType    wallFunctions;
         startFace       60224;
         nFaces          255;
     }
@@ -114,7 +103,6 @@ FoamFile
     WALL64
     {
         type            wall;
-        physicalType    wallFunctions;
         startFace       60479;
         nFaces          157;
     }
@@ -122,7 +110,6 @@ FoamFile
     WALL65
     {
         type            wall;
-        physicalType    wallFunctions;
         startFace       60636;
         nFaces          35;
     }
@@ -130,7 +117,6 @@ FoamFile
     WALL66
     {
         type            wall;
-        physicalType    wallFunctions;
         startFace       60671;
         nFaces          60;
     }
@@ -138,7 +124,6 @@ FoamFile
     WALL67
     {
         type            wall;
-        physicalType    wallFunctions;
         startFace       60731;
         nFaces          55;
     }
@@ -146,7 +131,6 @@ FoamFile
     WALL68
     {
         type            wall;
-        physicalType    wallFunctions;
         startFace       60786;
         nFaces          116;
     }
@@ -154,7 +138,6 @@ FoamFile
     WALL69
     {
         type            wall;
-        physicalType    wallFunctions;
         startFace       60902;
         nFaces          24;
     }
@@ -162,7 +145,6 @@ FoamFile
     WALL7
     {
         type            wall;
-        physicalType    wallFunctions;
         startFace       60926;
         nFaces          121;
     }
@@ -170,7 +152,6 @@ FoamFile
     WALL70
     {
         type            wall;
-        physicalType    wallFunctions;
         startFace       61047;
         nFaces          182;
     }
@@ -178,7 +159,6 @@ FoamFile
     OUTL15
     {
         type            patch;
-        physicalType    outlet;
         startFace       61229;
         nFaces          14;
     }
diff --git a/tutorials/simpleFoam/pitzDailyExptInlet/constant/polyMesh/boundary b/tutorials/simpleFoam/pitzDailyExptInlet/constant/polyMesh/boundary
index a2357014925..87def863693 100644
--- a/tutorials/simpleFoam/pitzDailyExptInlet/constant/polyMesh/boundary
+++ b/tutorials/simpleFoam/pitzDailyExptInlet/constant/polyMesh/boundary
@@ -27,7 +27,6 @@ FoamFile
 inlet
 {
     type patch;
-    physicalType inlet;
     nFaces 30;
     startFace 24170;
 }
@@ -35,7 +34,6 @@ inlet
 outlet
 {
     type patch;
-    physicalType outlet;
     nFaces 57;
     startFace 24200;
 }
@@ -43,7 +41,6 @@ outlet
 upperWall
 {
     type wall;
-    physicalType wallFunctions;
     nFaces 223;
     startFace 24257;
 }
@@ -51,7 +48,6 @@ upperWall
 lowerWall
 {
     type wall;
-    physicalType wallFunctions;
     nFaces 250;
     startFace 24480;
 }
@@ -59,7 +55,6 @@ lowerWall
 frontAndBack
 {
     type empty;
-    physicalType empty;
     nFaces 24450;
     startFace 24730;
 }
diff --git a/tutorials/solidDisplacementFoam/plateHole/constant/polyMesh/boundary b/tutorials/solidDisplacementFoam/plateHole/constant/polyMesh/boundary
index ff84aad5ed6..d4d7d874113 100644
--- a/tutorials/solidDisplacementFoam/plateHole/constant/polyMesh/boundary
+++ b/tutorials/solidDisplacementFoam/plateHole/constant/polyMesh/boundary
@@ -20,7 +20,6 @@ FoamFile
 left
 {
     type symmetryPlane;
-    physicalType symmetryPlane;
     nFaces 30;
     startFace 1930;
 }
@@ -28,7 +27,6 @@ left
 right
 {
     type patch;
-    physicalType tractionAdiabatic;
     nFaces 30;
     startFace 1960;
 }
@@ -36,7 +34,6 @@ right
 down
 {
     type symmetryPlane;
-    physicalType symmetryPlane;
     nFaces 30;
     startFace 1990;
 }
@@ -44,7 +41,6 @@ down
 up
 {
     type patch;
-    physicalType tractionAdiabatic;
     nFaces 30;
     startFace 2020;
 }
@@ -52,7 +48,6 @@ up
 hole
 {
     type patch;
-    physicalType tractionAdiabatic;
     nFaces 20;
     startFace 2050;
 }
@@ -60,7 +55,6 @@ hole
 frontAndBack
 {
     type empty;
-    physicalType empty;
     nFaces 2000;
     startFace 2070;
 }
diff --git a/tutorials/sonicFoam/forwardStep/constant/polyMesh/boundary b/tutorials/sonicFoam/forwardStep/constant/polyMesh/boundary
index 68bf28b81ec..5ffd72e2806 100644
--- a/tutorials/sonicFoam/forwardStep/constant/polyMesh/boundary
+++ b/tutorials/sonicFoam/forwardStep/constant/polyMesh/boundary
@@ -27,7 +27,6 @@ FoamFile
 inlet
 {
     type patch;
-    physicalType supersonicInlet;
     nFaces 50;
     startFace 10325;
 }
@@ -35,7 +34,6 @@ inlet
 outlet
 {
     type patch;
-    physicalType pressureTransmissiveOutlet;
     nFaces 40;
     startFace 10375;
 }
@@ -43,7 +41,6 @@ outlet
 bottom
 {
     type symmetryPlane;
-    physicalType symmetryPlane;
     nFaces 25;
     startFace 10415;
 }
@@ -51,7 +48,6 @@ bottom
 top
 {
     type symmetryPlane;
-    physicalType symmetryPlane;
     nFaces 125;
     startFace 10440;
 }
@@ -59,7 +55,6 @@ top
 obstacle
 {
     type patch;
-    physicalType adiabaticWall;
     nFaces 110;
     startFace 10565;
 }
diff --git a/tutorials/sonicFoam/shockTube/Allrun b/tutorials/sonicFoam/shockTube/Allrun
index 326fa2b5640..6dc6509c858 100755
--- a/tutorials/sonicFoam/shockTube/Allrun
+++ b/tutorials/sonicFoam/shockTube/Allrun
@@ -2,8 +2,7 @@
 # Source tutorial run functions
 . $WM_PROJECT_DIR/bin/tools/RunFunctions
 
-# Get application name from directory
-application=`basename $PWD`
+application="sonicFoam"
 
 runApplication blockMesh
 runApplication setFields
diff --git a/tutorials/sonicFoam/shockTube/constant/polyMesh/boundary b/tutorials/sonicFoam/shockTube/constant/polyMesh/boundary
index 1a7a3ab365e..2fde53e22fd 100644
--- a/tutorials/sonicFoam/shockTube/constant/polyMesh/boundary
+++ b/tutorials/sonicFoam/shockTube/constant/polyMesh/boundary
@@ -27,7 +27,6 @@ FoamFile
 sides
 {
     type patch;
-    physicalType extrapolatedOutlet;
     nFaces 2;
     startFace 999;
 }
@@ -35,7 +34,6 @@ sides
 empty
 {
     type empty;
-    physicalType empty;
     nFaces 4000;
     startFace 1001;
 }
diff --git a/tutorials/sonicLiquidFoam/decompressionTank/constant/polyMesh/boundary b/tutorials/sonicLiquidFoam/decompressionTank/constant/polyMesh/boundary
index a83b39fd94e..9e11a4469a2 100644
--- a/tutorials/sonicLiquidFoam/decompressionTank/constant/polyMesh/boundary
+++ b/tutorials/sonicLiquidFoam/decompressionTank/constant/polyMesh/boundary
@@ -20,35 +20,30 @@ FoamFile
     outerWall
     {
         type            wall;
-        physicalType    wall;
         nFaces          225;
         startFace       7275;
     }
     axis
     {
         type            symmetryPlane;
-        physicalType    symmetryPlane;
         nFaces          120;
         startFace       7500;
     }
     nozzle
     {
         type            patch;
-        physicalType    pressureOutlet;
         nFaces          5;
         startFace       7620;
     }
     back
     {
         type            empty;
-        physicalType    empty;
         nFaces          3725;
         startFace       7625;
     }
     front
     {
         type            empty;
-        physicalType    empty;
         nFaces          3725;
         startFace       11350;
     }
diff --git a/tutorials/sonicTurbFoam/prism/constant/polyMesh/boundary b/tutorials/sonicTurbFoam/prism/constant/polyMesh/boundary
index a023bedf5c0..aeadb4a26f2 100644
--- a/tutorials/sonicTurbFoam/prism/constant/polyMesh/boundary
+++ b/tutorials/sonicTurbFoam/prism/constant/polyMesh/boundary
@@ -20,35 +20,30 @@ FoamFile
     inlet
     {
         type            patch;
-        physicalType    supersonicInlet;
         nFaces          48;
         startFace       13081;
     }
     outlet
     {
         type            patch;
-        physicalType    pressureTransmissiveOutlet;
         nFaces          68;
         startFace       13129;
     }
     bottomWall
     {
         type            patch;
-        physicalType    supersonicFreestream;
         nFaces          107;
         startFace       13197;
     }
     topWall
     {
         type            patch;
-        physicalType    supersonicFreestream;
         nFaces          107;
         startFace       13304;
     }
     prismWall
     {
         type            wall;
-        physicalType    adiabaticWallFunctions;
         nFaces          52;
         startFace       13411;
     }
diff --git a/tutorials/turbFoam/cavity/constant/polyMesh/boundary b/tutorials/turbFoam/cavity/constant/polyMesh/boundary
index 446d49ac817..e1bb74e3e21 100644
--- a/tutorials/turbFoam/cavity/constant/polyMesh/boundary
+++ b/tutorials/turbFoam/cavity/constant/polyMesh/boundary
@@ -20,21 +20,18 @@ FoamFile
     movingWall
     {
         type            wall;
-        physicalType    wallFunctions;
         nFaces          20;
         startFace       760;
     }
     fixedWalls
     {
         type            wall;
-        physicalType    wallFunctions;
         nFaces          60;
         startFace       780;
     }
     frontAndBack
     {
         type            empty;
-        physicalType    empty;
         nFaces          800;
         startFace       840;
     }
diff --git a/tutorials/twoPhaseEulerFoam/bed/constant/polyMesh/boundary b/tutorials/twoPhaseEulerFoam/bed/constant/polyMesh/boundary
index 490a269bd52..fe8182d31ac 100644
--- a/tutorials/twoPhaseEulerFoam/bed/constant/polyMesh/boundary
+++ b/tutorials/twoPhaseEulerFoam/bed/constant/polyMesh/boundary
@@ -20,21 +20,18 @@ FoamFile
     top
     {
         type            patch;
-        physicalType    inletOutlet;
         nFaces          25;
         startFace       6100;
     }
     bottom
     {
         type            patch;
-        physicalType    inlet;
         nFaces          25;
         startFace       6125;
     }
     walls
     {
         type            wall;
-        physicalType    wallFunctions;
         nFaces          250;
         startFace       6150;
     }
diff --git a/tutorials/twoPhaseEulerFoam/bubbleColumn/constant/polyMesh/boundary b/tutorials/twoPhaseEulerFoam/bubbleColumn/constant/polyMesh/boundary
index 2438e4eb137..4f3e7e227b1 100644
--- a/tutorials/twoPhaseEulerFoam/bubbleColumn/constant/polyMesh/boundary
+++ b/tutorials/twoPhaseEulerFoam/bubbleColumn/constant/polyMesh/boundary
@@ -27,7 +27,6 @@ FoamFile
 inlet
 {
     type patch;
-    physicalType inlet;
     nFaces 25;
     startFace 3650;
 }
@@ -35,7 +34,6 @@ inlet
 outlet
 {
     type patch;
-    physicalType inletOutlet;
     nFaces 25;
     startFace 3675;
 }
@@ -43,7 +41,6 @@ outlet
 walls
 {
     type wall;
-    physicalType wallFunctions;
     nFaces 150;
     startFace 3700;
 }
-- 
GitLab