TUT: atmFlatTerrain: add an example for kL RANS model

BUG: atmFlatTerrain: fix input settings in the plot script
This commit is contained in:
Kutalmis Bercin 2021-10-29 09:20:22 +01:00 committed by Andrew Heather
parent 76dcc4f28f
commit f05dc09692
29 changed files with 223 additions and 2 deletions

View File

@ -10,6 +10,7 @@ cd "${0%/*}" || exit # Run from this directory
setups="
kEpsilon
kOmegaSST
kL
"
# flag to enable computations in parallel mode

View File

@ -7,8 +7,9 @@ cd "${0%/*}" || exit # Run from this directory
# operand setups
setups="
kEpsilon-neutral-stability
kOmegaSST-neutral-stability
kEpsilon
kOmegaSST
kL
"

View File

@ -0,0 +1 @@
../../common/0.orig/leafAreaDensity

View File

@ -0,0 +1,36 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2106 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object qPlant;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -3 0 0 0 0];
internalField uniform 0;
boundaryField
{
"(bottom|top)"
{
type fixedValue;
value uniform 0;
}
"(inlet|outlet|left|right)"
{
type cyclic;
}
}
// ************************************************************************* //

View File

@ -0,0 +1,57 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2106 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object fvOptions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
pressureGradient
{
type vectorSemiImplicitSource;
volumeMode specific;
selectionMode all;
injectionRateSuSp
{
U ( ( 0 0.00197805 0 ) 0 );
}
}
atmCoriolisUSource1
{
type atmCoriolisUSource;
atmCoriolisUSourceCoeffs
{
selectionMode all;
Omega ( 0 0 5.65156e-05 );
}
}
atmPlantCanopyUSource1
{
type atmPlantCanopyUSource;
atmPlantCanopyUSourceCoeffs
{
selectionMode all;
}
}
atmPlantCanopyTSource1
{
type atmPlantCanopyTSource;
atmPlantCanopyTSourceCoeffs
{
selectionMode all;
}
}
// ************************************************************************* //

View File

@ -0,0 +1 @@
../../common/constant/transportProperties

View File

@ -0,0 +1,36 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2106 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object turbulenceProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
simulationType RAS;
RAS
{
RASModel kL;
turbulence on;
printCoeffs on;
kLCoeffs
{
CbStable 0.25;
CbUnstable 0.35;
Lmax 41.0;
}
}
// ************************************************************************* //

View File

@ -10,6 +10,7 @@ cd "${0%/*}" || exit # Run from this directory
setups="
kEpsilon
kOmegaSST
kL
"
# flag to enable computations in parallel mode

View File

@ -0,0 +1 @@
../../common/constant/boundaryData

View File

@ -0,0 +1,39 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2106 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object fvOptions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
pressureGradient
{
type vectorSemiImplicitSource;
selectionMode all;
volumeMode specific;
injectionRateSuSp
{
U ((0 1.978046e-03 0) 0);
}
}
atmCoriolisUSource1
{
type atmCoriolisUSource;
atmCoriolisUSourceCoeffs
{
selectionMode all;
Omega (0 0 5.65156e-5);
}
}
// ************************************************************************* //

View File

@ -0,0 +1 @@
../../common/constant/transportProperties

View File

@ -0,0 +1,29 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2106 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object turbulenceProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
simulationType RAS;
RAS
{
RASModel kL;
turbulence on;
printCoeffs on;
}
// ************************************************************************* //