mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
driftFluxFoam: Change turbulence modelling to new templated framework
Added k-epsilon model with buoyancy correction
This commit is contained in:
@ -34,17 +34,25 @@ boundaryField
|
||||
|
||||
bottomWall
|
||||
{
|
||||
type zeroGradient;
|
||||
type epsilonWallFunction;
|
||||
value $internalField;
|
||||
Cmu 0.09;
|
||||
kappa 0.41;
|
||||
E 9.8;
|
||||
}
|
||||
|
||||
endWall
|
||||
{
|
||||
type zeroGradient;
|
||||
type epsilonWallFunction;
|
||||
value $internalField;
|
||||
Cmu 0.09;
|
||||
kappa 0.41;
|
||||
E 9.8;
|
||||
}
|
||||
|
||||
top
|
||||
{
|
||||
type zeroGradient;
|
||||
type slip;
|
||||
}
|
||||
|
||||
frontAndBack
|
||||
|
||||
@ -34,17 +34,19 @@ boundaryField
|
||||
|
||||
bottomWall
|
||||
{
|
||||
type zeroGradient;
|
||||
type kqRWallFunction;
|
||||
value $internalField;
|
||||
}
|
||||
|
||||
endWall
|
||||
{
|
||||
type zeroGradient;
|
||||
type kqRWallFunction;
|
||||
value $internalField;
|
||||
}
|
||||
|
||||
top
|
||||
{
|
||||
type zeroGradient;
|
||||
type slip;
|
||||
}
|
||||
|
||||
frontAndBack
|
||||
|
||||
66
tutorials/multiphase/driftFluxFoam/ras/dahl/0/nut
Normal file
66
tutorials/multiphase/driftFluxFoam/ras/dahl/0/nut
Normal file
@ -0,0 +1,66 @@
|
||||
/*--------------------------------*- 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";
|
||||
object nut;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dimensions [0 2 -1 0 0 0 0];
|
||||
|
||||
internalField uniform 0;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
inlet
|
||||
{
|
||||
type calculated;
|
||||
value $internalField;
|
||||
}
|
||||
|
||||
outlet
|
||||
{
|
||||
type calculated;
|
||||
value $internalField;
|
||||
}
|
||||
|
||||
bottomWall
|
||||
{
|
||||
type nutkWallFunction;
|
||||
Cmu 0.09;
|
||||
kappa 0.41;
|
||||
E 9.8;
|
||||
value uniform 0;
|
||||
}
|
||||
|
||||
endWall
|
||||
{
|
||||
type nutkWallFunction;
|
||||
Cmu 0.09;
|
||||
kappa 0.41;
|
||||
E 9.8;
|
||||
value uniform 0;
|
||||
}
|
||||
|
||||
top
|
||||
{
|
||||
type slip;
|
||||
}
|
||||
|
||||
frontAndBack
|
||||
{
|
||||
type empty;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -11,15 +11,23 @@ FoamFile
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "constant";
|
||||
object RASProperties;
|
||||
object turbulenceProperties;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
RASModel kEpsilon;
|
||||
simulationType RAS;
|
||||
|
||||
turbulence on;
|
||||
RAS
|
||||
{
|
||||
RASModel buoyantKEpsilon;
|
||||
|
||||
printCoeffs on;
|
||||
turbulence on;
|
||||
printCoeffs on;
|
||||
|
||||
buoyantKEpsilonCoeffs
|
||||
{
|
||||
Cg 0.85;
|
||||
}
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -36,7 +36,7 @@ divSchemes
|
||||
div(rhoPhi,k) Gauss limitedLinear 1;
|
||||
div(rhoPhi,epsilon) Gauss limitedLinear 1;
|
||||
|
||||
div((muEff*dev2(T(grad(U))))) Gauss linear;
|
||||
div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;
|
||||
}
|
||||
|
||||
laplacianSchemes
|
||||
|
||||
@ -10,35 +10,42 @@ FoamFile
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class volScalarField;
|
||||
location "0";
|
||||
object epsilon;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dimensions [0 2 -3 0 0 0 0];
|
||||
|
||||
internalField uniform 7e-3;
|
||||
internalField uniform 0.007;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
rotor
|
||||
{
|
||||
type zeroGradient;
|
||||
type epsilonWallFunction;
|
||||
value $internalField;
|
||||
Cmu 0.09;
|
||||
kappa 0.41;
|
||||
E 9.8;
|
||||
}
|
||||
|
||||
stator
|
||||
{
|
||||
type zeroGradient;
|
||||
type epsilonWallFunction;
|
||||
value $internalField;
|
||||
Cmu 0.09;
|
||||
kappa 0.41;
|
||||
E 9.8;
|
||||
}
|
||||
|
||||
front
|
||||
{
|
||||
type empty;
|
||||
}
|
||||
|
||||
back
|
||||
{
|
||||
type empty;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -10,6 +10,7 @@ FoamFile
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class volScalarField;
|
||||
location "0";
|
||||
object k;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
@ -22,23 +23,23 @@ boundaryField
|
||||
{
|
||||
rotor
|
||||
{
|
||||
type zeroGradient;
|
||||
type kqRWallFunction;
|
||||
value $internalField;
|
||||
}
|
||||
|
||||
stator
|
||||
{
|
||||
type zeroGradient;
|
||||
type kqRWallFunction;
|
||||
value $internalField;
|
||||
}
|
||||
|
||||
front
|
||||
{
|
||||
type empty;
|
||||
}
|
||||
|
||||
back
|
||||
{
|
||||
type empty;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
51
tutorials/multiphase/driftFluxFoam/ras/mixerVessel2D/0/nut
Normal file
51
tutorials/multiphase/driftFluxFoam/ras/mixerVessel2D/0/nut
Normal file
@ -0,0 +1,51 @@
|
||||
/*--------------------------------*- 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";
|
||||
object nut;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dimensions [0 2 -1 0 0 0 0];
|
||||
|
||||
internalField uniform 0;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
rotor
|
||||
{
|
||||
type nutkWallFunction;
|
||||
Cmu 0.09;
|
||||
kappa 0.41;
|
||||
E 9.8;
|
||||
value uniform 0;
|
||||
}
|
||||
stator
|
||||
{
|
||||
type nutkWallFunction;
|
||||
Cmu 0.09;
|
||||
kappa 0.41;
|
||||
E 9.8;
|
||||
value uniform 0;
|
||||
}
|
||||
front
|
||||
{
|
||||
type empty;
|
||||
}
|
||||
back
|
||||
{
|
||||
type empty;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -11,15 +11,18 @@ FoamFile
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "constant";
|
||||
object RASProperties;
|
||||
object turbulenceProperties;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
RASModel kEpsilon;
|
||||
simulationType RAS;
|
||||
|
||||
turbulence on;
|
||||
|
||||
printCoeffs on;
|
||||
RAS
|
||||
{
|
||||
RASModel kEpsilon;
|
||||
|
||||
turbulence on;
|
||||
printCoeffs on;
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -35,8 +35,10 @@ divSchemes
|
||||
"div\(phirb,alpha.*\)" Gauss linear;
|
||||
div(rhoPhi,k) Gauss limitedLinear 1;
|
||||
div(rhoPhi,epsilon) 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;
|
||||
}
|
||||
|
||||
laplacianSchemes
|
||||
|
||||
@ -22,7 +22,7 @@ boundaryField
|
||||
{
|
||||
SYMP3
|
||||
{
|
||||
type zeroGradient;
|
||||
type slip;
|
||||
}
|
||||
|
||||
INLE1
|
||||
|
||||
@ -22,7 +22,7 @@ boundaryField
|
||||
{
|
||||
SYMP3
|
||||
{
|
||||
type zeroGradient;
|
||||
type slip;
|
||||
}
|
||||
|
||||
INLE1
|
||||
@ -51,69 +51,10 @@ boundaryField
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
WALL6
|
||||
"WALL.*"
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
WALL8
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
WALL61
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
WALL62
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
WALL63
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
WALL64
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
WALL65
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
WALL66
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
WALL67
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
WALL68
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
WALL69
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
WALL7
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
WALL70
|
||||
{
|
||||
type zeroGradient;
|
||||
type epsilonWallFunction;
|
||||
value $internalField;
|
||||
}
|
||||
|
||||
OUTL15
|
||||
|
||||
@ -22,7 +22,7 @@ boundaryField
|
||||
{
|
||||
SYMP3
|
||||
{
|
||||
type zeroGradient;
|
||||
type slip;
|
||||
}
|
||||
|
||||
INLE1
|
||||
@ -51,69 +51,10 @@ boundaryField
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
WALL6
|
||||
"WALL.*"
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
WALL8
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
WALL61
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
WALL62
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
WALL63
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
WALL64
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
WALL65
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
WALL66
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
WALL67
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
WALL68
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
WALL69
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
WALL7
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
WALL70
|
||||
{
|
||||
type zeroGradient;
|
||||
type kqRWallFunction;
|
||||
value $internalField;
|
||||
}
|
||||
|
||||
OUTL15
|
||||
|
||||
49
tutorials/multiphase/driftFluxFoam/ras/tank3D/0/nut
Normal file
49
tutorials/multiphase/driftFluxFoam/ras/tank3D/0/nut
Normal file
@ -0,0 +1,49 @@
|
||||
/*--------------------------------*- 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";
|
||||
object nut;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dimensions [0 2 -1 0 0 0 0];
|
||||
|
||||
internalField uniform 0;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
SYMP3
|
||||
{
|
||||
type slip;
|
||||
}
|
||||
|
||||
INLE1
|
||||
{
|
||||
type calculated;
|
||||
value $internalField;
|
||||
}
|
||||
|
||||
"OUTL.*"
|
||||
{
|
||||
type calculated;
|
||||
value $internalField;
|
||||
}
|
||||
|
||||
"WALL.*"
|
||||
{
|
||||
type nutkWallFunction;
|
||||
value $internalField;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -11,15 +11,18 @@ FoamFile
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "constant";
|
||||
object RASProperties;
|
||||
object turbulenceProperties;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
RASModel kEpsilon;
|
||||
simulationType RAS;
|
||||
|
||||
turbulence on;
|
||||
|
||||
printCoeffs on;
|
||||
RAS
|
||||
{
|
||||
RASModel kEpsilon;
|
||||
|
||||
turbulence on;
|
||||
printCoeffs on;
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -36,7 +36,7 @@ divSchemes
|
||||
div(rhoPhi,k) Gauss limitedLinear 1;
|
||||
div(rhoPhi,epsilon) Gauss limitedLinear 1;
|
||||
|
||||
div((muEff*dev2(T(grad(U))))) Gauss linear;
|
||||
div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;
|
||||
}
|
||||
|
||||
laplacianSchemes
|
||||
|
||||
Reference in New Issue
Block a user