From 0bd90c04d0d6cf4669ac75d13ea7f0848797102c Mon Sep 17 00:00:00 2001 From: Philippose Rajan Date: Tue, 2 Nov 2010 23:25:19 +0100 Subject: [PATCH] Fix Tutorials: Tutorial "mixer" in "incompressible/simpleSRFFoam" now works fine. --- .../incompressible/simpleSRFFoam/mixer/0/Urel | 4 +- .../simpleSRFFoam/mixer/0/epsilon | 4 +- .../incompressible/simpleSRFFoam/mixer/0/k | 19 +- .../simpleSRFFoam/mixer/0/omega | 29 ++- .../incompressible/simpleSRFFoam/mixer/0/p | 4 +- .../mixer/constant/polyMesh/blockMeshDict | 204 +++++++++--------- .../simpleSRFFoam/mixer/system/fvSolution | 21 +- 7 files changed, 152 insertions(+), 133 deletions(-) diff --git a/tutorials/incompressible/simpleSRFFoam/mixer/0/Urel b/tutorials/incompressible/simpleSRFFoam/mixer/0/Urel index 132090d2b..3a37f68b2 100644 --- a/tutorials/incompressible/simpleSRFFoam/mixer/0/Urel +++ b/tutorials/incompressible/simpleSRFFoam/mixer/0/Urel @@ -1,8 +1,8 @@ /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.5 | -| \\ / A nd | Web: http://www.OpenFOAM.org | +| \\ / O peration | Version: 1.6-ext | +| \\ / A nd | Web: www.extend-project.de | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile diff --git a/tutorials/incompressible/simpleSRFFoam/mixer/0/epsilon b/tutorials/incompressible/simpleSRFFoam/mixer/0/epsilon index b2de52763..3e3cb9862 100644 --- a/tutorials/incompressible/simpleSRFFoam/mixer/0/epsilon +++ b/tutorials/incompressible/simpleSRFFoam/mixer/0/epsilon @@ -1,8 +1,8 @@ /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.5 | -| \\ / A nd | Web: http://www.OpenFOAM.org | +| \\ / O peration | Version: 1.6-ext | +| \\ / A nd | Web: www.extend-project.de | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile diff --git a/tutorials/incompressible/simpleSRFFoam/mixer/0/k b/tutorials/incompressible/simpleSRFFoam/mixer/0/k index 0b8345b26..3de3db845 100644 --- a/tutorials/incompressible/simpleSRFFoam/mixer/0/k +++ b/tutorials/incompressible/simpleSRFFoam/mixer/0/k @@ -1,8 +1,8 @@ /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.5 | -| \\ / A nd | Web: http://www.OpenFOAM.org | +| \\ / F ield | OpenFOAM Extend Project: Open source CFD | +| \\ / O peration | Version: 1.6-ext | +| \\ / A nd | Web: www.extend-project.de | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile @@ -10,6 +10,7 @@ FoamFile version 2.0; format ascii; class volScalarField; + location "0"; object k; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // @@ -25,26 +26,26 @@ boundaryField type fixedValue; value uniform 0.375; } - outlet { type zeroGradient; } - innerWall { - type zeroGradient; + type kqRWallFunction; + value uniform 0.375; } - outerWall { - type zeroGradient; + type kqRWallFunction; + value uniform 0.375; } - cyclic { type cyclic; + value uniform 0.375; } } + // ************************************************************************* // diff --git a/tutorials/incompressible/simpleSRFFoam/mixer/0/omega b/tutorials/incompressible/simpleSRFFoam/mixer/0/omega index c5c54bbe2..4a3fe9a4f 100644 --- a/tutorials/incompressible/simpleSRFFoam/mixer/0/omega +++ b/tutorials/incompressible/simpleSRFFoam/mixer/0/omega @@ -1,8 +1,8 @@ /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.5 | -| \\ / A nd | Web: http://www.OpenFOAM.org | +| \\ / F ield | OpenFOAM Extend Project: Open source CFD | +| \\ / O peration | Version: 1.6-ext | +| \\ / A nd | Web: www.extend-project.de | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile @@ -10,6 +10,7 @@ FoamFile version 2.0; format ascii; class volScalarField; + location "0"; object omega; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // @@ -25,26 +26,36 @@ boundaryField type fixedValue; value uniform 3.5; } - outlet { type zeroGradient; } - innerWall { - type zeroGradient; + type omegaWallFunction; + U Urel; + Cmu 0.09; + kappa 0.41; + E 9.8; + beta1 0.075; + value uniform 3.5; } - outerWall { - type zeroGradient; + type omegaWallFunction; + U Urel; + Cmu 0.09; + kappa 0.41; + E 9.8; + beta1 0.075; + value uniform 3.5; } - cyclic { type cyclic; + value uniform 3.5; } } + // ************************************************************************* // diff --git a/tutorials/incompressible/simpleSRFFoam/mixer/0/p b/tutorials/incompressible/simpleSRFFoam/mixer/0/p index 631358440..fb7c965f5 100644 --- a/tutorials/incompressible/simpleSRFFoam/mixer/0/p +++ b/tutorials/incompressible/simpleSRFFoam/mixer/0/p @@ -1,8 +1,8 @@ /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.5 | -| \\ / A nd | Web: http://www.OpenFOAM.org | +| \\ / O peration | Version: 1.6-ext | +| \\ / A nd | Web: www.extend-project.de | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile diff --git a/tutorials/incompressible/simpleSRFFoam/mixer/constant/polyMesh/blockMeshDict b/tutorials/incompressible/simpleSRFFoam/mixer/constant/polyMesh/blockMeshDict index 73e28527d..436ff530e 100644 --- a/tutorials/incompressible/simpleSRFFoam/mixer/constant/polyMesh/blockMeshDict +++ b/tutorials/incompressible/simpleSRFFoam/mixer/constant/polyMesh/blockMeshDict @@ -12,105 +12,105 @@ FoamFile class dictionary; object blockMeshDict; } - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -convertToMeters 0.1; - -vertices -( - ( 0.500 0.000 0.000) - ( 0.369 0.338 0.000) - ( 0.338 0.369 0.000) - ( 0.000 0.500 0.000) - ( 0.737 0.676 0.000) - ( 0.074 0.068 0.000) - ( 0.676 0.737 0.000) - ( 0.068 0.074 0.000) - ( 0.000 1.000 0.000) - ( 1.000 0.000 0.000) - ( 0.100 0.000 0.000) - ( 0.000 0.100 0.000) - ( 0.500 0.000 2.000) - ( 0.369 0.338 2.000) - ( 0.338 0.369 2.000) - ( 0.000 0.500 2.000) - ( 0.737 0.676 2.000) - ( 0.074 0.068 2.000) - ( 0.676 0.737 2.000) - ( 0.068 0.074 2.000) - ( 0.000 1.000 2.000) - ( 1.000 0.000 2.000) - ( 0.100 0.000 2.000) - ( 0.000 0.100 2.000) -); - -blocks -( - hex (1 0 9 4 13 12 21 16) (10 20 40) simpleGrading (1 1 1) - hex (2 1 4 6 14 13 16 18) (2 20 40) simpleGrading (1 1 1) - hex (3 2 6 8 15 14 18 20) (10 20 40) simpleGrading (1 1 1) - hex (5 10 0 1 17 22 12 13) (10 20 40) simpleGrading (1 1 1) - hex (11 7 2 3 23 19 14 15) (10 20 40) simpleGrading (1 1 1) -); - -edges -( - arc 0 1 ( 0.470 0.171 0.000 ) - arc 12 13 ( 0.470 0.171 2.000 ) - arc 2 3 ( 0.171 0.470 0.000 ) - arc 14 15 ( 0.171 0.470 2.000 ) - arc 9 4 ( 0.940 0.342 0.000 ) - arc 21 16 ( 0.940 0.342 2.000 ) - arc 5 10 ( 0.094 0.034 0.000 ) - arc 17 22 ( 0.094 0.034 2.000 ) - arc 6 8 ( 0.342 0.940 0.000 ) - arc 18 20 ( 0.342 0.940 2.000 ) - arc 11 7 ( 0.034 0.094 0.000 ) - arc 23 19 ( 0.034 0.094 2.000 ) -); - -patches -( - patch inlet - ( - (13 12 21 16) - (14 13 16 18) - (15 14 18 20) - (17 22 12 13) - (23 19 14 15) - ) - patch outlet - ( - (1 4 9 0) - (2 6 4 1) - (3 8 6 2) - (5 1 0 10) - (11 3 2 7) - ) - wall innerWall - ( - (2 1 13 14) - (5 10 22 17) - (5 17 13 1) - (11 7 19 23) - (7 2 14 19) - ) - wall outerWall - ( - (4 16 21 9) - (6 18 16 4) - (8 20 18 6) - ) - cyclic cyclic - ( - (0 9 21 12) - (10 0 12 22) - (3 15 20 8) - (11 23 15 3) - ) -); - -mergeMatchPairs -( -); + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +convertToMeters 0.1; + +vertices +( + ( 0.500 0.000 0.000) + ( 0.369 0.338 0.000) + ( 0.338 0.369 0.000) + ( 0.000 0.500 0.000) + ( 0.737 0.676 0.000) + ( 0.074 0.068 0.000) + ( 0.676 0.737 0.000) + ( 0.068 0.074 0.000) + ( 0.000 1.000 0.000) + ( 1.000 0.000 0.000) + ( 0.100 0.000 0.000) + ( 0.000 0.100 0.000) + ( 0.500 0.000 2.000) + ( 0.369 0.338 2.000) + ( 0.338 0.369 2.000) + ( 0.000 0.500 2.000) + ( 0.737 0.676 2.000) + ( 0.074 0.068 2.000) + ( 0.676 0.737 2.000) + ( 0.068 0.074 2.000) + ( 0.000 1.000 2.000) + ( 1.000 0.000 2.000) + ( 0.100 0.000 2.000) + ( 0.000 0.100 2.000) +); + +blocks +( + hex (1 0 9 4 13 12 21 16) (10 20 40) simpleGrading (1 1 1) + hex (2 1 4 6 14 13 16 18) (2 20 40) simpleGrading (1 1 1) + hex (3 2 6 8 15 14 18 20) (10 20 40) simpleGrading (1 1 1) + hex (5 10 0 1 17 22 12 13) (10 20 40) simpleGrading (1 1 1) + hex (11 7 2 3 23 19 14 15) (10 20 40) simpleGrading (1 1 1) +); + +edges +( + arc 0 1 ( 0.470 0.171 0.000 ) + arc 12 13 ( 0.470 0.171 2.000 ) + arc 2 3 ( 0.171 0.470 0.000 ) + arc 14 15 ( 0.171 0.470 2.000 ) + arc 9 4 ( 0.940 0.342 0.000 ) + arc 21 16 ( 0.940 0.342 2.000 ) + arc 5 10 ( 0.094 0.034 0.000 ) + arc 17 22 ( 0.094 0.034 2.000 ) + arc 6 8 ( 0.342 0.940 0.000 ) + arc 18 20 ( 0.342 0.940 2.000 ) + arc 11 7 ( 0.034 0.094 0.000 ) + arc 23 19 ( 0.034 0.094 2.000 ) +); + +patches +( + patch inlet + ( + (13 12 21 16) + (14 13 16 18) + (15 14 18 20) + (17 22 12 13) + (23 19 14 15) + ) + patch outlet + ( + (1 4 9 0) + (2 6 4 1) + (3 8 6 2) + (5 1 0 10) + (11 3 2 7) + ) + wall innerWall + ( + (2 1 13 14) + (5 10 22 17) + (5 17 13 1) + (11 7 19 23) + (7 2 14 19) + ) + wall outerWall + ( + (4 16 21 9) + (6 18 16 4) + (8 20 18 6) + ) + cyclic cyclic + ( + (0 9 21 12) + (10 0 12 22) + (3 15 20 8) + (11 23 15 3) + ) +); + +mergeMatchPairs +( +); diff --git a/tutorials/incompressible/simpleSRFFoam/mixer/system/fvSolution b/tutorials/incompressible/simpleSRFFoam/mixer/system/fvSolution index f16662b3e..f4df75eb9 100644 --- a/tutorials/incompressible/simpleSRFFoam/mixer/system/fvSolution +++ b/tutorials/incompressible/simpleSRFFoam/mixer/system/fvSolution @@ -16,44 +16,51 @@ FoamFile solvers { - p PCG + p { + solver PCG; preconditioner DIC; tolerance 1e-06; relTol 0.01; }; - Urel PBiCG + Urel { + solver PBiCG; preconditioner DILU; tolerance 1e-05; relTol 0.1; }; - k PBiCG + k { + solver PBiCG; preconditioner DILU; tolerance 1e-05; relTol 0.1; }; - epsilon PBiCG + epsilon { + solver PBiCG; preconditioner DILU; tolerance 1e-05; relTol 0.1; }; - omega PBiCG + omega { + solver PBiCG; preconditioner DILU; tolerance 1e-05; relTol 0.1; }; - R PBiCG + R { + solver PBiCG; preconditioner DILU; tolerance 1e-05; relTol 0.1; }; - nuTilda PBiCG + nuTilda { + solver PBiCG; preconditioner DILU; tolerance 1e-05; relTol 0.1;