Updated the whole of OpenFOAM to use the new templated TurbulenceModels library

The old separate incompressible and compressible libraries have been removed.

Most of the commonly used RANS and LES models have been upgraded to the
new framework but there are a few missing which will be added over the
next few days, in particular the realizable k-epsilon model.  Some of
the less common incompressible RANS models have been introduced into the
new library instantiated for incompressible flow only.  If they prove to
be generally useful they can be templated for compressible and
multiphase application.

The Spalart-Allmaras DDES and IDDES models have been thoroughly
debugged, removing serious errors concerning the use of S rather than
Omega.

The compressible instances of the models have been augmented by a simple
backward-compatible eddyDiffusivity model for thermal transport based on
alphat and alphaEff.  This will be replaced with a separate run-time
selectable thermal transport model framework in a few weeks.

For simplicity and ease of maintenance and further development the
turbulent transport and wall modeling is based on nut/nuEff rather than
mut/muEff for compressible models so that all forms of turbulence models
can use the same wall-functions and other BCs.

All turbulence model selection made in the constant/turbulenceProperties
dictionary with RAS and LES as sub-dictionaries rather than in separate
files which added huge complexity for multiphase.

All tutorials have been updated so study the changes and update your own
cases by comparison with similar cases provided.

Sorry for the inconvenience in the break in backward-compatibility but
this update to the turbulence modeling is an essential step in the
future of OpenFOAM to allow more models to be added and maintained for a
wider range of cases and physics.  Over the next weeks and months more
turbulence models will be added of single and multiphase flow, more
additional sub-models and further development and testing of existing
models.  I hope this brings benefits to all OpenFOAM users.

Henry G. Weller
This commit is contained in:
Henry
2015-01-21 19:21:39 +00:00
parent 2d4d5e93ce
commit 2aec249647
1102 changed files with 9087 additions and 54729 deletions

View File

