From ad24568623219d93386dc4fcf625cb2372a7c9d4 Mon Sep 17 00:00:00 2001
From: Chris Greenshields <http://cfd.direct>
Date: Fri, 13 Nov 2015 16:59:58 +0000
Subject: [PATCH] Redundant boundary.org files removed from tutorial cases

---
 tutorials/basic/laplacianFoam/flange/Allclean |  1 +
 .../flange/constant/polyMesh/boundary         | 46 -------------
 .../flange/constant/polyMesh/boundary.org     | 52 --------------
 .../sonicFoam/ras/nacaAirfoil/Allclean        | 10 +++
 .../sonicFoam/ras/nacaAirfoil/Allrun          |  5 +-
 .../nacaAirfoil/constant/polyMesh/boundary    | 48 -------------
 .../constant/polyMesh/boundary.org            | 51 --------------
 .../incompressible/icoFoam/elbow/Allclean     |  2 +-
 .../elbow/constant/polyMesh/boundary.org      | 67 -------------------
 9 files changed, 13 insertions(+), 269 deletions(-)
 delete mode 100644 tutorials/basic/laplacianFoam/flange/constant/polyMesh/boundary
 delete mode 100644 tutorials/basic/laplacianFoam/flange/constant/polyMesh/boundary.org
 create mode 100755 tutorials/compressible/sonicFoam/ras/nacaAirfoil/Allclean
 delete mode 100644 tutorials/compressible/sonicFoam/ras/nacaAirfoil/constant/polyMesh/boundary
 delete mode 100644 tutorials/compressible/sonicFoam/ras/nacaAirfoil/constant/polyMesh/boundary.org
 delete mode 100644 tutorials/incompressible/icoFoam/elbow/constant/polyMesh/boundary.org

