From 75bd44d7fde35ac5f80c8153e5ac90f1b4f15d8d Mon Sep 17 00:00:00 2001
From: andy <andy>
Date: Mon, 30 Jan 2012 17:59:53 +0000
Subject: [PATCH] ENH: Updated channelFoam tutorial to use pimpleFoam with
 sourcesProperties

---
 .../channel395/0.org/B                        |   0
 .../channel395/0.org/U                        |   0
 .../channel395/0.org/k                        |   0
 .../channel395/0.org/nuSgs                    |   0
 .../channel395/0.org/nuTilda                  |   0
 .../channel395/0.org/p                        |   0
 .../channel395/0/B.gz                         | Bin
 .../channel395/0/U.gz                         | Bin
 .../channel395/0/k.gz                         | Bin
 .../channel395/0/nuSgs.gz                     | Bin
 .../channel395/0/nuTilda.gz                   | Bin
 .../channel395/0/p.gz                         | Bin
 .../channel395/Allrun                         |   0
 .../channel395/constant/LESProperties         |   0
 .../constant/polyMesh/blockMeshDict           |   0
 .../channel395/constant/polyMesh/boundary     |   0
 .../channel395/constant/postChannelDict       |   0
 .../channel395/constant/sourcesProperties     |  35 ++++++++++++++++++
 .../channel395/constant/transportProperties   |   0
 .../channel395/constant/turbulenceProperties  |  20 ++++++++++
 .../channel395/system/controlDict             |   2 +-
 .../channel395/system/fvSchemes               |   0
 .../channel395/system/fvSolution              |  28 +++-----------
 23 files changed, 62 insertions(+), 23 deletions(-)
 rename tutorials/incompressible/{channelFoam => pimpleFoam}/channel395/0.org/B (100%)
 rename tutorials/incompressible/{channelFoam => pimpleFoam}/channel395/0.org/U (100%)
 rename tutorials/incompressible/{channelFoam => pimpleFoam}/channel395/0.org/k (100%)
 rename tutorials/incompressible/{channelFoam => pimpleFoam}/channel395/0.org/nuSgs (100%)
 rename tutorials/incompressible/{channelFoam => pimpleFoam}/channel395/0.org/nuTilda (100%)
 rename tutorials/incompressible/{channelFoam => pimpleFoam}/channel395/0.org/p (100%)
 rename tutorials/incompressible/{channelFoam => pimpleFoam}/channel395/0/B.gz (100%)
 rename tutorials/incompressible/{channelFoam => pimpleFoam}/channel395/0/U.gz (100%)
 rename tutorials/incompressible/{channelFoam => pimpleFoam}/channel395/0/k.gz (100%)
 rename tutorials/incompressible/{channelFoam => pimpleFoam}/channel395/0/nuSgs.gz (100%)
 rename tutorials/incompressible/{channelFoam => pimpleFoam}/channel395/0/nuTilda.gz (100%)
 rename tutorials/incompressible/{channelFoam => pimpleFoam}/channel395/0/p.gz (100%)
 rename tutorials/incompressible/{channelFoam => pimpleFoam}/channel395/Allrun (100%)
 rename tutorials/incompressible/{channelFoam => pimpleFoam}/channel395/constant/LESProperties (100%)
 rename tutorials/incompressible/{channelFoam => pimpleFoam}/channel395/constant/polyMesh/blockMeshDict (100%)
 rename tutorials/incompressible/{channelFoam => pimpleFoam}/channel395/constant/polyMesh/boundary (100%)
 rename tutorials/incompressible/{channelFoam => pimpleFoam}/channel395/constant/postChannelDict (100%)
 create mode 100644 tutorials/incompressible/pimpleFoam/channel395/constant/sourcesProperties
 rename tutorials/incompressible/{channelFoam => pimpleFoam}/channel395/constant/transportProperties (100%)
 create mode 100644 tutorials/incompressible/pimpleFoam/channel395/constant/turbulenceProperties
 rename tutorials/incompressible/{channelFoam => pimpleFoam}/channel395/system/controlDict (98%)
 rename tutorials/incompressible/{channelFoam => pimpleFoam}/channel395/system/fvSchemes (100%)
 rename tutorials/incompressible/{channelFoam => pimpleFoam}/channel395/system/fvSolution (78%)

