From 12d0707b84dda415d0382b2cad528454f8ceb46f Mon Sep 17 00:00:00 2001
From: Henry Weller <http://cfd.direct>
Date: Thu, 13 Oct 2016 15:02:32 +0100
Subject: [PATCH] foamCleanTutorials: Simplified cleaning the mesh by removing
 the constant/polyMesh directory

---
 bin/tools/CleanFunctions                      |  9 +-
 .../constant/polyMesh/blockMeshDict.8pSmall   | 93 -------------------
 2 files changed, 1 insertion(+), 101 deletions(-)
 delete mode 100644 tutorials/incompressible/pisoFoam/LES/motorBike/motorBike/constant/polyMesh/blockMeshDict.8pSmall

diff --git a/bin/tools/CleanFunctions b/bin/tools/CleanFunctions
index 3df910567dc..7390c36403f 100644
--- a/bin/tools/CleanFunctions
+++ b/bin/tools/CleanFunctions
@@ -68,14 +68,7 @@ cleanCase()
 
     if [ -d constant/polyMesh ]
     then
-        (cd constant/polyMesh && \
-            rm -rf \
-            allOwner* cell* face* meshModifiers* \
-            owner* neighbour* point* edge* \
-            cellLevel* pointLevel* refinementHistory* level0Edge* surfaceIndex* sets \
-            boundary \
-            > /dev/null 2>&1 \
-        )
+        rm -rf constant/polyMesh > /dev/null 2>&1
     fi
     if [ -d constant ]
     then
diff --git a/tutorials/incompressible/pisoFoam/LES/motorBike/motorBike/constant/polyMesh/blockMeshDict.8pSmall b/tutorials/incompressible/pisoFoam/LES/motorBike/motorBike/constant/polyMesh/blockMeshDict.8pSmall
deleted file mode 100644
index c865acf47b5..00000000000
--- a/tutorials/incompressible/pisoFoam/LES/motorBike/motorBike/constant/polyMesh/blockMeshDict.8pSmall
+++ /dev/null
@@ -1,93 +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       dictionary;
-    object      blockMeshDict;
-}
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
-
-convertToMeters 1;
-
-vertices
-(
-    (-5 -4 0)
-    (15 -4 0)
-    (15  4 0)
-    (-5  4 0)
-    (-5 -4 8)
-    (15 -4 8)
-    (15  4 8)
-    (-5  4 8)
-);
-
-blocks
-(
-    hex (0 1 2 3 4 5 6 7) (20 10 10) simpleGrading (1 1 1)
-);
-
-edges
-(
-);
-
-boundary
-(
-    front
-    {
-        type symmetryPlane;
-        faces
-        (
-            (3 7 6 2)
-        );
-    }
-    back
-    {
-        type symmetryPlane;
-        faces
-        (
-            (1 5 4 0)
-        );
-    }
-    inlet
-    {
-        type patch;
-        faces
-        (
-            (0 4 7 3)
-        );
-    }
-    outlet
-    {
-        type patch;
-        faces
-        (
-            (2 6 5 1)
-        );
-    }
-    lowerWall
-    {
-        type wall;
-        faces
-        (
-            (0 3 2 1)
-        );
-    }
-    upperWall
-    {
-        type symmetryPlane;
-        faces
-        (
-            (4 5 6 7)
-        );
-    }
-);
-
-// ************************************************************************* //
-- 
GitLab