diff --git a/tutorials/basic/laplacianFoam/flange/Allclean b/tutorials/basic/laplacianFoam/flange/Allclean
index b8da3681d1c..e6ee925badb 100755
--- a/tutorials/basic/laplacianFoam/flange/Allclean
+++ b/tutorials/basic/laplacianFoam/flange/Allclean
@@ -6,5 +6,6 @@ cd ${0%/*} || exit 1    # Run from this directory
 
 cleanCase
 rm -rf EnSight Ensight Fieldview > /dev/null 2>&1
+rm -f constant/polyMesh/boundary > /dev/null 2>&1
 
 # ----------------------------------------------------------------- end-of-file
diff --git a/tutorials/basic/laplacianFoam/flange/constant/polyMesh/boundary b/tutorials/basic/laplacianFoam/flange/constant/polyMesh/boundary
deleted file mode 100644
index c97383b613a..00000000000
--- a/tutorials/basic/laplacianFoam/flange/constant/polyMesh/boundary
+++ /dev/null
@@ -1,46 +0,0 @@
-/*--------------------------------*- C++ -*----------------------------------*\
-| =========                 |                                                 |
-| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
-|  \\    /   O peration     | Version:  dev                                   |
-|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
-|    \\/     M anipulation  |                                                 |
-\*---------------------------------------------------------------------------*/
-FoamFile
-{
-    version     2.0;
-    format      ascii;
-    class       polyBoundaryMesh;
-    location    "constant/polyMesh";
-    object      boundary;
-}
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
-
-4
-(
-    patch1
-    {
-        type            patch;
-        nFaces          2440;
-        startFace       15316;
-    }
-    patch2
-    {
-        type            patch;
-        nFaces          348;
-        startFace       17756;
-    }
-    patch3
-    {
-        type            patch;
-        nFaces          96;
-        startFace       18104;
-    }
-    patch4
-    {
-        type            patch;
-        nFaces          384;
-        startFace       18200;
-    }
-)
-
-// ************************************************************************* //
diff --git a/tutorials/basic/laplacianFoam/flange/constant/polyMesh/boundary.org b/tutorials/basic/laplacianFoam/flange/constant/polyMesh/boundary.org
deleted file mode 100644
index 52a48b950a5..00000000000
--- a/tutorials/basic/laplacianFoam/flange/constant/polyMesh/boundary.org
+++ /dev/null
@@ -1,52 +0,0 @@
-/*--------------------------------*- C++ -*----------------------------------*\
-| =========                 |                                                 |
-| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
-|  \\    /   O peration     | Version:  dev                                   |
-|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
-|    \\/     M anipulation  |                                                 |
-\*---------------------------------------------------------------------------*/
-FoamFile
-{
-    version     2.0;
-    format      ascii;
-    class       polyBoundaryMesh;
-    object      boundary;
-}
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
-
-4
-(
-    patch1
-    {
-        type            patch;
-        physicalType    adiabatic;
-        startFace       15316;
-        nFaces          2440;
-    }
-
-    patch2
-    {
-        type            patch;
-        physicalType    fixedTemp;
-        startFace       17756;
-        nFaces          348;
-    }
-
-    patch3
-    {
-        type            patch;
-        physicalType    adiabatic;
-        startFace       18104;
-        nFaces          96;
-    }
-
-    patch4
-    {
-        type            patch;
-        physicalType    fixedTemp;
-        startFace       18200;
-        nFaces          384;
-    }
-)
-
-// ************************************************************************* //
diff --git a/tutorials/compressible/sonicFoam/ras/nacaAirfoil/Allclean b/tutorials/compressible/sonicFoam/ras/nacaAirfoil/Allclean
new file mode 100755
index 00000000000..edae5c37f5a
--- /dev/null
+++ b/tutorials/compressible/sonicFoam/ras/nacaAirfoil/Allclean
@@ -0,0 +1,10 @@
+#!/bin/sh
+cd ${0%/*} || exit 1    # Run from this directory
+
+# Source tutorial clean functions
+. $WM_PROJECT_DIR/bin/tools/CleanFunctions
+
+cleanCase
+rm -f constant/polyMesh/boundary > /dev/null 2>&1
+
+# ----------------------------------------------------------------- end-of-file
diff --git a/tutorials/compressible/sonicFoam/ras/nacaAirfoil/Allrun b/tutorials/compressible/sonicFoam/ras/nacaAirfoil/Allrun
index 4e85cda825b..dd782a71965 100755
--- a/tutorials/compressible/sonicFoam/ras/nacaAirfoil/Allrun
+++ b/tutorials/compressible/sonicFoam/ras/nacaAirfoil/Allrun
@@ -9,10 +9,7 @@ application=`getApplication`
 
 runApplication star3ToFoam prostar/nacaAirfoil
 
-mv constant/polyMesh/boundary temp
-sed -e s/"\([\t ]*type[\t ]*\)symmetryPlane"/"\1empty"/g \
-    temp > constant/polyMesh/boundary
-rm temp
+sed -i 's/symmetry\([)]*;\)/empty\1/' constant/polyMesh/boundary
 
 runApplication $application
 
diff --git a/tutorials/compressible/sonicFoam/ras/nacaAirfoil/constant/polyMesh/boundary b/tutorials/compressible/sonicFoam/ras/nacaAirfoil/constant/polyMesh/boundary
deleted file mode 100644
index becd8320f7b..00000000000
--- a/tutorials/compressible/sonicFoam/ras/nacaAirfoil/constant/polyMesh/boundary
+++ /dev/null
@@ -1,48 +0,0 @@
-/*--------------------------------*- C++ -*----------------------------------*\
-| =========                 |                                                 |
-| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
-|  \\    /   O peration     | Version:  dev                                   |
-|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
-|    \\/     M anipulation  |                                                 |
-\*---------------------------------------------------------------------------*/
-FoamFile
-{
-    version     2.0;
-    format      ascii;
-    class       polyBoundaryMesh;
-    location    "constant/polyMesh";
-    object      boundary;
-}
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
-
-4
-(
-    INLE1
-    {
-        type            patch;
-        nFaces          400;
-        startFace       79570;
-    }
-    OUTL2
-    {
-        type            patch;
-        nFaces          200;
-        startFace       79970;
-    }
-    SYMP3
-    {
-        type            empty;
-        inGroups        1(empty);
-        nFaces          80000;
-        startFace       80170;
-    }
-    WALL10
-    {
-        type            wall;
-        inGroups        1(wall);
-        nFaces          260;
-        startFace       160170;
-    }
-)
-
-// ************************************************************************* //
diff --git a/tutorials/compressible/sonicFoam/ras/nacaAirfoil/constant/polyMesh/boundary.org b/tutorials/compressible/sonicFoam/ras/nacaAirfoil/constant/polyMesh/boundary.org
deleted file mode 100644
index f20d97eab57..00000000000
--- a/tutorials/compressible/sonicFoam/ras/nacaAirfoil/constant/polyMesh/boundary.org
+++ /dev/null
@@ -1,51 +0,0 @@
-/*--------------------------------*- C++ -*----------------------------------*\
-| =========                 |                                                 |
-| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
-|  \\    /   O peration     | Version:  dev                                   |
-|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
-|    \\/     M anipulation  |                                                 |
-\*---------------------------------------------------------------------------*/
-FoamFile
-{
-    version     2.0;
-    format      ascii;
-    class       polyBoundaryMesh;
-    object      boundary;
-}
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
-
-(
-    INLE1
-    {
-        type            patch;
-        physicalType    supersonicFreestream;
-        startFace       79570;
-        nFaces          400;
-    }
-
-    OUTL2
-    {
-        type            patch;
-        physicalType    pressureTransmissiveOutlet;
-        startFace       79970;
-        nFaces          200;
-    }
-
-    SYMP3
-    {
-        type            empty;
-        physicalType    empty;
-        startFace       80170;
-        nFaces          80000;
-    }
-
-    WALL10
-    {
-        type            wall;
-        physicalType    adiabaticWallFunctions;
-        startFace       160170;
-        nFaces          260;
-    }
-)
-
-// ************************************************************************* //
diff --git a/tutorials/incompressible/icoFoam/elbow/Allclean b/tutorials/incompressible/icoFoam/elbow/Allclean
index b44622ae697..e44a03c204a 100755
--- a/tutorials/incompressible/icoFoam/elbow/Allclean
+++ b/tutorials/incompressible/icoFoam/elbow/Allclean
@@ -4,7 +4,7 @@ cd ${0%/*} || exit 1    # Run from this directory
 # Source tutorial clean functions
 . $WM_PROJECT_DIR/bin/tools/CleanFunctions
 
-rm -f constant/polyMesh/boundary
+rm -f constant/polyMesh/boundary > /dev/null 2>&1
 rm -rf fluentInterface
 cleanCase
 
diff --git a/tutorials/incompressible/icoFoam/elbow/constant/polyMesh/boundary.org b/tutorials/incompressible/icoFoam/elbow/constant/polyMesh/boundary.org
deleted file mode 100644
index b1349beb722..00000000000
--- a/tutorials/incompressible/icoFoam/elbow/constant/polyMesh/boundary.org
+++ /dev/null
@@ -1,67 +0,0 @@
-/*--------------------------------*- C++ -*----------------------------------*\
-| =========                 |                                                 |
-| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
-|  \\    /   O peration     | Version:  dev                                   |
-|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
-|    \\/     M anipulation  |                                                 |
-\*---------------------------------------------------------------------------*/
-FoamFile
-{
-    version     2.0;
-    format      ascii;
-    class       polyBoundaryMesh;
-    object      boundary;
-}
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
-
-(    wall-4
-    {
-        type            wall;
-        physicalType    wall;
-        startFace       1300;
-        nFaces          100;
-    }
-
-    velocity-inlet-5
-    {
-        type            patch;
-        physicalType    inlet;
-        startFace       1400;
-        nFaces          8;
-    }
-
-    velocity-inlet-6
-    {
-        type            patch;
-        physicalType    inlet;
-        startFace       1408;
-        nFaces          4;
-    }
-
-    pressure-outlet-7
-    {
-        type            patch;
-        physicalType    outlet;
-        startFace       1412;
-        nFaces          8;
-    }
-
-    wall-8
-    {
-        type            wall;
-        physicalType    wall;
-        startFace       1420;
-        nFaces          34;
-    }
-
-    frontAndBackPlanes
-    {
-        type            empty;
-        physicalType    empty;
-        startFace       1454;
-        nFaces          1836;
-    }
-
-)
-
-// ************************************************************************* //
-- 
GitLab