From 1432a89c9bb59b7b94b6920adce222a67270ac9f Mon Sep 17 00:00:00 2001
From: mattijs <mattijs>
Date: Tue, 24 May 2011 12:59:29 +0100
Subject: [PATCH] ENH: potentialFoam/cylinder: cleanup

---
 tutorials/basic/potentialFoam/cylinder/0/U    | 55 -------------------
 tutorials/basic/potentialFoam/cylinder/0/p    | 55 -------------------
 .../basic/potentialFoam/cylinder/Allclean     | 11 ++++
 tutorials/basic/potentialFoam/cylinder/Allrun |  3 +-
 4 files changed, 12 insertions(+), 112 deletions(-)
 delete mode 100644 tutorials/basic/potentialFoam/cylinder/0/U
 delete mode 100644 tutorials/basic/potentialFoam/cylinder/0/p
 create mode 100755 tutorials/basic/potentialFoam/cylinder/Allclean

diff --git a/tutorials/basic/potentialFoam/cylinder/0/U b/tutorials/basic/potentialFoam/cylinder/0/U
deleted file mode 100644
index 40714e18ac3..00000000000
--- a/tutorials/basic/potentialFoam/cylinder/0/U
+++ /dev/null
@@ -1,55 +0,0 @@
-/*--------------------------------*- C++ -*----------------------------------*\
-| =========                 |                                                 |
-| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
-|  \\    /   O peration     | Version:  dev                                   |
-|   \\  /    A nd           | Web:      www.OpenFOAM.com                      |
-|    \\/     M anipulation  |                                                 |
-\*---------------------------------------------------------------------------*/
-FoamFile
-{
-    version     2.0;
-    format      ascii;
-    class       volVectorField;
-    object      U;
-}
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
-
-dimensions      [0 1 -1 0 0 0 0];
-
-internalField   uniform (0 0 0);
-
-boundaryField
-{
-    down            
-    {
-        type            symmetryPlane;
-    }
-
-    right           
-    {
-        type            zeroGradient;
-    }
-
-    up              
-    {
-        type            symmetryPlane;
-    }
-
-    left            
-    {
-        type            fixedValue;
-        value           uniform (1 0 0);
-    }
-
-    cylinder        
-    {
-        type            symmetryPlane;
-    }
-
-    defaultFaces    
-    {
-        type            empty;
-    }
-}
-
-// ************************************************************************* //
diff --git a/tutorials/basic/potentialFoam/cylinder/0/p b/tutorials/basic/potentialFoam/cylinder/0/p
deleted file mode 100644
index a650527b765..00000000000
--- a/tutorials/basic/potentialFoam/cylinder/0/p
+++ /dev/null
@@ -1,55 +0,0 @@
-/*--------------------------------*- C++ -*----------------------------------*\
-| =========                 |                                                 |
-| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
-|  \\    /   O peration     | Version:  dev                                   |
-|   \\  /    A nd           | Web:      www.OpenFOAM.com                      |
-|    \\/     M anipulation  |                                                 |
-\*---------------------------------------------------------------------------*/
-FoamFile
-{
-    version     2.0;
-    format      ascii;
-    class       volScalarField;
-    object      p;
-}
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
-
-dimensions      [0 2 -2 0 0 0 0];
-
-internalField   uniform 0;
-
-boundaryField
-{
-    down            
-    {
-        type            symmetryPlane;
-    }
-
-    right           
-    {
-        type            fixedValue;
-        value           uniform 0;
-    }
-
-    up              
-    {
-        type            symmetryPlane;
-    }
-
-    left            
-    {
-        type            zeroGradient;
-    }
-
-    cylinder        
-    {
-        type            symmetryPlane;
-    }
-
-    defaultFaces    
-    {
-        type            empty;
-    }
-}
-
-// ************************************************************************* //
diff --git a/tutorials/basic/potentialFoam/cylinder/Allclean b/tutorials/basic/potentialFoam/cylinder/Allclean
new file mode 100755
index 00000000000..d16400a94f6
--- /dev/null
+++ b/tutorials/basic/potentialFoam/cylinder/Allclean
@@ -0,0 +1,11 @@
+#!/bin/sh
+cd ${0%/*} || exit 1    # run from this directory
+
+# Source tutorial clean functions
+. $WM_PROJECT_DIR/bin/tools/CleanFunctions
+
+rm -rf 0 > /dev/null 2>&1
+
+cleanCase
+
+# ----------------------------------------------------------------- end-of-file
diff --git a/tutorials/basic/potentialFoam/cylinder/Allrun b/tutorials/basic/potentialFoam/cylinder/Allrun
index 269683a112e..219e4473de6 100755
--- a/tutorials/basic/potentialFoam/cylinder/Allrun
+++ b/tutorials/basic/potentialFoam/cylinder/Allrun
@@ -6,10 +6,9 @@ cd ${0%/*} || exit 1    # run from this directory
 
 application=`getApplication`
 
+cp -r 0.org 0 > /dev/null 2>&1
 runApplication blockMesh
 runApplication $application
-compileApplication analyticalCylinder
-runApplication analyticalCylinder
 runApplication streamFunction
 
 # ----------------------------------------------------------------- end-of-file
-- 
GitLab