@ -23,27 +23,27 @@ boundaryField
{
front
{
type compressible::epsilonWallFunction;
type epsilonWallFunction;
value uniform 200;
}
back
{
type compressible::epsilonWallFunction;
type epsilonWallFunction;
value uniform 200;
}
walls
{
type compressible::epsilonWallFunction;
type epsilonWallFunction;
value uniform 200;
}
porosityWall
{
type compressible::epsilonWallFunction;
type epsilonWallFunction;
value uniform 200;
}
inlet
{
type compressible::turbulentMixingLengthDissipationRateInlet;
type turbulentMixingLengthDissipationRateInlet;
mixingLength 0.005;
value uniform 200;
}

View File

@ -23,22 +23,22 @@ boundaryField
{
front
{
type compressible::kqRWallFunction;
type kqRWallFunction;
value uniform 1;
}
back
{
type compressible::kqRWallFunction;
type kqRWallFunction;
value uniform 1;
}
walls
{
type compressible::kqRWallFunction;
type kqRWallFunction;
value uniform 1;
}
porosityWall
{
type compressible::kqRWallFunction;
type kqRWallFunction;
value uniform 1;
}
inlet

View File

@ -11,11 +11,11 @@ FoamFile
format ascii;
class volScalarField;
location "0";
object mut;
object nut;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [1 -1 -1 0 0 0 0];
dimensions [0 2 -1 0 0 0 0];
internalField uniform 0;
@ -23,22 +23,22 @@ boundaryField
{
front
{
type mutkWallFunction;
type nutkWallFunction;
value uniform 0;
}
back
{
type mutkWallFunction;
type nutkWallFunction;
value uniform 0;
}
walls
{
type mutkWallFunction;
type nutkWallFunction;
value uniform 0;
}
porosityWall
{
type mutkWallFunction;
type nutkWallFunction;
value uniform 0;
}
inlet

View File

@ -15,7 +15,16 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
simulationType RASModel;
simulationType RAS;
RAS
{
RASModel kEpsilon;
turbulence on;
printCoeffs on;
}
// ************************************************************************* //

View File

@ -39,7 +39,7 @@ divSchemes
div((rho*R)) Gauss linear;
div(R) Gauss linear;
div(U) Gauss linear;
div((muEff*dev2(T(grad(U))))) Gauss linear;
div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;
}
laplacianSchemes

View File

@ -11,21 +11,21 @@ FoamFile
format ascii;
class volScalarField;
location "0";
object mut;
object nut;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#include "${FOAM_CASE}/constant/caseSettings"
dimensions [1 -1 -1 0 0 0 0];
dimensions [0 2 -1 0 0 0 0];
internalField uniform 0;
boundaryField
{
inlet { $:calculated.mut; }
outlet { $:calculated.mut; }
movingWalls { $:wall.mut; }
inlet { $:calculated.nut; }
outlet { $:calculated.nut; }
movingWalls { $:wall.nut; }
staticWalls { $movingWalls; }
#include "${WM_PROJECT_DIR}/etc/caseDicts/setConstraintTypes"

View File

@ -1,24 +0,0 @@
/*--------------------------------*- 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 dictionary;
location "constant";
object RASProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
RASModel kEpsilon;
turbulence on;
printCoeffs on;
// ************************************************************************* //

View File

@ -22,7 +22,7 @@ calculated
type calculated;
value uniform 0;
}
mut
nut
{
type calculated;
value uniform 0;
@ -99,19 +99,19 @@ wall
k
{
type compressible::kqRWallFunction;
type kqRWallFunction;
value uniform $:innerInlet.k;
}
epsilon
{
type compressible::epsilonWallFunction;
type epsilonWallFunction;
value uniform $:innerInlet.epsilon;
}
mut
nut
{
type mutkWallFunction;
type nutkWallFunction;
value uniform 0;
}

View File

@ -15,6 +15,16 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
simulationType RASModel;
simulationType RAS;
RAS
{
RASModel kEpsilon;
turbulence on;
printCoeffs on;
}
// ************************************************************************* //

View File

@ -35,7 +35,7 @@ divSchemes
div(meshPhi,p) Gauss linear;
div(phi,k) Gauss upwind;
div(phi,epsilon) Gauss upwind;
div((muEff*dev2(T(grad(U))))) Gauss linear;
div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;
}
laplacianSchemes

View File

@ -10,11 +10,11 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
object muSgs;
object nut;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [1 -1 -1 0 0 0 0];
dimensions [0 2 -1 0 0 0 0];
internalField uniform 0;

View File

@ -1,88 +0,0 @@
/*--------------------------------*- 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 dictionary;
location "constant";
object LESProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
LESModel oneEqEddy;
turbulence on;
printCoeffs on;
delta cubeRootVol;
cubeRootVolCoeffs
{
deltaCoeff 1;
}
PrandtlCoeffs
{
delta cubeRootVol;
cubeRootVolCoeffs
{
deltaCoeff 1;
}
smoothCoeffs
{
delta cubeRootVol;
cubeRootVolCoeffs
{
deltaCoeff 1;
}
maxDeltaRatio 1.1;
}
Cdelta 0.158;
}
vanDriestCoeffs
{
delta cubeRootVol;
cubeRootVolCoeffs
{
deltaCoeff 1;
}
smoothCoeffs
{
delta cubeRootVol;
cubeRootVolCoeffs
{
deltaCoeff 1;
}
maxDeltaRatio 1.1;
}
Aplus 26;
Cdelta 0.158;
}
smoothCoeffs
{
delta cubeRootVol;
cubeRootVolCoeffs
{
deltaCoeff 1;
}
maxDeltaRatio 1.1;
}
// ************************************************************************* //

View File

@ -32,12 +32,14 @@ FoamFile
upperWall
{
type wall;
inGroups 1(wall);
nFaces 223;
startFace 24257;
}
lowerWall
{
type wall;
inGroups 1(wall);
nFaces 250;
startFace 24480;
}

View File

@ -15,7 +15,79 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
simulationType LESModel;
simulationType LES;
LES
{
LESModel kEqn;
turbulence on;
printCoeffs on;
delta cubeRootVol;
cubeRootVolCoeffs
{
deltaCoeff 1;
}
PrandtlCoeffs
{
delta cubeRootVol;
cubeRootVolCoeffs
{
deltaCoeff 1;
}
smoothCoeffs
{
delta cubeRootVol;
cubeRootVolCoeffs
{
deltaCoeff 1;
}
maxDeltaRatio 1.1;
}
Cdelta 0.158;
}
vanDriestCoeffs
{
delta cubeRootVol;
cubeRootVolCoeffs
{
deltaCoeff 1;
}
smoothCoeffs
{
delta cubeRootVol;
cubeRootVolCoeffs
{
deltaCoeff 1;
}
maxDeltaRatio 1.1;
}
Aplus 26;
Cdelta 0.158;
}
smoothCoeffs
{
delta cubeRootVol;
cubeRootVolCoeffs
{
deltaCoeff 1;
}
maxDeltaRatio 1.1;
}
}
// ************************************************************************* //

View File

@ -36,7 +36,7 @@ divSchemes
div(phi,B) Gauss limitedLinear 1;
div(phi,muTilda) Gauss limitedLinear 1;
div(B) Gauss linear;
div((muEff*dev2(T(grad(U))))) Gauss linear;
div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;
}
laplacianSchemes

View File

@ -23,27 +23,27 @@ boundaryField
{
front
{
type compressible::epsilonWallFunction;
type epsilonWallFunction;
value uniform 200;
}
back
{
type compressible::epsilonWallFunction;
type epsilonWallFunction;
value uniform 200;
}
walls
{
type compressible::epsilonWallFunction;
type epsilonWallFunction;
value uniform 200;
}
porosityWall
{
type compressible::epsilonWallFunction;
type epsilonWallFunction;
value uniform 200;
}
inlet
{
type compressible::turbulentMixingLengthDissipationRateInlet;
type turbulentMixingLengthDissipationRateInlet;
mixingLength 0.005;
value uniform 200;
}

View File

@ -23,22 +23,22 @@ boundaryField
{
front
{
type compressible::kqRWallFunction;
type kqRWallFunction;
value uniform 1;
}
back
{
type compressible::kqRWallFunction;
type kqRWallFunction;
value uniform 1;
}
walls
{
type compressible::kqRWallFunction;
type kqRWallFunction;
value uniform 1;
}
porosityWall
{
type compressible::kqRWallFunction;
type kqRWallFunction;
value uniform 1;
}
inlet

View File

@ -11,11 +11,11 @@ FoamFile
format ascii;
class volScalarField;
location "0";
object mut;
object nut;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [1 -1 -1 0 0 0 0];
dimensions [0 2 -1 0 0 0 0];
internalField uniform 0;
@ -23,22 +23,22 @@ boundaryField
{
front
{
type mutkWallFunction;
type nutkWallFunction;
value uniform 0;
}
back
{
type mutkWallFunction;
type nutkWallFunction;
value uniform 0;
}
walls
{
type mutkWallFunction;
type nutkWallFunction;
value uniform 0;
}
porosityWall
{
type mutkWallFunction;
type nutkWallFunction;
value uniform 0;
}
inlet

View File

@ -15,7 +15,16 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
simulationType RASModel;
simulationType RAS;
RAS
{
RASModel kEpsilon;
turbulence on;
printCoeffs on;
}
// ************************************************************************* //

View File

@ -39,7 +39,7 @@ divSchemes
div((rho*R)) Gauss linear;
div(R) Gauss linear;
div(U) Gauss linear;
div((muEff*dev2(T(grad(U))))) Gauss linear;
div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;
}
laplacianSchemes

View File

@ -23,13 +23,13 @@ boundaryField
{
movingWall
{
type compressible::epsilonWallFunction;
type epsilonWallFunction;
value $internalField;
}
fixedWalls
{
type compressible::epsilonWallFunction;
type epsilonWallFunction;
value $internalField;
}

View File

@ -23,12 +23,12 @@ boundaryField
{
movingWall
{
type compressible::kqRWallFunction;
type kqRWallFunction;
value uniform 0.00325;
}
fixedWalls
{
type compressible::kqRWallFunction;
type kqRWallFunction;
value uniform 0.00325;
}
frontAndBack

View File

@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [1 -1 -1 0 0 0 0];
dimensions [0 2 -1 0 0 0 0];
internalField uniform 0;
@ -23,7 +23,7 @@ boundaryField
{
movingWall
{
type mutkWallFunction;
type nutkWallFunction;
Cmu 0.09;
kappa 0.41;
E 9.8;
@ -31,7 +31,7 @@ boundaryField
}
fixedWalls
{
type mutkWallFunction;
type nutkWallFunction;
Cmu 0.09;
kappa 0.41;
E 9.8;

View File

@ -23,7 +23,7 @@ boundaryField
{
movingWall
{
type compressible::omegaWallFunction;
type omegaWallFunction;
Cmu 0.09;
kappa 0.41;
E 9.8;
@ -31,7 +31,7 @@ boundaryField
}
fixedWalls
{
type compressible::omegaWallFunction;
type omegaWallFunction;
Cmu 0.09;
kappa 0.41;
E 9.8;

View File

@ -1,25 +0,0 @@
/*--------------------------------*- 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 dictionary;
location "constant";
object RASProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
RASModel kOmegaSST;
turbulence on;
printCoeffs on;
// ************************************************************************* //

View File

@ -15,7 +15,16 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
simulationType RASModel;
simulationType RAS;
RAS
{
RASModel kOmegaSST;
turbulence on;
printCoeffs on;
}
// ************************************************************************* //

View File

@ -39,7 +39,7 @@ divSchemes
div((rho*R)) Gauss linear;
div(R) Gauss linear;
div(U) Gauss linear;
div((muEff*dev2(T(grad(U))))) Gauss linear;
div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;
}
laplacianSchemes

View File

@ -23,13 +23,13 @@ boundaryField
{
rotor
{
type compressible::epsilonWallFunction;
type epsilonWallFunction;
value uniform 20;
}
stator
{
type compressible::epsilonWallFunction;
type epsilonWallFunction;
value uniform 20;
}

View File

@ -23,13 +23,13 @@ boundaryField
{
rotor
{
type compressible::kqRWallFunction;
type kqRWallFunction;
value uniform 0;
}
stator
{
type compressible::kqRWallFunction;
type kqRWallFunction;
value uniform 0;
}

View File

@ -11,11 +11,11 @@ FoamFile
format ascii;
class volScalarField;
location "0";
object mut;
object nut;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [1 -1 -1 0 0 0 0];
dimensions [0 2 -1 0 0 0 0];
internalField uniform 0;
@ -23,13 +23,13 @@ boundaryField
{
rotor
{
type mutkWallFunction;
type nutkWallFunction;
value uniform 0;
}
stator
{
type mutkWallFunction;
type nutkWallFunction;
value uniform 0;
}

View File

@ -1,25 +0,0 @@
/*--------------------------------*- 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 dictionary;
location "constant";
object RASProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
RASModel kEpsilon;
turbulence on;
printCoeffs on;
// ************************************************************************* //

View File

@ -15,7 +15,16 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
simulationType RASModel;
simulationType RAS;
RAS
{
RASModel kEpsilon;
turbulence on;
printCoeffs on;
}
// ************************************************************************* //

View File

@ -32,7 +32,7 @@ divSchemes
div(phi,h) Gauss limitedLinear 1;
div(phi,k) Gauss limitedLinear 1;
div(phi,epsilon) Gauss limitedLinear 1;
div((muEff*dev2(T(grad(U))))) Gauss linear;
div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;
div(phi,K) Gauss linear;
}

View File

@ -17,39 +17,39 @@ FoamFile
dimensions [1 -1 -1 0 0 0 0];
internalField uniform 0;
internalField uniform 1e-3;
boundaryField
{
front
{
type compressible::alphatWallFunction;
value uniform 0;
value $internalField;
}
back
{
type compressible::alphatWallFunction;
value uniform 0;
value $internalField;
}
walls
{
type compressible::alphatWallFunction;
value uniform 0;
value $internalField;
}
porosityWall
{
type compressible::alphatWallFunction;
value uniform 0;
value $internalField;
}
inlet
{
type calculated;
value uniform 0;
value $internalField;
}
outlet
{
type calculated;
value uniform 0;
value $internalField;
}
}

View File

@ -23,27 +23,27 @@ boundaryField
{
front
{
type compressible::epsilonWallFunction;
type epsilonWallFunction;
value uniform 200;
}
back
{
type compressible::epsilonWallFunction;
type epsilonWallFunction;
value uniform 200;
}
walls
{
type compressible::epsilonWallFunction;
type epsilonWallFunction;
value uniform 200;
}
porosityWall
{
type compressible::epsilonWallFunction;
type epsilonWallFunction;
value uniform 200;
}
inlet
{
type compressible::turbulentMixingLengthDissipationRateInlet;
type turbulentMixingLengthDissipationRateInlet;
mixingLength 0.005;
value uniform 200;
}

View File

@ -23,22 +23,22 @@ boundaryField
{
front
{
type compressible::kqRWallFunction;
type kqRWallFunction;
value uniform 1;
}
back
{
type compressible::kqRWallFunction;
type kqRWallFunction;
value uniform 1;
}
walls
{
type compressible::kqRWallFunction;
type kqRWallFunction;
value uniform 1;
}
porosityWall
{
type compressible::kqRWallFunction;
type kqRWallFunction;
value uniform 1;
}
inlet

View File

@ -11,11 +11,11 @@ FoamFile
format ascii;
class volScalarField;
location "0";
object mut;
object nut;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [1 -1 -1 0 0 0 0];
dimensions [0 2 -1 0 0 0 0];
internalField uniform 0;
@ -23,22 +23,22 @@ boundaryField
{
front
{
type mutkWallFunction;
type nutkWallFunction;
value uniform 0;
}
back
{
type mutkWallFunction;
type nutkWallFunction;
value uniform 0;
}
walls
{
type mutkWallFunction;
type nutkWallFunction;
value uniform 0;
}
porosityWall
{
type mutkWallFunction;
type nutkWallFunction;
value uniform 0;
}
inlet

View File

@ -1,25 +0,0 @@
/*--------------------------------*- 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 dictionary;
location "constant";
object RASProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
RASModel kEpsilon;
turbulence on;
printCoeffs on;
// ************************************************************************* //

View File

@ -15,7 +15,16 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
simulationType RASModel;
simulationType RAS;
RAS
{
RASModel kEpsilon;
turbulence on;
printCoeffs on;
}
// ************************************************************************* //

View File

@ -39,7 +39,7 @@ divSchemes
div((rho*R)) Gauss linear;
div(R) Gauss linear;
div(U) Gauss linear;
div((muEff*dev2(T(grad(U))))) Gauss linear;
div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;
}
laplacianSchemes

View File

@ -28,7 +28,7 @@ gradSchemes
divSchemes
{
div(phi,U) bounded Gauss upwind;
div((muEff*dev2(T(grad(U))))) Gauss linear;
div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;
div(phi,e) bounded Gauss upwind;
div(phi,epsilon) bounded Gauss upwind;
div(phi,k) bounded Gauss upwind;

View File

@ -23,31 +23,31 @@ boundaryField
{
front
{
type compressible::epsilonWallFunction;
type epsilonWallFunction;
value uniform 200;
}
back
{
type compressible::epsilonWallFunction;
type epsilonWallFunction;
value uniform 200;
}
walls
{
type compressible::epsilonWallFunction;
type epsilonWallFunction;
value uniform 200;
}
porosityWall
{
type compressible::epsilonWallFunction;
type epsilonWallFunction;
value uniform 200;
}
inlet
{
type compressible::turbulentMixingLengthDissipationRateInlet;
type turbulentMixingLengthDissipationRateInlet;
mixingLength 0.005;
value uniform 200;
}

View File

@ -23,25 +23,25 @@ boundaryField
{
front
{
type compressible::kqRWallFunction;
type kqRWallFunction;
value uniform 1;
}
back
{
type compressible::kqRWallFunction;
type kqRWallFunction;
value uniform 1;
}
walls
{
type compressible::kqRWallFunction;
type kqRWallFunction;
value uniform 1;
}
porosityWall
{
type compressible::kqRWallFunction;
type kqRWallFunction;
value uniform 1;
}

View File

@ -11,11 +11,11 @@ FoamFile
format ascii;
class volScalarField;
location "0";
object mut;
object nut;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 1 -1 -1 0 0 0 0 ];
dimensions [ 0 2 -1 0 0 0 0 ];
internalField uniform 0;
@ -23,25 +23,25 @@ boundaryField
{
front
{
type mutkWallFunction;
type nutkWallFunction;
value uniform 0;
}
back
{
type mutkWallFunction;
type nutkWallFunction;
value uniform 0;
}
walls
{
type mutkWallFunction;
type nutkWallFunction;
value uniform 0;
}
porosityWall
{
type mutkWallFunction;
type nutkWallFunction;
value uniform 0;
}

View File

@ -1,25 +0,0 @@
/*--------------------------------*- 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 dictionary;
location "constant";
object RASProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
RASModel kEpsilon;
turbulence on;
printCoeffs on;
// ************************************************************************* //

View File

@ -11,15 +11,18 @@ FoamFile
format ascii;
class dictionary;
location "constant";
object RASProperties;
object turbulenceProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
RASModel kEpsilon;
RAS
{
RASModel kEpsilon;
turbulence on;
turbulence on;
printCoeffs on;
printCoeffs on;
}
// ************************************************************************* //

View File

@ -28,7 +28,7 @@ gradSchemes
divSchemes
{
div(phi,U) bounded Gauss upwind;
div((muEff*dev2(T(grad(U))))) Gauss linear;
div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;
div(phi,e) bounded Gauss upwind;
div(phi,epsilon) bounded Gauss upwind;
div(phi,k) bounded Gauss upwind;

View File

@ -23,31 +23,31 @@ boundaryField
{
front
{
type compressible::epsilonWallFunction;
type epsilonWallFunction;
value uniform 200;
}
back
{
type compressible::epsilonWallFunction;
type epsilonWallFunction;
value uniform 200;
}
walls
{
type compressible::epsilonWallFunction;
type epsilonWallFunction;
value uniform 200;
}
porosityWall
{
type compressible::epsilonWallFunction;
type epsilonWallFunction;
value uniform 200;
}
inlet
{
type compressible::turbulentMixingLengthDissipationRateInlet;
type turbulentMixingLengthDissipationRateInlet;
mixingLength 0.005;
value uniform 200;
}

View File

@ -23,25 +23,25 @@ boundaryField
{
front
{
type compressible::kqRWallFunction;
type kqRWallFunction;
value uniform 1;
}
back
{
type compressible::kqRWallFunction;
type kqRWallFunction;
value uniform 1;
}
walls
{
type compressible::kqRWallFunction;
type kqRWallFunction;
value uniform 1;
}
porosityWall
{
type compressible::kqRWallFunction;
type kqRWallFunction;
value uniform 1;
}

View File

@ -11,11 +11,11 @@ FoamFile
format ascii;
class volScalarField;
location "0";
object mut;
object nut;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 1 -1 -1 0 0 0 0 ];
dimensions [0 2 -1 0 0 0 0];
internalField uniform 0;
@ -23,25 +23,25 @@ boundaryField
{
front
{
type mutkWallFunction;
type nutkWallFunction;
value uniform 0;
}
back
{
type mutkWallFunction;
type nutkWallFunction;
value uniform 0;
}
walls
{
type mutkWallFunction;
type nutkWallFunction;
value uniform 0;
}
porosityWall
{
type mutkWallFunction;
type nutkWallFunction;
value uniform 0;
}

View File

@ -1,25 +0,0 @@
/*--------------------------------*- 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 dictionary;
location "constant";
object RASProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
RASModel kEpsilon;
turbulence on;
printCoeffs on;
// ************************************************************************* //

View File

@ -20,24 +20,28 @@ FoamFile
front
{
type wall;
inGroups 1(wall);
nFaces 700;
startFace 63400;
}
back
{
type wall;
inGroups 1(wall);
nFaces 700;
startFace 64100;
}
walls
{
type wall;
inGroups 1(wall);
nFaces 1400;
startFace 64800;
}
porosityWall
{
type wall;
inGroups 1(wall);
nFaces 1600;
startFace 66200;
}

View File

@ -11,15 +11,18 @@ FoamFile
format ascii;
class dictionary;
location "constant";
object RASProperties;
object turbulenceProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
RASModel kEpsilon;
RAS
{
RASModel kEpsilon;
turbulence on;
turbulence on;
printCoeffs on;
printCoeffs on;
}
// ************************************************************************* //

View File

@ -30,7 +30,7 @@ divSchemes
default none;
div(phi,U) bounded Gauss upwind;
div((muEff*dev2(T(grad(U))))) Gauss linear;
div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;
div(phi,e) bounded Gauss upwind;
div(phi,epsilon) bounded Gauss upwind;
div(phi,k) bounded Gauss upwind;

View File

@ -23,7 +23,7 @@ boundaryField
{
Default_Boundary_Region
{
type compressible::epsilonWallFunction;
type epsilonWallFunction;
Cmu 0.09;
kappa 0.41;
E 9.8;
@ -31,7 +31,7 @@ boundaryField
}
inlet
{
type compressible::turbulentMixingLengthDissipationRateInlet;
type turbulentMixingLengthDissipationRateInlet;
mixingLength 0.005;
value uniform 200;
}

View File

@ -23,7 +23,7 @@ boundaryField
{
Default_Boundary_Region
{
type compressible::kqRWallFunction;
type kqRWallFunction;
value uniform 1;
}
inlet

View File

@ -11,11 +11,11 @@ FoamFile
format ascii;
class volScalarField;
location "0";
object mut;
object nut;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [1 -1 -1 0 0 0 0];
dimensions [0 2 -1 0 0 0 0];
internalField uniform 0;
@ -23,7 +23,7 @@ boundaryField
{
Default_Boundary_Region
{
type mutkWallFunction;
type nutkWallFunction;
Cmu 0.09;
kappa 0.41;
E 9.8;

View File

@ -1,25 +0,0 @@
/*--------------------------------*- 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 dictionary;
location "constant";
object RASProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
RASModel kEpsilon;
turbulence on;
printCoeffs on;
// ************************************************************************* //

View File

@ -15,7 +15,16 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
simulationType RASModel;
simulationType RAS;
RAS
{
RASModel kEpsilon;
turbulence on;
printCoeffs on;
}
// ************************************************************************* //

View File

@ -30,7 +30,7 @@ divSchemes
default none;
div(phi,U) bounded Gauss upwind;
div((muEff*dev2(T(grad(U))))) Gauss linear;
div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;
div(phi,e) bounded Gauss upwind;
div(phi,epsilon) bounded Gauss upwind;
div(phi,k) bounded Gauss upwind;

View File

@ -33,7 +33,7 @@ divSchemes
div(phi,e) Gauss limitedLinear 1;
div(phi,K) Gauss limitedLinear 1;
div(phiv,p) Gauss limitedLinear 1;
div((muEff*dev2(T(grad(U))))) Gauss linear 1;
div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear 1;
}
laplacianSchemes

View File

@ -33,7 +33,7 @@ divSchemes
div(phi,e) Gauss limitedLinear 1;
div(phi,K) Gauss limitedLinear 1;
div(phiv,p) Gauss limitedLinear 1;
div((muEff*dev2(T(grad(U))))) Gauss linear 1;
div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear 1;
}
laplacianSchemes

View File

@ -39,7 +39,7 @@ boundaryField
}
WALL10
{
type compressible::epsilonWallFunction;
type epsilonWallFunction;
Cmu 0.09;
kappa 0.41;
E 9.8;

View File

@ -39,7 +39,7 @@ boundaryField
}
WALL10
{
type compressible::kqRWallFunction;
type kqRWallFunction;
value uniform 1000;
}
}

View File

@ -11,11 +11,11 @@ FoamFile
format ascii;
class volScalarField;
location "0";
object mut;
object nut;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [1 -1 -1 0 0 0 0];
dimensions [0 2 -1 0 0 0 0];
internalField uniform 0;
@ -37,7 +37,7 @@ boundaryField
}
WALL10
{
type mutkWallFunction;
type nutkWallFunction;
Cmu 0.09;
kappa 0.41;
E 9.8;

View File

@ -1,25 +0,0 @@
/*--------------------------------*- 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 dictionary;
location "constant";
object RASProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
RASModel LaunderSharmaKE;
turbulence on;
printCoeffs on;
// ************************************************************************* //

View File

@ -39,6 +39,7 @@ FoamFile
WALL10
{
type wall;
inGroups 1(wall);
nFaces 260;
startFace 160170;
}

View File

@ -15,7 +15,16 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
simulationType RASModel;
simulationType RAS;
RAS
{
RASModel LaunderSharmaKE;
turbulence on;
printCoeffs on;
}
// ************************************************************************* //

View File

@ -35,7 +35,7 @@ divSchemes
div(phiv,p) Gauss limitedLinear 1;
div(phi,k) Gauss upwind;
div(phi,epsilon) Gauss upwind;
div((muEff*dev2(T(grad(U))))) Gauss linear;
div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;
}
laplacianSchemes

View File

@ -46,7 +46,7 @@ boundaryField
}
prismWall
{
type compressible::epsilonWallFunction;
type epsilonWallFunction;
value uniform 266000;
}
defaultFaces

View File

@ -46,7 +46,7 @@ boundaryField
}
prismWall
{
type compressible::kqRWallFunction;
type kqRWallFunction;
value uniform 1000;
}
defaultFaces

View File

@ -11,11 +11,11 @@ FoamFile
format ascii;
class volScalarField;
location "0";
object mut;
object nut;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [1 -1 -1 0 0 0 0];
dimensions [0 2 -1 0 0 0 0];
internalField uniform 0;
@ -43,7 +43,7 @@ boundaryField
}
prismWall
{
type mutkWallFunction;
type nutkWallFunction;
value uniform 0;
}
defaultFaces

View File

@ -1,25 +0,0 @@
/*--------------------------------*- 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 dictionary;
location "constant";
object RASProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
RASModel kEpsilon;
turbulence on;
printCoeffs on;
// ************************************************************************* //

View File

@ -15,7 +15,16 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
simulationType RASModel;
simulationType RAS;
RAS
{
RASModel kEpsilon;
turbulence on;
printCoeffs on;
}
// ************************************************************************* //

View File

@ -35,7 +35,7 @@ divSchemes
div(phiv,p) Gauss limitedLinear 1;
div(phi,k) Gauss upwind;
div(phi,epsilon) Gauss upwind;
div((muEff*dev2(T(grad(U))))) Gauss linear;
div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;
}
laplacianSchemes