From f39c200e021ebbcb65f47a463ad3663d1e6d746b Mon Sep 17 00:00:00 2001 From: mattijs Date: Tue, 4 May 2010 16:23:59 +0100 Subject: [PATCH] ENH: updated tutorial boundaryFoam/boundaryWallFunctionsProfile --- TODO | 2 +- .../boundaryWallFunctionsProfile/0/U | 29 ++++++++++--------- .../boundaryWallFunctionsProfile/0/epsilon | 11 ++++--- .../boundaryWallFunctionsProfile/0/k | 13 +++++---- .../boundaryWallFunctionsProfile/0/nuTilda | 23 ++++++++------- .../boundaryWallFunctionsProfile/0/nut | 11 ++++--- .../boundaryWallFunctionsProfile/0/nut.k | 13 +++++---- .../0/nut.spalding | 13 +++++---- .../boundaryWallFunctionsProfile/0/omega | 11 ++++--- .../constant/polyMesh/boundary | 17 +++++++---- 10 files changed, 87 insertions(+), 56 deletions(-) diff --git a/TODO b/TODO index 3dc5be6305..394ae6519b 100644 --- a/TODO +++ b/TODO @@ -82,7 +82,7 @@ OK - grep for size()/2 discreteMethods/molecularDynamics/mdEquilibrationFoam/periodicCubeArgon OK - incompressible/boundaryFoam/boundaryLaunderSharma OK - incompressible/boundaryFoam/boundaryWallFunctions - incompressible/boundaryFoam/boundaryWallFunctionsProfile + OK - incompressible/boundaryFoam/boundaryWallFunctionsProfile incompressible/channelFoam/channel395 incompressible/pimpleFoam/t-junction-with-fan incompressible/simpleSRFFoam/mixer diff --git a/tutorials/incompressible/boundaryFoam/boundaryWallFunctionsProfile/0/U b/tutorials/incompressible/boundaryFoam/boundaryWallFunctionsProfile/0/U index b75d124cdc..24fd818213 100644 --- a/tutorials/incompressible/boundaryFoam/boundaryWallFunctionsProfile/0/U +++ b/tutorials/incompressible/boundaryFoam/boundaryWallFunctionsProfile/0/U @@ -1,8 +1,8 @@ /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.6 | -| \\ / A nd | Web: http://www.OpenFOAM.org | +| \\ / O peration | Version: splitCyclic | +| \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile @@ -10,37 +10,40 @@ FoamFile version 2.0; format ascii; class volVectorField; + location "0"; object U; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -dimensions [0 1 -1 0 0 0 0]; +dimensions [ 0 1 -1 0 0 0 0 ]; -internalField uniform (1 0 0); +internalField uniform ( 1 0 0 ); boundaryField { - lowerWall + lowerWall { type fixedValue; - value uniform (0 0 0); + value uniform ( 0 0 0 ); } - - upperWall + upperWall { type fixedValue; - value uniform (0 0 0); + value uniform ( 0 0 0 ); } - - frontBack + frontBack_half0 { type cyclic; } - - defaultFaces + defaultFaces { type empty; } + frontBack_half1 + { + type cyclic; + } } + // ************************************************************************* // diff --git a/tutorials/incompressible/boundaryFoam/boundaryWallFunctionsProfile/0/epsilon b/tutorials/incompressible/boundaryFoam/boundaryWallFunctionsProfile/0/epsilon index 5b6d7f698f..37c5fc7837 100644 --- a/tutorials/incompressible/boundaryFoam/boundaryWallFunctionsProfile/0/epsilon +++ b/tutorials/incompressible/boundaryFoam/boundaryWallFunctionsProfile/0/epsilon @@ -1,7 +1,7 @@ /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.6 | +| \\ / O peration | Version: splitCyclic | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ @@ -15,7 +15,7 @@ FoamFile } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -dimensions [0 2 -3 0 0 0 0]; +dimensions [ 0 2 -3 0 0 0 0 ]; internalField uniform 1e-08; @@ -31,15 +31,18 @@ boundaryField type epsilonWallFunction; value uniform 1e-08; } - frontBack + frontBack_half0 { type cyclic; - value uniform 1e-08; } defaultFaces { type empty; } + frontBack_half1 + { + type cyclic; + } } diff --git a/tutorials/incompressible/boundaryFoam/boundaryWallFunctionsProfile/0/k b/tutorials/incompressible/boundaryFoam/boundaryWallFunctionsProfile/0/k index d278c05cef..be252cdb78 100644 --- a/tutorials/incompressible/boundaryFoam/boundaryWallFunctionsProfile/0/k +++ b/tutorials/incompressible/boundaryFoam/boundaryWallFunctionsProfile/0/k @@ -1,7 +1,7 @@ /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.6 | +| \\ / O peration | Version: splitCyclic | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ @@ -15,9 +15,9 @@ FoamFile } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -dimensions [0 2 -2 0 0 0 0]; +dimensions [ 0 2 -2 0 0 0 0 ]; -internalField uniform 0.000000001; +internalField uniform 1e-09; boundaryField { @@ -31,15 +31,18 @@ boundaryField type kqRWallFunction; internalField uniform 0.1; } - frontBack + frontBack_half0 { type cyclic; - internalField uniform 0.1; } defaultFaces { type empty; } + frontBack_half1 + { + type cyclic; + } } diff --git a/tutorials/incompressible/boundaryFoam/boundaryWallFunctionsProfile/0/nuTilda b/tutorials/incompressible/boundaryFoam/boundaryWallFunctionsProfile/0/nuTilda index 38a021b100..1a0a5c1a46 100644 --- a/tutorials/incompressible/boundaryFoam/boundaryWallFunctionsProfile/0/nuTilda +++ b/tutorials/incompressible/boundaryFoam/boundaryWallFunctionsProfile/0/nuTilda @@ -1,8 +1,8 @@ /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.6 | -| \\ / A nd | Web: http://www.OpenFOAM.org | +| \\ / O peration | Version: splitCyclic | +| \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile @@ -10,35 +10,38 @@ FoamFile version 2.0; format ascii; class volScalarField; + location "0"; object nuTilda; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -dimensions [0 2 -1 0 0 0 0]; +dimensions [ 0 2 -1 0 0 0 0 ]; internalField uniform 0; boundaryField { - lowerWall + lowerWall { type zeroGradient; } - - upperWall + upperWall { type zeroGradient; } - - frontBack + frontBack_half0 { type cyclic; } - - defaultFaces + defaultFaces { type empty; } + frontBack_half1 + { + type cyclic; + } } + // ************************************************************************* // diff --git a/tutorials/incompressible/boundaryFoam/boundaryWallFunctionsProfile/0/nut b/tutorials/incompressible/boundaryFoam/boundaryWallFunctionsProfile/0/nut index 5bcd4c4a1d..986830e430 100644 --- a/tutorials/incompressible/boundaryFoam/boundaryWallFunctionsProfile/0/nut +++ b/tutorials/incompressible/boundaryFoam/boundaryWallFunctionsProfile/0/nut @@ -1,7 +1,7 @@ /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.6 | +| \\ / O peration | Version: splitCyclic | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ @@ -15,7 +15,7 @@ FoamFile } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -dimensions [0 2 -1 0 0 0 0]; +dimensions [ 0 2 -1 0 0 0 0 ]; internalField uniform 0; @@ -31,15 +31,18 @@ boundaryField type nutkWallFunction; value uniform 0; } - frontBack + frontBack_half0 { type cyclic; - value uniform 0; } defaultFaces { type empty; } + frontBack_half1 + { + type cyclic; + } } diff --git a/tutorials/incompressible/boundaryFoam/boundaryWallFunctionsProfile/0/nut.k b/tutorials/incompressible/boundaryFoam/boundaryWallFunctionsProfile/0/nut.k index 5bcd4c4a1d..63deabe6d3 100644 --- a/tutorials/incompressible/boundaryFoam/boundaryWallFunctionsProfile/0/nut.k +++ b/tutorials/incompressible/boundaryFoam/boundaryWallFunctionsProfile/0/nut.k @@ -1,7 +1,7 @@ /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.6 | +| \\ / O peration | Version: splitCyclic | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ @@ -11,11 +11,11 @@ FoamFile format ascii; class volScalarField; location "0"; - object nut; + object nut.k; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -dimensions [0 2 -1 0 0 0 0]; +dimensions [ 0 2 -1 0 0 0 0 ]; internalField uniform 0; @@ -31,15 +31,18 @@ boundaryField type nutkWallFunction; value uniform 0; } - frontBack + frontBack_half0 { type cyclic; - value uniform 0; } defaultFaces { type empty; } + frontBack_half1 + { + type cyclic; + } } diff --git a/tutorials/incompressible/boundaryFoam/boundaryWallFunctionsProfile/0/nut.spalding b/tutorials/incompressible/boundaryFoam/boundaryWallFunctionsProfile/0/nut.spalding index 21cc8ebc19..174b075808 100644 --- a/tutorials/incompressible/boundaryFoam/boundaryWallFunctionsProfile/0/nut.spalding +++ b/tutorials/incompressible/boundaryFoam/boundaryWallFunctionsProfile/0/nut.spalding @@ -1,7 +1,7 @@ /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.6 | +| \\ / O peration | Version: splitCyclic | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ @@ -11,11 +11,11 @@ FoamFile format ascii; class volScalarField; location "0"; - object nut; + object nut.spalding; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -dimensions [0 2 -1 0 0 0 0]; +dimensions [ 0 2 -1 0 0 0 0 ]; internalField uniform 0; @@ -31,15 +31,18 @@ boundaryField type nutUSpaldingWallFunction; value uniform 0; } - frontBack + frontBack_half0 { type cyclic; - value uniform 0; } defaultFaces { type empty; } + frontBack_half1 + { + type cyclic; + } } diff --git a/tutorials/incompressible/boundaryFoam/boundaryWallFunctionsProfile/0/omega b/tutorials/incompressible/boundaryFoam/boundaryWallFunctionsProfile/0/omega index 75b8cd335b..948c7e2409 100644 --- a/tutorials/incompressible/boundaryFoam/boundaryWallFunctionsProfile/0/omega +++ b/tutorials/incompressible/boundaryFoam/boundaryWallFunctionsProfile/0/omega @@ -1,7 +1,7 @@ /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.6 | +| \\ / O peration | Version: splitCyclic | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ @@ -15,7 +15,7 @@ FoamFile } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -dimensions [0 0 -1 0 0 0 0]; +dimensions [ 0 0 -1 0 0 0 0 ]; internalField uniform 1111.11; @@ -31,15 +31,18 @@ boundaryField type omegaWallFunction; value uniform 1111.11; } - frontBack + frontBack_half0 { type cyclic; - value uniform 1111.11; } defaultFaces { type empty; } + frontBack_half1 + { + type cyclic; + } } diff --git a/tutorials/incompressible/boundaryFoam/boundaryWallFunctionsProfile/constant/polyMesh/boundary b/tutorials/incompressible/boundaryFoam/boundaryWallFunctionsProfile/constant/polyMesh/boundary index 34af32827c..0c4f64d3e0 100644 --- a/tutorials/incompressible/boundaryFoam/boundaryWallFunctionsProfile/constant/polyMesh/boundary +++ b/tutorials/incompressible/boundaryFoam/boundaryWallFunctionsProfile/constant/polyMesh/boundary @@ -1,7 +1,7 @@ /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: dev | +| \\ / O peration | Version: splitCyclic | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ @@ -15,7 +15,7 @@ FoamFile } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -4 +5 ( lowerWall { @@ -29,12 +29,19 @@ FoamFile nFaces 1; startFace 80; } - frontBack + frontBack_half0 { type cyclic; - nFaces 160; + nFaces 80; startFace 81; - featureCos 0.9; + neighbourPatch frontBack_half1; + } + frontBack_half1 + { + type cyclic; + nFaces 80; + startFace 161; + neighbourPatch frontBack_half0; } defaultFaces {