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

@ -0,0 +1,28 @@
/*--------------------------------*- 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 turbulenceProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
RAS
{
RASModel kEpsilon;
turbulence on;
printCoeffs on;
}
// ************************************************************************* //

View File

@ -35,7 +35,7 @@ divSchemes
div(phi,epsilon) Gauss upwind;
div(phi,R) Gauss upwind;
div(R) Gauss linear;
div((nuEff*dev(T(grad(U))))) Gauss linear;
div((nuEff*dev2(T(grad(U))))) Gauss linear;
}
laplacianSchemes

View File

@ -0,0 +1,28 @@
/*--------------------------------*- 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 turbulenceProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
RAS
{
RASModel kEpsilon;
turbulence on;
printCoeffs on;
}
// ************************************************************************* //

View File

@ -33,7 +33,7 @@ divSchemes
div(phi,T) bounded Gauss upwind;
div(phi,k) bounded Gauss upwind;
div(phi,epsilon) bounded Gauss upwind;
div((nuEff*dev(T(grad(U))))) Gauss linear;
div((nuEff*dev2(T(grad(U))))) Gauss linear;
}
laplacianSchemes

View File

@ -0,0 +1,28 @@
/*--------------------------------*- 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 turbulenceProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
RAS
{
RASModel kEpsilon;
turbulence on;
printCoeffs on;
}
// ************************************************************************* //

View File

@ -15,13 +15,6 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
libs
(
"libincompressibleTurbulenceModel.so"
"libincompressibleRASModels.so"
"libincompressibleTransportModels.so"
);
application buoyantBoussinesqSimpleFoam;
startFrom startTime;

View File

@ -35,7 +35,7 @@ divSchemes
div(phi,epsilon) bounded Gauss upwind;
div(phi,R) bounded Gauss upwind;
div(R) Gauss linear;
div((nuEff*dev(T(grad(U))))) Gauss linear;
div((nuEff*dev2(T(grad(U))))) Gauss linear;
}
laplacianSchemes

View File

@ -23,17 +23,17 @@ boundaryField
{
floor
{
type compressible::epsilonWallFunction;
type epsilonWallFunction;
value uniform 0.01;
}
ceiling
{
type compressible::epsilonWallFunction;
type epsilonWallFunction;
value uniform 0.01;
}
fixedWalls
{
type compressible::epsilonWallFunction;
type epsilonWallFunction;
value uniform 0.01;
}
}

View File

@ -23,17 +23,17 @@ boundaryField
{
floor
{
type compressible::kqRWallFunction;
type kqRWallFunction;
value uniform 0.1;
}
ceiling
{
type compressible::kqRWallFunction;
type kqRWallFunction;
value uniform 0.1;
}
fixedWalls
{
type compressible::kqRWallFunction;
type kqRWallFunction;
value uniform 0.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,17 +23,17 @@ boundaryField
{
floor
{
type mutkWallFunction;
type nutkWallFunction;
value uniform 0;
}
ceiling
{
type mutkWallFunction;
type nutkWallFunction;
value uniform 0;
}
fixedWalls
{
type mutkWallFunction;
type nutkWallFunction;
value uniform 0;
}
}

View File

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

View File

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

View File

@ -23,22 +23,22 @@ boundaryField
{
frontAndBack
{
type compressible::epsilonWallFunction;
type epsilonWallFunction;
value uniform 4e-06;
}
topAndBottom
{
type compressible::epsilonWallFunction;
type epsilonWallFunction;
value uniform 4e-06;
}
hot
{
type compressible::epsilonWallFunction;
type epsilonWallFunction;
value uniform 4e-06;
}
cold
{
type compressible::epsilonWallFunction;
type epsilonWallFunction;
value uniform 4e-06;
}
}

View File

@ -23,22 +23,22 @@ boundaryField
{
frontAndBack
{
type compressible::kqRWallFunction;
type kqRWallFunction;
value uniform 3.75e-04;
}
topAndBottom
{
type compressible::kqRWallFunction;
type kqRWallFunction;
value uniform 3.75e-04;
}
hot
{
type compressible::kqRWallFunction;
type kqRWallFunction;
value uniform 3.75e-04;
}
cold
{
type compressible::kqRWallFunction;
type kqRWallFunction;
value uniform 3.75e-04;
}
}

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
{
frontAndBack
{
type mutUWallFunction;
type nutUWallFunction;
value uniform 0;
}
topAndBottom
{
type mutUWallFunction;
type nutUWallFunction;
value uniform 0;
}
hot
{
type mutUWallFunction;
type nutUWallFunction;
value uniform 0;
}
cold
{
type mutUWallFunction;
type nutUWallFunction;
value uniform 0;
}
}

View File

@ -23,22 +23,22 @@ boundaryField
{
frontAndBack
{
type compressible::omegaWallFunction;
type omegaWallFunction;
value uniform 0.12;
}
topAndBottom
{
type compressible::omegaWallFunction;
type omegaWallFunction;
value uniform 0.12;
}
hot
{
type compressible::omegaWallFunction;
type omegaWallFunction;
value uniform 0.12;
}
cold
{
type compressible::omegaWallFunction;
type omegaWallFunction;
value uniform 0.12;
}
}

View File

@ -1,23 +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;
object RASProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
RASModel kOmegaSST;
turbulence on;
printCoeffs on;
// ************************************************************************* //

View File

@ -10,16 +10,18 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "constant";
object RASProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
RASModel kEpsilon;
RAS
{
RASModel kOmegaSST;
turbulence on;
turbulence on;
printCoeffs on;
printCoeffs on;
}
// ************************************************************************* //

View File

@ -34,7 +34,7 @@ divSchemes
div(phi,k) bounded Gauss limitedLinear 0.2;
div(phi,epsilon) bounded Gauss limitedLinear 0.2;
div(phi,omega) bounded Gauss limitedLinear 0.2;
div((muEff*dev2(T(grad(U))))) Gauss linear;
div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;
}
laplacianSchemes

View File

@ -26,7 +26,7 @@ boundaryField
floor
{
type compressible::epsilonWallFunction;
type epsilonWallFunction;
Cmu 0.09;
kappa 0.41;
E 9.8;
@ -34,7 +34,7 @@ boundaryField
}
ceiling
{
type compressible::epsilonWallFunction;
type epsilonWallFunction;
Cmu 0.09;
kappa 0.41;
E 9.8;

View File

@ -14,19 +14,19 @@ alphat
epsilon
{
type compressible::epsilonWallFunction;
type epsilonWallFunction;
value uniform 0.01;
}
k
{
type compressible::kqRWallFunction;
type kqRWallFunction;
value uniform 0.01;
}
mut
nut
{
type mutkWallFunction;
type nutkWallFunction;
value uniform 0;
}

View File

@ -26,12 +26,12 @@ boundaryField
floor
{
type compressible::kqRWallFunction;
type kqRWallFunction;
value uniform 0.1;
}
ceiling
{
type compressible::kqRWallFunction;
type kqRWallFunction;
value uniform 0.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;
@ -26,7 +26,7 @@ boundaryField
floor
{
type mutkWallFunction;
type nutkWallFunction;
Cmu 0.09;
kappa 0.41;
E 9.8;
@ -34,7 +34,7 @@ boundaryField
}
ceiling
{
type mutkWallFunction;
type nutkWallFunction;
Cmu 0.09;
kappa 0.41;
E 9.8;

View File

@ -1,23 +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;
object RASProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
RASModel kEpsilon;
turbulence on;
printCoeffs on;
// ************************************************************************* //

View File

@ -10,16 +10,18 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "constant";
object RASProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
RASModel kEpsilon;
RAS
{
RASModel kEpsilon;
turbulence on;
turbulence on;
printCoeffs on;
printCoeffs on;
}
// ************************************************************************* //

View File

@ -44,6 +44,6 @@ timePrecision 6;
runTimeModifiable true;
libs ("libthermalBaffleModels.so" "libcompressibleRASModels.so");
libs ("libthermalBaffleModels.so");
// ************************************************************************* //

View File

@ -33,18 +33,18 @@ divSchemes
div(phi,k) bounded Gauss limitedLinear 0.2;
div(phi,epsilon) bounded Gauss limitedLinear 0.2;
div(phi,omega) bounded Gauss limitedLinear 0.2;
div((muEff*dev2(T(grad(U))))) Gauss linear;
div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;
}
laplacianSchemes
{
default none;
laplacian(muEff,U) Gauss linear uncorrected;
laplacian((rho*nuEff),U) Gauss linear uncorrected;
laplacian(rhorAUf,p_rgh) Gauss linear uncorrected;
laplacian(alphaEff,h) Gauss linear uncorrected;
laplacian(DkEff,k) Gauss linear uncorrected;
laplacian(DepsilonEff,epsilon) Gauss linear uncorrected;
laplacian(DomegaEff,omega) Gauss linear uncorrected;
laplacian((rho*DkEff),k) Gauss linear uncorrected;
laplacian((rho*DepsilonEff),epsilon) Gauss linear uncorrected;
laplacian((rho*DomegaEff),omega) Gauss linear uncorrected;
}
interpolationSchemes

View File

@ -23,22 +23,22 @@ boundaryField
{
frontAndBack
{
type compressible::epsilonWallFunction;
type epsilonWallFunction;
value uniform 4e-06;
}
topAndBottom
{
type compressible::epsilonWallFunction;
type epsilonWallFunction;
value uniform 4e-06;
}
hot
{
type compressible::epsilonWallFunction;
type epsilonWallFunction;
value uniform 4e-06;
}
cold
{
type compressible::epsilonWallFunction;
type epsilonWallFunction;
value uniform 4e-06;
}
}

View File

@ -23,22 +23,22 @@ boundaryField
{
frontAndBack
{
type compressible::kqRWallFunction;
type kqRWallFunction;
value uniform 3.75e-04;
}
topAndBottom
{
type compressible::kqRWallFunction;
type kqRWallFunction;
value uniform 3.75e-04;
}
hot
{
type compressible::kqRWallFunction;
type kqRWallFunction;
value uniform 3.75e-04;
}
cold
{
type compressible::kqRWallFunction;
type kqRWallFunction;
value uniform 3.75e-04;
}
}

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
{
frontAndBack
{
type mutUWallFunction;
type nutUWallFunction;
value uniform 0;
}
topAndBottom
{
type mutUWallFunction;
type nutUWallFunction;
value uniform 0;
}
hot
{
type mutUWallFunction;
type nutUWallFunction;
value uniform 0;
}
cold
{
type mutUWallFunction;
type nutUWallFunction;
value uniform 0;
}
}

View File

@ -23,22 +23,22 @@ boundaryField
{
frontAndBack
{
type compressible::omegaWallFunction;
type omegaWallFunction;
value uniform 0.12;
}
topAndBottom
{
type compressible::omegaWallFunction;
type omegaWallFunction;
value uniform 0.12;
}
hot
{
type compressible::omegaWallFunction;
type omegaWallFunction;
value uniform 0.12;
}
cold
{
type compressible::omegaWallFunction;
type omegaWallFunction;
value uniform 0.12;
}
}

View File

@ -1,23 +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;
object RASProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
RASModel kOmegaSST;
turbulence on;
printCoeffs on;
// ************************************************************************* //

View File

@ -0,0 +1,27 @@
/*--------------------------------*- 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;
object RASProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
RAS
{
RASModel kOmegaSST;
turbulence on;
printCoeffs on;
}
// ************************************************************************* //

View File

@ -34,7 +34,7 @@ divSchemes
div(phi,k) bounded Gauss limitedLinear 0.2;
div(phi,epsilon) bounded Gauss limitedLinear 0.2;
div(phi,omega) bounded Gauss limitedLinear 0.2;
div((muEff*dev2(T(grad(U))))) Gauss linear;
div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;
}
laplacianSchemes

View File

@ -23,22 +23,22 @@ boundaryField
{
box
{
type compressible::epsilonWallFunction;
type epsilonWallFunction;
value uniform 0.01;
}
floor
{
type compressible::epsilonWallFunction;
type epsilonWallFunction;
value uniform 0.01;
}
ceiling
{
type compressible::epsilonWallFunction;
type epsilonWallFunction;
value uniform 0.01;
}
fixedWalls
{
type compressible::epsilonWallFunction;
type epsilonWallFunction;
value uniform 0.01;
}
}

View File

@ -23,22 +23,22 @@ boundaryField
{
box
{
type compressible::kqRWallFunction;
type kqRWallFunction;
value uniform 0.1;
}
floor
{
type compressible::kqRWallFunction;
type kqRWallFunction;
value uniform 0.1;
}
ceiling
{
type compressible::kqRWallFunction;
type kqRWallFunction;
value uniform 0.1;
}
fixedWalls
{
type compressible::kqRWallFunction;
type kqRWallFunction;
value uniform 0.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,22 +23,22 @@ boundaryField
{
box
{
type mutkWallFunction;
type nutkWallFunction;
value uniform 0;
}
floor
{
type mutkWallFunction;
type nutkWallFunction;
value uniform 0;
}
ceiling
{
type mutkWallFunction;
type nutkWallFunction;
value uniform 0;
}
fixedWalls
{
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,11 +15,14 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
RASModel kEpsilon;
RAS
{
RASModel kEpsilon;
turbulence on;
turbulence on;
printCoeffs on;
printCoeffs on;
}
// ************************************************************************* //

View File

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

View File

@ -23,7 +23,7 @@ boundaryField
{
box
{
type compressible::epsilonWallFunction;
type epsilonWallFunction;
Cmu 0.09;
kappa 0.41;
E 9.8;
@ -31,7 +31,7 @@ boundaryField
}
floor
{
type compressible::epsilonWallFunction;
type epsilonWallFunction;
Cmu 0.09;
kappa 0.41;
E 9.8;
@ -39,7 +39,7 @@ boundaryField
}
ceiling
{
type compressible::epsilonWallFunction;
type epsilonWallFunction;
Cmu 0.09;
kappa 0.41;
E 9.8;
@ -47,7 +47,7 @@ boundaryField
}
fixedWalls
{
type compressible::epsilonWallFunction;
type epsilonWallFunction;
Cmu 0.09;
kappa 0.41;
E 9.8;

View File

@ -23,22 +23,22 @@ boundaryField
{
box
{
type compressible::kqRWallFunction;
type kqRWallFunction;
value uniform 0.1;
}
floor
{
type compressible::kqRWallFunction;
type kqRWallFunction;
value uniform 0.1;
}
ceiling
{
type compressible::kqRWallFunction;
type kqRWallFunction;
value uniform 0.1;
}
fixedWalls
{
type compressible::kqRWallFunction;
type kqRWallFunction;
value uniform 0.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,7 +23,7 @@ boundaryField
{
box
{
type mutkWallFunction;
type nutkWallFunction;
Cmu 0.09;
kappa 0.41;
E 9.8;
@ -31,7 +31,7 @@ boundaryField
}
floor
{
type mutkWallFunction;
type nutkWallFunction;
Cmu 0.09;
kappa 0.41;
E 9.8;
@ -39,7 +39,7 @@ boundaryField
}
ceiling
{
type mutkWallFunction;
type nutkWallFunction;
Cmu 0.09;
kappa 0.41;
E 9.8;
@ -47,7 +47,7 @@ boundaryField
}
fixedWalls
{
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,11 +15,14 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
RASModel kEpsilon;
RAS
{
RASModel kEpsilon;
turbulence on;
turbulence on;
printCoeffs on;
printCoeffs on;
}
// ************************************************************************* //

View File

@ -34,7 +34,7 @@ divSchemes
div(phi,k) bounded Gauss upwind;
div(phi,epsilon) bounded Gauss upwind;
div(Ji,Ii_h) bounded Gauss linearUpwind grad(Ii_h);
div((muEff*dev2(T(grad(U))))) Gauss linear;
div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;
}
laplacianSchemes

View File

@ -34,32 +34,32 @@ boundaryField
}
minY
{
type compressible::epsilonWallFunction;
type epsilonWallFunction;
value uniform 0.01;
}
minZ
{
type compressible::epsilonWallFunction;
type epsilonWallFunction;
value uniform 0.01;
}
maxZ
{
type compressible::epsilonWallFunction;
type epsilonWallFunction;
value uniform 0.01;
}
bottomWater_to_rightSolid
{
type compressible::epsilonWallFunction;
type epsilonWallFunction;
value uniform 0.01;
}
bottomWater_to_leftSolid
{
type compressible::epsilonWallFunction;
type epsilonWallFunction;
value uniform 0.01;
}
bottomWater_to_heater
{
type compressible::epsilonWallFunction;
type epsilonWallFunction;
value uniform 0.01;
}
}

View File

@ -34,32 +34,32 @@ boundaryField
}
minY
{
type compressible::kqRWallFunction;
type kqRWallFunction;
value uniform 0.1;
}
minZ
{
type compressible::kqRWallFunction;
type kqRWallFunction;
value uniform 0.1;
}
maxZ
{
type compressible::kqRWallFunction;
type kqRWallFunction;
value uniform 0.1;
}
bottomWater_to_rightSolid
{
type compressible::kqRWallFunction;
type kqRWallFunction;
value uniform 0.1;
}
bottomWater_to_leftSolid
{
type compressible::kqRWallFunction;
type kqRWallFunction;
value uniform 0.1;
}
bottomWater_to_heater
{
type compressible::kqRWallFunction;
type kqRWallFunction;
value uniform 0.1;
}
}

View File

@ -12,7 +12,7 @@ runApplication splitMeshRegions -cellZones -overwrite
# remove fluid fields from solid regions (important for post-processing)
for i in heater leftSolid rightSolid
do
rm -f 0*/$i/{mut,alphat,epsilon,k,U,p_rgh}
rm -f 0*/$i/{nut,alphat,epsilon,k,U,p_rgh}
done

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;
object RASProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
RASModel laminar;
turbulence on;
printCoeffs on;
// ************************************************************************* //

