From 1089bbc69c02d5b86cd7ffcb522e48d10930f22a Mon Sep 17 00:00:00 2001 From: henry Date: Wed, 29 Jul 2009 11:52:42 +0100 Subject: [PATCH] Corrected omega wall-function BCs. --- .../incompressible/simpleFoam/motorBike/0/k | 25 +++++++++++++- .../simpleFoam/motorBike/0/omega | 25 +++++++++++++- .../motorBike/0/turbulentBoundaryField | 33 ------------------- .../motorBike/constant/polyMesh/boundary | 2 +- 4 files changed, 49 insertions(+), 36 deletions(-) delete mode 100644 tutorials/incompressible/simpleFoam/motorBike/0/turbulentBoundaryField diff --git a/tutorials/incompressible/simpleFoam/motorBike/0/k b/tutorials/incompressible/simpleFoam/motorBike/0/k index 257b472da8..457efefed2 100644 --- a/tutorials/incompressible/simpleFoam/motorBike/0/k +++ b/tutorials/incompressible/simpleFoam/motorBike/0/k @@ -20,6 +20,29 @@ dimensions [0 2 -2 0 0 0 0]; internalField uniform $turbulentKE; -#include "turbulentBoundaryField" +boundaryField +{ + #include "fixedInlet" + + outlet + { + type inletOutlet; + inletValue $internalField; + value $internalField; + } + + lowerWall + { + type kqRWallFunction; + } + + "motorBike_.*" + { + type kqRWallFunction; + } + + #include "frontBackUpperPatches" +} + // ************************************************************************* // diff --git a/tutorials/incompressible/simpleFoam/motorBike/0/omega b/tutorials/incompressible/simpleFoam/motorBike/0/omega index 94cbf590c2..16424f9bb3 100644 --- a/tutorials/incompressible/simpleFoam/motorBike/0/omega +++ b/tutorials/incompressible/simpleFoam/motorBike/0/omega @@ -20,6 +20,29 @@ dimensions [0 0 -1 0 0 0 0]; internalField uniform $turbulentOmega; -#include "turbulentBoundaryField" +boundaryField +{ + #include "fixedInlet" + + outlet + { + type inletOutlet; + inletValue $internalField; + value $internalField; + } + + lowerWall + { + type omegaWallFunction; + } + + "motorBike_.*" + { + type omegaWallFunction; + } + + #include "frontBackUpperPatches" +} + // ************************************************************************* // diff --git a/tutorials/incompressible/simpleFoam/motorBike/0/turbulentBoundaryField b/tutorials/incompressible/simpleFoam/motorBike/0/turbulentBoundaryField deleted file mode 100644 index aa4e5eded9..0000000000 --- a/tutorials/incompressible/simpleFoam/motorBike/0/turbulentBoundaryField +++ /dev/null @@ -1,33 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.6 | -| \\ / A nd | Web: http://www.OpenFOAM.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ - -boundaryField -{ - #include "fixedInlet" - - outlet - { - type inletOutlet; - inletValue $internalField; - value $internalField; - } - - lowerWall - { - type kqRWallFunction; - } - - "motorBike_.*" - { - type kqRWallFunction; - } - - #include "frontBackUpperPatches" -} - -// ************************************************************************* // diff --git a/tutorials/incompressible/simpleFoam/motorBike/constant/polyMesh/boundary b/tutorials/incompressible/simpleFoam/motorBike/constant/polyMesh/boundary index e96b062da6..b79c6ad432 100644 --- a/tutorials/incompressible/simpleFoam/motorBike/constant/polyMesh/boundary +++ b/tutorials/incompressible/simpleFoam/motorBike/constant/polyMesh/boundary @@ -1,7 +1,7 @@ /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.6 | +| \\ / O peration | Version: dev | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/