From e716d1c073b5482b7f34438dba67f049cf0137bd Mon Sep 17 00:00:00 2001
From: mattijs <mattijs>
Date: Thu, 13 Jun 2019 14:24:58 +0100
Subject: [PATCH] ENH: surfactantFoam: run cleanly. See #1328 - do not write 0/
 directory - clean case in ./Allclean

---
 .../surfactantFoam/createVolFields.H          |  4 +-
 .../surfactantFoam/planeTransport/0/Cvf       | 53 -------------------
 .../surfactantFoam/planeTransport/0/U         | 53 -------------------
 .../surfactantFoam/planeTransport/Allclean    |  7 +--
 .../polyMesh => system}/blockMeshDict         |  0
 5 files changed, 3 insertions(+), 114 deletions(-)
 delete mode 100644 tutorials/finiteArea/surfactantFoam/planeTransport/0/Cvf
 delete mode 100644 tutorials/finiteArea/surfactantFoam/planeTransport/0/U
 rename tutorials/finiteArea/surfactantFoam/planeTransport/{constant/polyMesh => system}/blockMeshDict (100%)

diff --git a/applications/solvers/finiteArea/surfactantFoam/createVolFields.H b/applications/solvers/finiteArea/surfactantFoam/createVolFields.H
index 2f42dae83d9..2d1de76a61e 100644
--- a/applications/solvers/finiteArea/surfactantFoam/createVolFields.H
+++ b/applications/solvers/finiteArea/surfactantFoam/createVolFields.H
@@ -16,7 +16,7 @@
     );
 
     vsm.mapToVolume(Cs, Cvf.boundaryFieldRef());
-    Cvf.write();
+    //Cvf.write();
 
     volVectorField U
     (
@@ -33,4 +33,4 @@
     );
 
     vsm.mapToVolume(Us, U.boundaryFieldRef());
-    U.write();
+    //U.write();
diff --git a/tutorials/finiteArea/surfactantFoam/planeTransport/0/Cvf b/tutorials/finiteArea/surfactantFoam/planeTransport/0/Cvf
deleted file mode 100644
index d977dc5f2a1..00000000000
--- a/tutorials/finiteArea/surfactantFoam/planeTransport/0/Cvf
+++ /dev/null
@@ -1,53 +0,0 @@
-/*--------------------------------*- C++ -*----------------------------------*\
-| =========                 |                                                 |
-| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
-|  \\    /   O peration     | Version:  v1812                                 |
-|   \\  /    A nd           | Web:      www.OpenFOAM.com                      |
-|    \\/     M anipulation  |                                                 |
-\*---------------------------------------------------------------------------*/
-FoamFile
-{
-    version     2.0;
-    format      ascii;
-    class       volScalarField;
-    location    "0";
-    object      Cvf;
-}
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
-
-dimensions      [0 -1 0 0 0 0 0];
-
-
-internalField   uniform 0;
-
-boundaryField
-{
-    inlet
-    {
-        type            calculated;
-        value           uniform 0;
-    }
-    bound
-    {
-        type            calculated;
-        value           uniform 0;
-    }
-    outlet
-    {
-        type            calculated;
-        value           uniform 0;
-    }
-    bottom
-    {
-        type            calculated;
-        value           uniform 0;
-    }
-    top
-    {
-        type            calculated;
-        value           uniform 0;
-    }
-}
-
-
-// ************************************************************************* //
diff --git a/tutorials/finiteArea/surfactantFoam/planeTransport/0/U b/tutorials/finiteArea/surfactantFoam/planeTransport/0/U
deleted file mode 100644
index 7dc2712cffe..00000000000
--- a/tutorials/finiteArea/surfactantFoam/planeTransport/0/U
+++ /dev/null
@@ -1,53 +0,0 @@
-/*--------------------------------*- C++ -*----------------------------------*\
-| =========                 |                                                 |
-| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
-|  \\    /   O peration     | Version:  v1812                                 |
-|   \\  /    A nd           | Web:      www.OpenFOAM.com                      |
-|    \\/     M anipulation  |                                                 |
-\*---------------------------------------------------------------------------*/
-FoamFile
-{
-    version     2.0;
-    format      ascii;
-    class       volVectorField;
-    location    "0";
-    object      U;
-}
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
-
-dimensions      [0 1 -1 0 0 0 0];
-
-
-internalField   uniform (0 0 0);
-
-boundaryField
-{
-    inlet
-    {
-        type            calculated;
-        value           uniform (0 0 0);
-    }
-    bound
-    {
-        type            calculated;
-        value           uniform (0 0 0);
-    }
-    outlet
-    {
-        type            calculated;
-        value           uniform (0 0 0);
-    }
-    bottom
-    {
-        type            calculated;
-        value           uniform (0 0 0);
-    }
-    top
-    {
-        type            calculated;
-        value           uniform (0.05 0 0);
-    }
-}
-
-
-// ************************************************************************* //
diff --git a/tutorials/finiteArea/surfactantFoam/planeTransport/Allclean b/tutorials/finiteArea/surfactantFoam/planeTransport/Allclean
index b1673ba4c14..e852bce316a 100755
--- a/tutorials/finiteArea/surfactantFoam/planeTransport/Allclean
+++ b/tutorials/finiteArea/surfactantFoam/planeTransport/Allclean
@@ -2,12 +2,7 @@
 cd ${0%/*} || exit 1                        # Run from this directory
 . $WM_PROJECT_DIR/bin/tools/CleanFunctions  # Tutorial clean functions
 
-cleanTimeDirectories
-
-cleanPostProcessing
-
+cleanCase
 cleanFaMesh
 
-rm -rf processor*
-
 #------------------------------------------------------------------------------
diff --git a/tutorials/finiteArea/surfactantFoam/planeTransport/constant/polyMesh/blockMeshDict b/tutorials/finiteArea/surfactantFoam/planeTransport/system/blockMeshDict
similarity index 100%
rename from tutorials/finiteArea/surfactantFoam/planeTransport/constant/polyMesh/blockMeshDict
rename to tutorials/finiteArea/surfactantFoam/planeTransport/system/blockMeshDict
-- 
GitLab