View File

@ -97,7 +97,7 @@ dictionaryReplacement
".*"
{
type compressible::epsilonWallFunction;
type epsilonWallFunction;
value uniform 0.01;
}
}
@ -123,7 +123,7 @@ dictionaryReplacement
".*"
{
type compressible::kqRWallFunction;
type kqRWallFunction;
value uniform 0.1;
}
}

View File

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

View File

@ -15,12 +15,6 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
libs
(
"libcompressibleTurbulenceModel.so"
"libcompressibleRASModels.so"
);
application chtMultiRegionFoam;
startFrom latestTime;

View File

@ -83,7 +83,7 @@ dictionaryReplacement
{
".*"
{
type compressible::epsilonWallFunction;
type epsilonWallFunction;
value uniform 0.01;
}
@ -109,7 +109,7 @@ dictionaryReplacement
{
".*"
{
type compressible::kqRWallFunction;
type kqRWallFunction;
value uniform 0.1;
}

View File

@ -16,7 +16,7 @@ runApplication splitMeshRegions -cellZones -overwrite
# remove fluid fields from solid regions (important for post-processing)
for i in heater leftSolid rightSolid
do
rm -f 0*/$i/{mut,alphat,epsilon,k,U,p_rgh}
rm -f 0*/$i/{nut,alphat,epsilon,k,U,p_rgh}
done

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;
object RASProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
RASModel laminar;
turbulence on;
printCoeffs on;
// ************************************************************************* //

View File

@ -74,7 +74,7 @@ dictionaryReplacement
{
".*"
{
type compressible::epsilonWallFunction;
type epsilonWallFunction;
value uniform 0.01;
}
}
@ -88,7 +88,7 @@ dictionaryReplacement
{
".*"
{
type compressible::kqRWallFunction;
type kqRWallFunction;
value uniform 0.1;
}
}

View File

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

View File

@ -83,7 +83,7 @@ dictionaryReplacement
{
".*"
{
type compressible::epsilonWallFunction;
type epsilonWallFunction;
value uniform 0.01;
}
@ -109,7 +109,7 @@ dictionaryReplacement
{
".*"
{
type compressible::kqRWallFunction;
type kqRWallFunction;
value uniform 0.1;
}

View File

@ -0,0 +1,47 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.3.x |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
location "0/air";
object alphat;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [1 -1 -1 0 0 0 0];
internalField uniform 0;
boundaryField
{
walls
{
type compressible::alphatWallFunction;
value uniform 0;
}
inlet
{
type calculated;
value uniform 0;
}
outlet
{
type calculated;
value uniform 0;
}
blades
{
type compressible::alphatWallFunction;
value uniform 0;
}
}
// ************************************************************************* //

View File

@ -23,7 +23,7 @@ boundaryField
{
walls
{
type compressible::epsilonWallFunction;
type epsilonWallFunction;
value $internalField;
}
inlet
@ -37,7 +37,7 @@ boundaryField
}
blades
{
type compressible::epsilonWallFunction;
type epsilonWallFunction;
value $internalField;
}
}

View File

@ -23,7 +23,7 @@ boundaryField
{
walls
{
type compressible::kqRWallFunction;
type kqRWallFunction;
value $internalField;
}
inlet
@ -37,7 +37,7 @@ boundaryField
}
blades
{
type compressible::kqRWallFunction;
type kqRWallFunction;
value $internalField;
}
}

View File

@ -0,0 +1,47 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.3.x |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
location "0/air";
object nut;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -1 0 0 0 0];
internalField uniform 0;
boundaryField
{
walls
{
type nutkWallFunction;
value uniform 0;
}
inlet
{
type calculated;
value uniform 0;
}
outlet
{
type calculated;
value uniform 0;
}
blades
{
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

@ -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;
object RASProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
RASModel laminar;
turbulence off;
printCoeffs off;
// ************************************************************************* //

View File

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

View File

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

View File

@ -12,7 +12,7 @@ runApplication splitMeshRegions -cellZones -overwrite
# remove fluid fields from solid regions (important for post-processing)
for i in heater leftSolid rightSolid
do
rm -f 0*/$i/{rho,mut,alphat,epsilon,k,U,p_rgh,Qr,G,IDefault}
rm -f 0*/$i/{rho,nut,alphat,epsilon,k,U,p_rgh,Qr,G,IDefault}
done
for i in bottomAir topAir heater leftSolid rightSolid

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;
object RASProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
RASModel laminar;
turbulence on;
printCoeffs on;
// ************************************************************************* //

View File

@ -71,7 +71,7 @@ dictionaryReplacement
{
".*"
{
type compressible::epsilonWallFunction;
type epsilonWallFunction;
value uniform 0.01;
}
}
@ -84,7 +84,7 @@ dictionaryReplacement
{
".*"
{
type compressible::kqRWallFunction;
type kqRWallFunction;
value uniform 0.1;
}
}

View File

@ -37,7 +37,7 @@ divSchemes
div(phi,R) bounded Gauss upwind;
div(R) Gauss linear;
div(Ji,Ii_h) Gauss linearUpwind grad(U);
div((muEff*dev2(T(grad(U))))) Gauss linear;
div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;
}
laplacianSchemes

View File

@ -82,7 +82,7 @@ dictionaryReplacement
{
".*"
{
type compressible::epsilonWallFunction;
type epsilonWallFunction;
value uniform 0.01;
}
@ -107,7 +107,7 @@ dictionaryReplacement
{
".*"
{
type compressible::kqRWallFunction;
type kqRWallFunction;
value uniform 0.1;
}