From 847b1ebd8faba37bf80e7938659e2e8799b55a0f Mon Sep 17 00:00:00 2001 From: Hrvoje Jasak Date: Wed, 28 May 2014 20:02:35 +0100 Subject: [PATCH] Tutorial updates - automatic test loop --- .../MRFSimpleFoam/axialTurbine/0_orig/epsilon | 38 ++++++++++++++----- .../MRFSimpleFoam/axialTurbine/0_orig/k | 14 ++++++- .../MRFSimpleFoam/axialTurbine/Allclean | 6 +-- 3 files changed, 45 insertions(+), 13 deletions(-) diff --git a/tutorials/incompressible/MRFSimpleFoam/axialTurbine/0_orig/epsilon b/tutorials/incompressible/MRFSimpleFoam/axialTurbine/0_orig/epsilon index 80544f408..1216c3286 100644 --- a/tutorials/incompressible/MRFSimpleFoam/axialTurbine/0_orig/epsilon +++ b/tutorials/incompressible/MRFSimpleFoam/axialTurbine/0_orig/epsilon @@ -1,7 +1,7 @@ /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | foam-extend: Open Source CFD | -| \\ / O peration | Version: 3.0 | +| \\ / O peration | Version: 3.0 | | \\ / A nd | Web: http://www.extend-project.de | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ @@ -10,6 +10,7 @@ FoamFile version 2.0; format ascii; class volScalarField; + location "0"; object epsilon; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // @@ -28,82 +29,96 @@ boundaryField GVOUTLET { type ggi; + value uniform 14.855; } GVCYCLIC1 { type cyclicGgi; + value uniform 14.855; } GVCYCLIC2 { type cyclicGgi; + value uniform 14.855; } GVBLADE { type epsilonWallFunction; + refValue uniform 0; + value uniform 14.855; Cmu 0.09; kappa 0.41; E 9.8; - value uniform 14.855; } GVHUB { type epsilonWallFunction; + refValue uniform 0; + value uniform 14.855; Cmu 0.09; kappa 0.41; E 9.8; - value uniform 14.855; } GVSHROUD { type epsilonWallFunction; + refValue uniform 0; + value uniform 14.855; Cmu 0.09; kappa 0.41; E 9.8; - value uniform 14.855; } RUINLET { type ggi; + value uniform 14.855; } RUOUTLET { type ggi; + value uniform 14.855; } RUCYCLIC1 { type cyclicGgi; + value uniform 14.855; } RUCYCLIC2 { type cyclicGgi; + value uniform 14.855; } RUBLADE { type epsilonWallFunction; + refValue uniform 0; + value uniform 14.855; Cmu 0.09; kappa 0.41; E 9.8; - value uniform 14.855; } RUHUB { type epsilonWallFunction; + refValue uniform 0; + value uniform 14.855; Cmu 0.09; kappa 0.41; E 9.8; - value uniform 14.855; } RUSHROUD { type epsilonWallFunction; + refValue uniform 0; + value uniform 14.855; Cmu 0.09; kappa 0.41; E 9.8; - value uniform 14.855; } DTINLET { type ggi; + value uniform 14.855; } DTOUTLET { @@ -112,27 +127,32 @@ boundaryField DTCYCLIC1 { type cyclicGgi; + value uniform 14.855; } DTCYCLIC2 { type cyclicGgi; + value uniform 14.855; } DTHUB { type epsilonWallFunction; + refValue uniform 0; + value uniform 14.855; Cmu 0.09; kappa 0.41; E 9.8; - value uniform 14.855; } DTSHROUD { type epsilonWallFunction; + refValue uniform 0; + value uniform 14.855; Cmu 0.09; kappa 0.41; E 9.8; - value uniform 14.855; } } + // ************************************************************************* // diff --git a/tutorials/incompressible/MRFSimpleFoam/axialTurbine/0_orig/k b/tutorials/incompressible/MRFSimpleFoam/axialTurbine/0_orig/k index c98f2b7a6..e7c5e27fe 100644 --- a/tutorials/incompressible/MRFSimpleFoam/axialTurbine/0_orig/k +++ b/tutorials/incompressible/MRFSimpleFoam/axialTurbine/0_orig/k @@ -1,7 +1,7 @@ /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | foam-extend: Open Source CFD | -| \\ / O peration | Version: 3.0 | +| \\ / O peration | Version: 3.0 | | \\ / A nd | Web: http://www.extend-project.de | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ @@ -10,6 +10,7 @@ FoamFile version 2.0; format ascii; class volScalarField; + location "0"; object k; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // @@ -28,14 +29,17 @@ boundaryField GVOUTLET { type ggi; + value uniform 0.375; } GVCYCLIC1 { type cyclicGgi; + value uniform 0.375; } GVCYCLIC2 { type cyclicGgi; + value uniform 0.375; } GVBLADE { @@ -55,18 +59,22 @@ boundaryField RUINLET { type ggi; + value uniform 0.375; } RUOUTLET { type ggi; + value uniform 0.375; } RUCYCLIC1 { type cyclicGgi; + value uniform 0.375; } RUCYCLIC2 { type cyclicGgi; + value uniform 0.375; } RUBLADE { @@ -86,6 +94,7 @@ boundaryField DTINLET { type ggi; + value uniform 0.375; } DTOUTLET { @@ -94,10 +103,12 @@ boundaryField DTCYCLIC1 { type cyclicGgi; + value uniform 0.375; } DTCYCLIC2 { type cyclicGgi; + value uniform 0.375; } DTHUB { @@ -111,4 +122,5 @@ boundaryField } } + // ************************************************************************* // diff --git a/tutorials/incompressible/MRFSimpleFoam/axialTurbine/Allclean b/tutorials/incompressible/MRFSimpleFoam/axialTurbine/Allclean index 82cc32d0d..061c49774 100755 --- a/tutorials/incompressible/MRFSimpleFoam/axialTurbine/Allclean +++ b/tutorials/incompressible/MRFSimpleFoam/axialTurbine/Allclean @@ -1,5 +1,5 @@ #!/bin/sh -( cd constant/polyMesh && rm -r boundary* blockMeshDict *Zones* faces* neighbour* owner* points* sets ) -( cd system && rm changeDictionaryDict fvSolution ) -rm -r 0 [1-9]* VTK log* processor* +( cd constant/polyMesh && \rm -rf boundary* blockMeshDict *Zones* faces* neighbour* owner* points* sets ) +( cd system && \rm -f changeDictionaryDict fvSolution ) +\rm -rf 0 [1-9]* VTK log* processor*