From 4d142dacb584311a5a2b5d426b9e0b120547a777 Mon Sep 17 00:00:00 2001 From: Henry Date: Wed, 28 Jan 2015 18:36:03 +0000 Subject: [PATCH] tutorials/incompressible/simpleFoam/pitzDaily: Setup to run with range of turbulence models --- .../incompressible/simpleFoam/pitzDaily/0/f | 49 ++++++++++++++++++ .../simpleFoam/pitzDaily/0/omega | 50 +++++++++++++++++++ .../incompressible/simpleFoam/pitzDaily/0/v2 | 50 +++++++++++++++++++ .../pitzDaily/constant/turbulenceProperties | 2 +- .../simpleFoam/pitzDaily/system/controlDict | 6 +-- .../simpleFoam/pitzDaily/system/fvSchemes | 16 +++--- .../simpleFoam/pitzDaily/system/fvSolution | 9 ++-- 7 files changed, 166 insertions(+), 16 deletions(-) create mode 100644 tutorials/incompressible/simpleFoam/pitzDaily/0/f create mode 100644 tutorials/incompressible/simpleFoam/pitzDaily/0/omega create mode 100644 tutorials/incompressible/simpleFoam/pitzDaily/0/v2 diff --git a/tutorials/incompressible/simpleFoam/pitzDaily/0/f b/tutorials/incompressible/simpleFoam/pitzDaily/0/f new file mode 100644 index 000000000..f9885d8d8 --- /dev/null +++ b/tutorials/incompressible/simpleFoam/pitzDaily/0/f @@ -0,0 +1,49 @@ +/*--------------------------------*- 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 volScalarField; + location "0"; + object v2; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 0 -1 0 0 0 0]; + +internalField uniform 0; + +boundaryField +{ + inlet + { + type zeroGradient; + } + outlet + { + type zeroGradient; + } + upperWall + { + type fWallFunction; + value uniform 0; + } + lowerWall + { + type fWallFunction; + value uniform 0; + } + frontAndBack + { + type empty; + } +} + + +// ************************************************************************* // diff --git a/tutorials/incompressible/simpleFoam/pitzDaily/0/omega b/tutorials/incompressible/simpleFoam/pitzDaily/0/omega new file mode 100644 index 000000000..5fc3e8b82 --- /dev/null +++ b/tutorials/incompressible/simpleFoam/pitzDaily/0/omega @@ -0,0 +1,50 @@ +/*--------------------------------*- 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 volScalarField; + location "0"; + object omega; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 0 -1 0 0 0 0]; + +internalField uniform 39.6; + +boundaryField +{ + inlet + { + type fixedValue; + value uniform 39.6; + } + outlet + { + type zeroGradient; + } + upperWall + { + type omegaWallFunction; + value uniform 39.6; + } + lowerWall + { + type omegaWallFunction; + value uniform 39.6; + } + frontAndBack + { + type empty; + } +} + + +// ************************************************************************* // diff --git a/tutorials/incompressible/simpleFoam/pitzDaily/0/v2 b/tutorials/incompressible/simpleFoam/pitzDaily/0/v2 new file mode 100644 index 000000000..b7bc05b72 --- /dev/null +++ b/tutorials/incompressible/simpleFoam/pitzDaily/0/v2 @@ -0,0 +1,50 @@ +/*--------------------------------*- 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 volScalarField; + location "0"; + object v2; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 2 -2 0 0 0 0]; + +internalField uniform 0.25; + +boundaryField +{ + inlet + { + type fixedValue; + value $internalField; + } + outlet + { + type zeroGradient; + } + upperWall + { + type v2WallFunction; + value $internalField; + } + lowerWall + { + type v2WallFunction; + value $internalField; + } + frontAndBack + { + type empty; + } +} + + +// ************************************************************************* // diff --git a/tutorials/incompressible/simpleFoam/pitzDaily/constant/turbulenceProperties b/tutorials/incompressible/simpleFoam/pitzDaily/constant/turbulenceProperties index 381b548ef..1c97bd5f7 100644 --- a/tutorials/incompressible/simpleFoam/pitzDaily/constant/turbulenceProperties +++ b/tutorials/incompressible/simpleFoam/pitzDaily/constant/turbulenceProperties @@ -19,7 +19,7 @@ simulationType RAS; RAS { - RASModel kEpsilon; + RASModel v2f; //kEpsilon; //realizableKE; //kOmega; //kOmegaSST; turbulence on; diff --git a/tutorials/incompressible/simpleFoam/pitzDaily/system/controlDict b/tutorials/incompressible/simpleFoam/pitzDaily/system/controlDict index 688796fe6..e003bc42f 100644 --- a/tutorials/incompressible/simpleFoam/pitzDaily/system/controlDict +++ b/tutorials/incompressible/simpleFoam/pitzDaily/system/controlDict @@ -17,19 +17,19 @@ FoamFile application simpleFoam; -startFrom latestTime; +startFrom startTime; startTime 0; stopAt endTime; -endTime 1000; +endTime 2000; deltaT 1; writeControl timeStep; -writeInterval 50; +writeInterval 100; purgeWrite 0; diff --git a/tutorials/incompressible/simpleFoam/pitzDaily/system/fvSchemes b/tutorials/incompressible/simpleFoam/pitzDaily/system/fvSchemes index 268cde63e..82b90f408 100644 --- a/tutorials/incompressible/simpleFoam/pitzDaily/system/fvSchemes +++ b/tutorials/incompressible/simpleFoam/pitzDaily/system/fvSchemes @@ -28,12 +28,11 @@ gradSchemes divSchemes { default none; - div(phi,U) bounded Gauss upwind; - div(phi,k) bounded Gauss upwind; - div(phi,epsilon) bounded Gauss upwind; - div(phi,R) bounded Gauss upwind; - div(R) Gauss linear; - div(phi,nuTilda) bounded Gauss upwind; + div(phi,U) bounded Gauss linearUpwind grad(U); + div(phi,k) bounded Gauss limitedLinear 1; + div(phi,epsilon) bounded Gauss limitedLinear 1; + div(phi,omega) bounded Gauss limitedLinear 1; + div(phi,v2) bounded Gauss limitedLinear 1; div((nuEff*dev2(T(grad(U))))) Gauss linear; } @@ -58,5 +57,10 @@ fluxRequired p ; } +wallDist +{ + method meshWave; +} + // ************************************************************************* // diff --git a/tutorials/incompressible/simpleFoam/pitzDaily/system/fvSolution b/tutorials/incompressible/simpleFoam/pitzDaily/system/fvSolution index ed2f5b2fe..0c4a0e387 100644 --- a/tutorials/incompressible/simpleFoam/pitzDaily/system/fvSolution +++ b/tutorials/incompressible/simpleFoam/pitzDaily/system/fvSolution @@ -31,7 +31,7 @@ solvers mergeLevels 1; } - "(U|k|epsilon|R|nuTilda)" + "(U|k|epsilon|omega|f|v2)" { solver smoothSolver; smoother symGaussSeidel; @@ -48,7 +48,7 @@ SIMPLE { p 1e-2; U 1e-3; - "(k|epsilon|omega)" 1e-3; + "(k|epsilon|omega|f|v2)" 1e-3; } } @@ -61,10 +61,7 @@ relaxationFactors equations { U 0.7; - k 0.7; - epsilon 0.7; - R 0.7; - nuTilda 0.7; + ".*" 0.5; } }