diff --git a/tutorials/incompressible/channelFoam/channel395/0.org/B b/tutorials/incompressible/pimpleFoam/channel395/0.org/B
similarity index 100%
rename from tutorials/incompressible/channelFoam/channel395/0.org/B
rename to tutorials/incompressible/pimpleFoam/channel395/0.org/B
diff --git a/tutorials/incompressible/channelFoam/channel395/0.org/U b/tutorials/incompressible/pimpleFoam/channel395/0.org/U
similarity index 100%
rename from tutorials/incompressible/channelFoam/channel395/0.org/U
rename to tutorials/incompressible/pimpleFoam/channel395/0.org/U
diff --git a/tutorials/incompressible/channelFoam/channel395/0.org/k b/tutorials/incompressible/pimpleFoam/channel395/0.org/k
similarity index 100%
rename from tutorials/incompressible/channelFoam/channel395/0.org/k
rename to tutorials/incompressible/pimpleFoam/channel395/0.org/k
diff --git a/tutorials/incompressible/channelFoam/channel395/0.org/nuSgs b/tutorials/incompressible/pimpleFoam/channel395/0.org/nuSgs
similarity index 100%
rename from tutorials/incompressible/channelFoam/channel395/0.org/nuSgs
rename to tutorials/incompressible/pimpleFoam/channel395/0.org/nuSgs
diff --git a/tutorials/incompressible/channelFoam/channel395/0.org/nuTilda b/tutorials/incompressible/pimpleFoam/channel395/0.org/nuTilda
similarity index 100%
rename from tutorials/incompressible/channelFoam/channel395/0.org/nuTilda
rename to tutorials/incompressible/pimpleFoam/channel395/0.org/nuTilda
diff --git a/tutorials/incompressible/channelFoam/channel395/0.org/p b/tutorials/incompressible/pimpleFoam/channel395/0.org/p
similarity index 100%
rename from tutorials/incompressible/channelFoam/channel395/0.org/p
rename to tutorials/incompressible/pimpleFoam/channel395/0.org/p
diff --git a/tutorials/incompressible/channelFoam/channel395/0/B.gz b/tutorials/incompressible/pimpleFoam/channel395/0/B.gz
similarity index 100%
rename from tutorials/incompressible/channelFoam/channel395/0/B.gz
rename to tutorials/incompressible/pimpleFoam/channel395/0/B.gz
diff --git a/tutorials/incompressible/channelFoam/channel395/0/U.gz b/tutorials/incompressible/pimpleFoam/channel395/0/U.gz
similarity index 100%
rename from tutorials/incompressible/channelFoam/channel395/0/U.gz
rename to tutorials/incompressible/pimpleFoam/channel395/0/U.gz
diff --git a/tutorials/incompressible/channelFoam/channel395/0/k.gz b/tutorials/incompressible/pimpleFoam/channel395/0/k.gz
similarity index 100%
rename from tutorials/incompressible/channelFoam/channel395/0/k.gz
rename to tutorials/incompressible/pimpleFoam/channel395/0/k.gz
diff --git a/tutorials/incompressible/channelFoam/channel395/0/nuSgs.gz b/tutorials/incompressible/pimpleFoam/channel395/0/nuSgs.gz
similarity index 100%
rename from tutorials/incompressible/channelFoam/channel395/0/nuSgs.gz
rename to tutorials/incompressible/pimpleFoam/channel395/0/nuSgs.gz
diff --git a/tutorials/incompressible/channelFoam/channel395/0/nuTilda.gz b/tutorials/incompressible/pimpleFoam/channel395/0/nuTilda.gz
similarity index 100%
rename from tutorials/incompressible/channelFoam/channel395/0/nuTilda.gz
rename to tutorials/incompressible/pimpleFoam/channel395/0/nuTilda.gz
diff --git a/tutorials/incompressible/channelFoam/channel395/0/p.gz b/tutorials/incompressible/pimpleFoam/channel395/0/p.gz
similarity index 100%
rename from tutorials/incompressible/channelFoam/channel395/0/p.gz
rename to tutorials/incompressible/pimpleFoam/channel395/0/p.gz
diff --git a/tutorials/incompressible/channelFoam/channel395/Allrun b/tutorials/incompressible/pimpleFoam/channel395/Allrun
similarity index 100%
rename from tutorials/incompressible/channelFoam/channel395/Allrun
rename to tutorials/incompressible/pimpleFoam/channel395/Allrun
diff --git a/tutorials/incompressible/channelFoam/channel395/constant/LESProperties b/tutorials/incompressible/pimpleFoam/channel395/constant/LESProperties
similarity index 100%
rename from tutorials/incompressible/channelFoam/channel395/constant/LESProperties
rename to tutorials/incompressible/pimpleFoam/channel395/constant/LESProperties
diff --git a/tutorials/incompressible/channelFoam/channel395/constant/polyMesh/blockMeshDict b/tutorials/incompressible/pimpleFoam/channel395/constant/polyMesh/blockMeshDict
similarity index 100%
rename from tutorials/incompressible/channelFoam/channel395/constant/polyMesh/blockMeshDict
rename to tutorials/incompressible/pimpleFoam/channel395/constant/polyMesh/blockMeshDict
diff --git a/tutorials/incompressible/channelFoam/channel395/constant/polyMesh/boundary b/tutorials/incompressible/pimpleFoam/channel395/constant/polyMesh/boundary
similarity index 100%
rename from tutorials/incompressible/channelFoam/channel395/constant/polyMesh/boundary
rename to tutorials/incompressible/pimpleFoam/channel395/constant/polyMesh/boundary
diff --git a/tutorials/incompressible/channelFoam/channel395/constant/postChannelDict b/tutorials/incompressible/pimpleFoam/channel395/constant/postChannelDict
similarity index 100%
rename from tutorials/incompressible/channelFoam/channel395/constant/postChannelDict
rename to tutorials/incompressible/pimpleFoam/channel395/constant/postChannelDict
diff --git a/tutorials/incompressible/pimpleFoam/channel395/constant/sourcesProperties b/tutorials/incompressible/pimpleFoam/channel395/constant/sourcesProperties
new file mode 100644
index 00000000000..106403ce538
--- /dev/null
+++ b/tutorials/incompressible/pimpleFoam/channel395/constant/sourcesProperties
@@ -0,0 +1,35 @@
+/*--------------------------------*- 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;
+    location    "constant";
+    object      sourcesProperties;
+}
+// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
+
+momentumSource
+{
+    type            pressureGradientExplicitSource;
+    active          on;            //on/off switch
+    timeStart       0.0;           //start time
+    duration        1000000.0;     //duration
+    selectionMode   all;       //cellSet // points //cellZone
+
+    pressureGradientExplicitSourceCoeffs
+    {
+        fieldNames  (U);
+        Ubar        ( 0.1335 0 0 );
+        gradPini    gradPIni [0 1 -2 0 0 ] 0;
+    }
+}
+
+
+// ************************************************************************* //
diff --git a/tutorials/incompressible/channelFoam/channel395/constant/transportProperties b/tutorials/incompressible/pimpleFoam/channel395/constant/transportProperties
similarity index 100%
rename from tutorials/incompressible/channelFoam/channel395/constant/transportProperties
rename to tutorials/incompressible/pimpleFoam/channel395/constant/transportProperties
diff --git a/tutorials/incompressible/pimpleFoam/channel395/constant/turbulenceProperties b/tutorials/incompressible/pimpleFoam/channel395/constant/turbulenceProperties
new file mode 100644
index 00000000000..2d60fc8bf13
--- /dev/null
+++ b/tutorials/incompressible/pimpleFoam/channel395/constant/turbulenceProperties
@@ -0,0 +1,20 @@
+/*--------------------------------*- 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;
+    location    "constant";
+    object      turbulenceProperties;
+}
+// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
+
+simulationType LESModel;
+
+// ************************************************************************* //
diff --git a/tutorials/incompressible/channelFoam/channel395/system/controlDict b/tutorials/incompressible/pimpleFoam/channel395/system/controlDict
similarity index 98%
rename from tutorials/incompressible/channelFoam/channel395/system/controlDict
rename to tutorials/incompressible/pimpleFoam/channel395/system/controlDict
index a8083d93051..9dc482f5605 100644
--- a/tutorials/incompressible/channelFoam/channel395/system/controlDict
+++ b/tutorials/incompressible/pimpleFoam/channel395/system/controlDict
@@ -15,7 +15,7 @@ FoamFile
 }
 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
 
-application     channelFoam;
+application     pimpleFoam;
 
 startFrom       startTime;
 
diff --git a/tutorials/incompressible/channelFoam/channel395/system/fvSchemes b/tutorials/incompressible/pimpleFoam/channel395/system/fvSchemes
similarity index 100%
rename from tutorials/incompressible/channelFoam/channel395/system/fvSchemes
rename to tutorials/incompressible/pimpleFoam/channel395/system/fvSchemes
diff --git a/tutorials/incompressible/channelFoam/channel395/system/fvSolution b/tutorials/incompressible/pimpleFoam/channel395/system/fvSolution
similarity index 78%
rename from tutorials/incompressible/channelFoam/channel395/system/fvSolution
rename to tutorials/incompressible/pimpleFoam/channel395/system/fvSolution
index 16211154679..cc56bcbe20f 100644
--- a/tutorials/incompressible/channelFoam/channel395/system/fvSolution
+++ b/tutorials/incompressible/pimpleFoam/channel395/system/fvSolution
@@ -33,41 +33,25 @@ solvers
         relTol          0;
     }
 
-    U
+    "(U|k)"
     {
         solver          PBiCG;
         preconditioner  DILU;
         tolerance       1e-05;
-        relTol          0;
+        relTol          0.1;
     }
 
-    k
+    "(U|k)Final"
     {
-        solver          PBiCG;
-        preconditioner  DILU;
-        tolerance       1e-05;
-        relTol          0;
-    }
-
-    B
-    {
-        solver          PBiCG;
-        preconditioner  DILU;
-        tolerance       1e-05;
-        relTol          0;
-    }
-
-    nuTilda
-    {
-        solver          PBiCG;
-        preconditioner  DILU;
+        $U;
         tolerance       1e-05;
         relTol          0;
     }
 }
 
-PISO
+PIMPLE
 {
+    nOuterCorrectors 1;
     nCorrectors     2;
     nNonOrthogonalCorrectors 0;
     pRefCell        1001;
-- 
GitLab