Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Development
openfoam
Commits
4d295c84
Commit
4d295c84
authored
Jun 15, 2020
by
Kutalmis Bercin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DOC-STYLE: various release changes
parent
39c2f16e
Changes
56
Hide whitespace changes
Inline
Side-by-side
Showing
56 changed files
with
385 additions
and
474 deletions
+385
-474
src/TurbulenceModels/turbulenceModels/derivedFvPatchFields/wallFunctions/epsilonWallFunctions/epsilonWallFunction/epsilonWallFunctionFvPatchScalarField.C
...silonWallFunction/epsilonWallFunctionFvPatchScalarField.C
+1
-0
src/TurbulenceModels/turbulenceModels/derivedFvPatchFields/wallFunctions/epsilonWallFunctions/epsilonWallFunction/epsilonWallFunctionFvPatchScalarField.H
...silonWallFunction/epsilonWallFunctionFvPatchScalarField.H
+2
-4
src/TurbulenceModels/turbulenceModels/derivedFvPatchFields/wallFunctions/kqRWallFunctions/kLowReWallFunction/kLowReWallFunctionFvPatchScalarField.H
...kLowReWallFunction/kLowReWallFunctionFvPatchScalarField.H
+1
-1
src/TurbulenceModels/turbulenceModels/derivedFvPatchFields/wallFunctions/kqRWallFunctions/kqRWallFunction/kqRWallFunctionFvPatchField.H
...llFunctions/kqRWallFunction/kqRWallFunctionFvPatchField.H
+4
-2
src/TurbulenceModels/turbulenceModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutLowReWallFunction/nutLowReWallFunctionFvPatchScalarField.H
...owReWallFunction/nutLowReWallFunctionFvPatchScalarField.H
+2
-2
src/TurbulenceModels/turbulenceModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutUBlendedWallFunction/nutUBlendedWallFunctionFvPatchScalarField.H
...dWallFunction/nutUBlendedWallFunctionFvPatchScalarField.H
+14
-11
src/TurbulenceModels/turbulenceModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutURoughWallFunction/nutURoughWallFunctionFvPatchScalarField.H
...ughWallFunction/nutURoughWallFunctionFvPatchScalarField.H
+2
-5
src/TurbulenceModels/turbulenceModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutUSpaldingWallFunction/nutUSpaldingWallFunctionFvPatchScalarField.H
...WallFunction/nutUSpaldingWallFunctionFvPatchScalarField.H
+2
-5
src/TurbulenceModels/turbulenceModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutUTabulatedWallFunction/nutUTabulatedWallFunctionFvPatchScalarField.H
...allFunction/nutUTabulatedWallFunctionFvPatchScalarField.H
+4
-4
src/TurbulenceModels/turbulenceModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutUWallFunction/nutUWallFunctionFvPatchScalarField.H
...ons/nutUWallFunction/nutUWallFunctionFvPatchScalarField.H
+2
-2
src/TurbulenceModels/turbulenceModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutWallFunction/nutWallFunctionFvPatchScalarField.H
...tions/nutWallFunction/nutWallFunctionFvPatchScalarField.H
+5
-4
src/TurbulenceModels/turbulenceModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutkRoughWallFunction/nutkRoughWallFunctionFvPatchScalarField.H
...ughWallFunction/nutkRoughWallFunctionFvPatchScalarField.H
+5
-4
src/TurbulenceModels/turbulenceModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutkWallFunction/nutkWallFunctionFvPatchScalarField.H
...ons/nutkWallFunction/nutkWallFunctionFvPatchScalarField.H
+2
-2
src/TurbulenceModels/turbulenceModels/derivedFvPatchFields/wallFunctions/omegaWallFunctions/omegaWallFunction/omegaWallFunctionFvPatchScalarField.H
...s/omegaWallFunction/omegaWallFunctionFvPatchScalarField.H
+9
-12
src/atmosphericModels/derivedFvPatchFields/atmBoundaryLayer/atmBoundaryLayer.H
.../derivedFvPatchFields/atmBoundaryLayer/atmBoundaryLayer.H
+41
-15
src/atmosphericModels/derivedFvPatchFields/atmBoundaryLayerInletEpsilon/atmBoundaryLayerInletEpsilonFvPatchScalarField.H
...tEpsilon/atmBoundaryLayerInletEpsilonFvPatchScalarField.H
+21
-32
src/atmosphericModels/derivedFvPatchFields/atmBoundaryLayerInletK/atmBoundaryLayerInletKFvPatchScalarField.H
...aryLayerInletK/atmBoundaryLayerInletKFvPatchScalarField.H
+19
-28
src/atmosphericModels/derivedFvPatchFields/atmBoundaryLayerInletOmega/atmBoundaryLayerInletOmegaFvPatchScalarField.H
...InletOmega/atmBoundaryLayerInletOmegaFvPatchScalarField.H
+17
-28
src/atmosphericModels/derivedFvPatchFields/atmBoundaryLayerInletVelocity/atmBoundaryLayerInletVelocityFvPatchVectorField.H
...elocity/atmBoundaryLayerInletVelocityFvPatchVectorField.H
+19
-30
src/atmosphericModels/derivedFvPatchFields/atmTurbulentHeatFluxTemperature/atmTurbulentHeatFluxTemperatureFvPatchScalarField.H
...ature/atmTurbulentHeatFluxTemperatureFvPatchScalarField.H
+17
-15
src/atmosphericModels/derivedFvPatchFields/wallFunctions/atmAlphatkWallFunction/atmAlphatkWallFunctionFvPatchScalarField.C
...tkWallFunction/atmAlphatkWallFunctionFvPatchScalarField.C
+1
-0
src/atmosphericModels/derivedFvPatchFields/wallFunctions/atmAlphatkWallFunction/atmAlphatkWallFunctionFvPatchScalarField.H
...tkWallFunction/atmAlphatkWallFunctionFvPatchScalarField.H
+6
-6
src/atmosphericModels/derivedFvPatchFields/wallFunctions/atmEpsilonWallFunction/atmEpsilonWallFunctionFvPatchScalarField.H
...onWallFunction/atmEpsilonWallFunctionFvPatchScalarField.H
+9
-9
src/atmosphericModels/derivedFvPatchFields/wallFunctions/atmNutUWallFunction/atmNutUWallFunctionFvPatchScalarField.H
...mNutUWallFunction/atmNutUWallFunctionFvPatchScalarField.H
+4
-4
src/atmosphericModels/derivedFvPatchFields/wallFunctions/atmNutWallFunction/atmNutWallFunctionFvPatchScalarField.H
...atmNutWallFunction/atmNutWallFunctionFvPatchScalarField.H
+31
-28
src/atmosphericModels/derivedFvPatchFields/wallFunctions/atmNutkWallFunction/atmNutkWallFunctionFvPatchScalarField.H
...mNutkWallFunction/atmNutkWallFunctionFvPatchScalarField.H
+10
-3
src/atmosphericModels/derivedFvPatchFields/wallFunctions/atmOmegaWallFunction/atmOmegaWallFunctionFvPatchScalarField.H
...megaWallFunction/atmOmegaWallFunctionFvPatchScalarField.H
+9
-8
src/atmosphericModels/functionObjects/ObukhovLength/ObukhovLength.H
...hericModels/functionObjects/ObukhovLength/ObukhovLength.H
+10
-10
src/atmosphericModels/fvOptions/atmAmbientTurbSource/atmAmbientTurbSource.H
...els/fvOptions/atmAmbientTurbSource/atmAmbientTurbSource.H
+6
-6
src/atmosphericModels/fvOptions/atmBuoyancyTurbSource/atmBuoyancyTurbSource.C
...s/fvOptions/atmBuoyancyTurbSource/atmBuoyancyTurbSource.C
+1
-14
src/atmosphericModels/fvOptions/atmBuoyancyTurbSource/atmBuoyancyTurbSource.H
...s/fvOptions/atmBuoyancyTurbSource/atmBuoyancyTurbSource.H
+5
-10
src/atmosphericModels/fvOptions/atmCoriolisUSource/atmCoriolisUSource.H
...cModels/fvOptions/atmCoriolisUSource/atmCoriolisUSource.H
+12
-10
src/atmosphericModels/fvOptions/atmLengthScaleTurbSource/atmLengthScaleTurbSource.H
...tions/atmLengthScaleTurbSource/atmLengthScaleTurbSource.H
+1
-1
src/atmosphericModels/fvOptions/atmPlantCanopyTSource/atmPlantCanopyTSource.H
...s/fvOptions/atmPlantCanopyTSource/atmPlantCanopyTSource.H
+4
-4
src/atmosphericModels/fvOptions/atmPlantCanopyTurbSource/atmPlantCanopyTurbSource.H
...tions/atmPlantCanopyTurbSource/atmPlantCanopyTurbSource.H
+3
-3
src/atmosphericModels/fvOptions/atmPlantCanopyUSource/atmPlantCanopyUSource.H
...s/fvOptions/atmPlantCanopyUSource/atmPlantCanopyUSource.H
+1
-1
src/finiteVolume/fields/fvPatchFields/derived/turbulentDFSEMInlet/turbulentDFSEMInletFvPatchVectorField.C
...rbulentDFSEMInlet/turbulentDFSEMInletFvPatchVectorField.C
+0
-12
src/finiteVolume/fields/fvPatchFields/derived/turbulentDFSEMInlet/turbulentDFSEMInletFvPatchVectorFieldTemplates.C
...SEMInlet/turbulentDFSEMInletFvPatchVectorFieldTemplates.C
+1
-27
src/finiteVolume/fields/fvPatchFields/derived/turbulentDigitalFilterInlet/turbulentDigitalFilterInletFvPatchVectorField.C
...lterInlet/turbulentDigitalFilterInletFvPatchVectorField.C
+0
-13
src/finiteVolume/fields/fvPatchFields/derived/turbulentDigitalFilterInlet/turbulentDigitalFilterInletFvPatchVectorFieldTemplates.C
.../turbulentDigitalFilterInletFvPatchVectorFieldTemplates.C
+0
-26
src/fvOptions/sources/derived/actuationDiskSource/actuationDiskSource.C
...sources/derived/actuationDiskSource/actuationDiskSource.C
+18
-5
src/fvOptions/sources/derived/actuationDiskSource/actuationDiskSource.H
...sources/derived/actuationDiskSource/actuationDiskSource.H
+29
-27
src/fvOptions/sources/derived/actuationDiskSource/actuationDiskSourceTemplates.C
...erived/actuationDiskSource/actuationDiskSourceTemplates.C
+1
-0
tutorials/incompressible/pisoFoam/RAS/cavity/Allrun
tutorials/incompressible/pisoFoam/RAS/cavity/Allrun
+3
-0
tutorials/incompressible/pisoFoam/RAS/cavity/system/controlDict
...als/incompressible/pisoFoam/RAS/cavity/system/controlDict
+2
-0
tutorials/incompressible/pisoFoam/RAS/cavity/system/topoSetDict
...als/incompressible/pisoFoam/RAS/cavity/system/topoSetDict
+1
-0
tutorials/incompressible/simpleFoam/turbineSiting/constant/fvOptions
...ncompressible/simpleFoam/turbineSiting/constant/fvOptions
+2
-16
tutorials/verificationAndValidation/atmosphericModels/HargreavesWright_2007/0.orig/nut
...dation/atmosphericModels/HargreavesWright_2007/0.orig/nut
+1
-1
tutorials/verificationAndValidation/atmosphericModels/HargreavesWright_2007/plot
...ndValidation/atmosphericModels/HargreavesWright_2007/plot
+18
-18
tutorials/verificationAndValidation/atmosphericModels/atmFlatTerrain/precursor/Allrun
...idation/atmosphericModels/atmFlatTerrain/precursor/Allrun
+2
-1
tutorials/verificationAndValidation/atmosphericModels/atmFlatTerrain/precursor/constant/fvOptions.template
...dels/atmFlatTerrain/precursor/constant/fvOptions.template
+0
-1
tutorials/verificationAndValidation/atmosphericModels/atmFlatTerrain/successor/constant/fvOptions
...sphericModels/atmFlatTerrain/successor/constant/fvOptions
+0
-1
tutorials/verificationAndValidation/atmosphericModels/atmForestStability/constant/fvOptions.template
...ericModels/atmForestStability/constant/fvOptions.template
+0
-1
tutorials/verificationAndValidation/turbulentInflow/PCF/Allclean
...ls/verificationAndValidation/turbulentInflow/PCF/Allclean
+1
-0
tutorials/verificationAndValidation/turbulentInflow/PCF/Allrun.pre
.../verificationAndValidation/turbulentInflow/PCF/Allrun.pre
+3
-2
tutorials/verificationAndValidation/turbulentInflow/PCF/README
...ials/verificationAndValidation/turbulentInflow/PCF/README
+1
-0
No files found.
src/TurbulenceModels/turbulenceModels/derivedFvPatchFields/wallFunctions/epsilonWallFunctions/epsilonWallFunction/epsilonWallFunctionFvPatchScalarField.C
View file @
4d295c84
...
@@ -48,6 +48,7 @@ Foam::epsilonWallFunctionFvPatchScalarField::blendingTypeNames
...
@@ -48,6 +48,7 @@ Foam::epsilonWallFunctionFvPatchScalarField::blendingTypeNames
Foam
::
scalar
Foam
::
epsilonWallFunctionFvPatchScalarField
::
tolerance_
=
1e-5
;
Foam
::
scalar
Foam
::
epsilonWallFunctionFvPatchScalarField
::
tolerance_
=
1e-5
;
// * * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * //
// * * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * //
void
Foam
::
epsilonWallFunctionFvPatchScalarField
::
setMaster
()
void
Foam
::
epsilonWallFunctionFvPatchScalarField
::
setMaster
()
...
...
src/TurbulenceModels/turbulenceModels/derivedFvPatchFields/wallFunctions/epsilonWallFunctions/epsilonWallFunction/epsilonWallFunctionFvPatchScalarField.H
View file @
4d295c84
...
@@ -74,9 +74,9 @@ Usage
...
@@ -74,9 +74,9 @@ Usage
\table
\table
Property | Description | Type | Req'd | Dflt
Property | Description | Type | Req'd | Dflt
type | Type name: epsilonWallFunction | word | yes | -
type | Type name: epsilonWallFunction | word | yes | -
lowReCorrection | Flag
for
low-Re correction
| bool | no
| false
lowReCorrection | Flag
: apply
low-Re correction | bool | no | false
blending | Viscous/inertial sublayer blending method <!--
blending | Viscous/inertial sublayer blending method <!--
-->
| word | no | stepwise
-->
| word | no | stepwise
n | Binomial blending exponent | scalar | no | 2.0
n | Binomial blending exponent | scalar | no | 2.0
\endtable
\endtable
...
@@ -189,8 +189,6 @@ class epsilonWallFunctionFvPatchScalarField
...
@@ -189,8 +189,6 @@ class epsilonWallFunctionFvPatchScalarField
:
:
public
fixedValueFvPatchField
<
scalar
>
public
fixedValueFvPatchField
<
scalar
>
{
{
private:
// Private Enumerations
// Private Enumerations
//- Options for the blending treatment of viscous and inertial sublayers
//- Options for the blending treatment of viscous and inertial sublayers
...
...
src/TurbulenceModels/turbulenceModels/derivedFvPatchFields/wallFunctions/kqRWallFunctions/kLowReWallFunction/kLowReWallFunctionFvPatchScalarField.H
View file @
4d295c84
...
@@ -56,7 +56,7 @@ Usage
...
@@ -56,7 +56,7 @@ Usage
where the entries mean:
where the entries mean:
\table
\table
Property | Description | Type | Req'd | Dflt
Property | Description | Type | Req'd | Dflt
type | Type name: kLowReWallFunction | word | yes
| -
type | Type name: kLowReWallFunction | word
| yes | -
Ceps2 | Model coefficient | scalar | no | 1.9
Ceps2 | Model coefficient | scalar | no | 1.9
Ck | Model coefficient | scalar | no | -0.416
Ck | Model coefficient | scalar | no | -0.416
Bk | Model coefficient | scalar | no | 8.366
Bk | Model coefficient | scalar | no | 8.366
...
...
src/TurbulenceModels/turbulenceModels/derivedFvPatchFields/wallFunctions/kqRWallFunctions/kqRWallFunction/kqRWallFunctionFvPatchField.H
View file @
4d295c84
...
@@ -32,8 +32,10 @@ Group
...
@@ -32,8 +32,10 @@ Group
Description
Description
This boundary condition provides a simple wrapper around the zero-gradient
This boundary condition provides a simple wrapper around the zero-gradient
condition, which can be used for \c k, \c q, and \c R fields for
condition, which can be used for the turbulent kinetic energy, i.e. \c k,
the case of high Reynolds number flow using wall functions.
square-root of turbulent kinetic energy, i.e. \c q, and Reynolds stress
tensor fields, i.e. \c R, for the cases of high Reynolds number flow
using wall functions.
Usage
Usage
Example of the boundary condition specification:
Example of the boundary condition specification:
...
...
src/TurbulenceModels/turbulenceModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutLowReWallFunction/nutLowReWallFunctionFvPatchScalarField.H
View file @
4d295c84
...
@@ -31,8 +31,8 @@ Group
...
@@ -31,8 +31,8 @@ Group
grpWallFunctions
grpWallFunctions
Description
Description
This boundary condition provides a wall constraint on the
turbulent
This boundary condition provides a wall constraint on the
viscosity, i.e. \c nut for low Reynolds number models.
turbulent
viscosity, i.e. \c nut
,
for low Reynolds number models.
It sets \c nut to zero, and provides an access function to calculate \c y+.
It sets \c nut to zero, and provides an access function to calculate \c y+.
Usage
Usage
...
...
src/TurbulenceModels/turbulenceModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutUBlendedWallFunction/nutUBlendedWallFunctionFvPatchScalarField.H
View file @
4d295c84
...
@@ -31,8 +31,10 @@ Group
...
@@ -31,8 +31,10 @@ Group
Description
Description
This boundary condition provides a wall constraint on the turbulent
This boundary condition provides a wall constraint on the turbulent
viscosity, i.e. \c nut, when using wall functions based on
viscosity, i.e. \c nut, based on velocity, i.e. \c U, using a
a blending of viscous and inertial sublayer contributions.
binomial-function wall-function blending method between the viscous
and inertial sublayer predictions of \c nut for low- and high-Reynolds
number turbulence models.
\f[
\f[
u_\tau = (u_{\tau,v}^n + u_{\tau,l}^n)^{1/n}
u_\tau = (u_{\tau,v}^n + u_{\tau,l}^n)^{1/n}
...
@@ -46,12 +48,13 @@ Description
...
@@ -46,12 +48,13 @@ Description
\endvartable
\endvartable
Reference:
Reference:
See the section that describes 'automatic wall treatment'
\verbatim
\verbatim
Menter, F., Ferreira, J. C., Esch, T., Konno, B. (2003).
See the section that describes 'automatic wall treatment':
The SST Turbulence Model with Improved Wall Treatment
Menter, F., Ferreira, J. C., Esch, T., Konno, B. (2003).
for Heat Transfer Predictions in Gas Turbines.
The SST turbulence model with improved wall treatment
Proceedings of the International Gas Turbine Congress 2003 Tokyo
for heat transfer predictions in gas turbines.
In Proceedings of the International Gas Turbine Congress.
November, 2003. Tokyo, Japan. pp. 2-7.
\endverbatim
\endverbatim
Usage
Usage
...
@@ -62,7 +65,7 @@ Usage
...
@@ -62,7 +65,7 @@ Usage
// Mandatory entries (unmodifiable)
// Mandatory entries (unmodifiable)
type nutUBlendedWallFunction;
type nutUBlendedWallFunction;
// Optional entries
// Optional entries
(unmodifiable)
n 4.0;
n 4.0;
// Optional (inherited) entries
// Optional (inherited) entries
...
@@ -72,9 +75,9 @@ Usage
...
@@ -72,9 +75,9 @@ Usage
where the entries mean:
where the entries mean:
\table
\table
Property | Description | Type | Req'd | Dflt
Property | Description | Type
| Req'd | Dflt
type | Type name: nutUBlendedWallFunction | word | yes | -
type | Type name: nutUBlendedWallFunction | word
| yes | -
n | Blending factor | scalar | no | 4.0
n | Blending factor | scalar | no
| 4.0
\endtable
\endtable
The inherited entries are elaborated in:
The inherited entries are elaborated in:
...
...
src/TurbulenceModels/turbulenceModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutURoughWallFunction/nutURoughWallFunctionFvPatchScalarField.H
View file @
4d295c84
...
@@ -32,8 +32,8 @@ Group
...
@@ -32,8 +32,8 @@ Group
Description
Description
This boundary condition provides a wall constraint on the turbulent
This boundary condition provides a wall constraint on the turbulent
viscosity, i.e. \c nut,
when using wall functions for rough walls,
viscosity, i.e. \c nut,
based on velocity i.e. \c U, for low- and
based on velocity, \c U
.
high-Reynolds number turbulence models for rough walls
.
Usage
Usage
Example of the boundary condition specification:
Example of the boundary condition specification:
...
@@ -74,9 +74,6 @@ Note
...
@@ -74,9 +74,6 @@ Note
\c turbulence->validate) returns a slightly different value every time
\c turbulence->validate) returns a slightly different value every time
it is called.
it is called.
See \link nutUSpaldingWallFunctionFvPatchScalarField.C \endlink.
See \link nutUSpaldingWallFunctionFvPatchScalarField.C \endlink.
- Can be avoided by seeding the NR with e.g. the laminar viscosity
or tightening the convergence tolerance to e.g. 1e-7 and the max
number of iterations to 100.
SourceFiles
SourceFiles
nutURoughWallFunctionFvPatchScalarField.C
nutURoughWallFunctionFvPatchScalarField.C
...
...
src/TurbulenceModels/turbulenceModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutUSpaldingWallFunction/nutUSpaldingWallFunctionFvPatchScalarField.H
View file @
4d295c84
...
@@ -32,9 +32,8 @@ Group
...
@@ -32,9 +32,8 @@ Group
Description
Description
This boundary condition provides a wall constraint on the turbulent
This boundary condition provides a wall constraint on the turbulent
viscosity, i.e. \c nut, when using wall functions for rough walls,
viscosity, i.e. \c nut, based on velocity, i.e. \c U. Using Spalding's
based on velocity, \c U, using Spalding's law to give a continuous \c nut
law gives a continuous \c nut profile to the wall.
profile to the wall (y+ = 0)
\f[
\f[
y^+ = u^+ + \frac{1}{E} \left[exp(\kappa u^+) - 1 - \kappa u^+\,
y^+ = u^+ + \frac{1}{E} \left[exp(\kappa u^+) - 1 - \kappa u^+\,
...
@@ -81,13 +80,11 @@ Note
...
@@ -81,13 +80,11 @@ Note
\c turbulence->validate) returns a slightly different value every time
\c turbulence->validate) returns a slightly different value every time
it is called. This is since the seed for the Newton-Raphson iteration
it is called. This is since the seed for the Newton-Raphson iteration
uses the current value of \c *this (\c =nut ).
uses the current value of \c *this (\c =nut ).
- This can be avoided by overriding the tolerance. This also switches on
- This can be avoided by overriding the tolerance. This also switches on
a pre-detection whether the current nut already satisfies the turbulence
a pre-detection whether the current nut already satisfies the turbulence
conditions and if so does not change it at all. This means that the nut
conditions and if so does not change it at all. This means that the nut
only changes if it 'has really changed'. This probably should be used with
only changes if it 'has really changed'. This probably should be used with
a tight tolerance, to make sure to kick every iteration, e.g.
a tight tolerance, to make sure to kick every iteration, e.g.
maxIter 100;
maxIter 100;
tolerance 1e-7;
tolerance 1e-7;
...
...
src/TurbulenceModels/turbulenceModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutUTabulatedWallFunction/nutUTabulatedWallFunctionFvPatchScalarField.H
View file @
4d295c84
...
@@ -32,10 +32,10 @@ Group
...
@@ -32,10 +32,10 @@ Group
Description
Description
This boundary condition provides a wall constraint on the turbulent
This boundary condition provides a wall constraint on the turbulent
viscosity, i.e. \c nut,
when using wall functions, based on
viscosity, i.e. \c nut,
based on velocity, i.e. \c U, for low- and
velocity, i.e. \c U
.
high-Reynolds number turbulence models
.
As input, the user specifies a look-up table of \c
U
+ as a function of
As input, the user specifies a look-up table of \c
u
+ as a function of
near-wall Reynolds number.
near-wall Reynolds number.
The table should be located in the \c $FOAM_CASE/constant directory.
The table should be located in the \c $FOAM_CASE/constant directory.
...
@@ -58,7 +58,7 @@ Usage
...
@@ -58,7 +58,7 @@ Usage
\table
\table
Property | Description | Type | Req'd | Dflt
Property | Description | Type | Req'd | Dflt
type | Type name: nutUTabulatedWallFunction | word | yes | -
type | Type name: nutUTabulatedWallFunction | word | yes | -
uPlusTable |
U
+ as a function of Re table name | word | yes | -
uPlusTable |
u
+ as a function of Re table name | word | yes | -
\endtable
\endtable
The inherited entries are elaborated in:
The inherited entries are elaborated in:
...
...
src/TurbulenceModels/turbulenceModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutUWallFunction/nutUWallFunctionFvPatchScalarField.H
View file @
4d295c84
...
@@ -32,8 +32,8 @@ Group
...
@@ -32,8 +32,8 @@ Group
Description
Description
This boundary condition provides a wall constraint on the turbulent
This boundary condition provides a wall constraint on the turbulent
viscosity, i.e. \c nut,
when using wall functions, based on
viscosity, i.e. \c nut,
based on velocity, i.e. \c U, for low- and
velocity, \c U
.
high-Reynolds number turbulence models
.
Usage
Usage
Example of the boundary condition specification:
Example of the boundary condition specification:
...
...
src/TurbulenceModels/turbulenceModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutWallFunction/nutWallFunctionFvPatchScalarField.H
View file @
4d295c84
...
@@ -35,6 +35,8 @@ Description
...
@@ -35,6 +35,8 @@ Description
boundary conditions which provide a wall constraint on various fields, such
boundary conditions which provide a wall constraint on various fields, such
as turbulent viscosity, i.e. \c nut, or turbulent kinetic energy dissipation
as turbulent viscosity, i.e. \c nut, or turbulent kinetic energy dissipation
rate, i.e. \c epsilon, for low- and high-Reynolds number turbulence models.
rate, i.e. \c epsilon, for low- and high-Reynolds number turbulence models.
The class is not an executable itself, yet a provider for common entries
to its derived boundary conditions.
Reference:
Reference:
\verbatim
\verbatim
...
@@ -72,6 +74,7 @@ Usage
...
@@ -72,6 +74,7 @@ Usage
E 9.8;
E 9.8;
blending stepwise;
blending stepwise;
n 4.0;
n 4.0;
U U;
// Optional (inherited) entries
// Optional (inherited) entries
...
...
...
@@ -86,6 +89,7 @@ Usage
...
@@ -86,6 +89,7 @@ Usage
E | Wall roughness parameter | scalar | no | 9.8
E | Wall roughness parameter | scalar | no | 9.8
blending | Viscous/inertial sublayer blending | word | no | stepwise
blending | Viscous/inertial sublayer blending | word | no | stepwise
n | Binomial blending exponent | scalar | no | 2.0
n | Binomial blending exponent | scalar | no | 2.0
U | Name of the velocity field | word | no | U
\endtable
\endtable
The inherited entries are elaborated in:
The inherited entries are elaborated in:
...
@@ -151,11 +155,8 @@ Usage
...
@@ -151,11 +155,8 @@ Usage
\Gamma | \f$0.01 (y^+)^4 / (1.0 + 5.0 y^+)\f$
\Gamma | \f$0.01 (y^+)^4 / (1.0 + 5.0 y^+)\f$
\endvartable
\endvartable
Note
- \c nutWallFunction is not directly usable.
See also
See also
Foam::fixedValueFvPatchField
-
Foam::fixedValueFvPatchField
SourceFiles
SourceFiles
nutWallFunctionFvPatchScalarField.C
nutWallFunctionFvPatchScalarField.C
...
...
src/TurbulenceModels/turbulenceModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutkRoughWallFunction/nutkRoughWallFunctionFvPatchScalarField.H
View file @
4d295c84
...
@@ -32,9 +32,10 @@ Group
...
@@ -32,9 +32,10 @@ Group
Description
Description
This boundary condition provides a wall constraint on the turbulent
This boundary condition provides a wall constraint on the turbulent
kinematic viscosity, i.e. \c nut, when using wall functions for rough walls,
viscosity, i.e. \c nut, when using wall functions for rough walls,
based on the turbulent kinetic energy, \c k. The condition manipulates the
based on the turbulent kinetic energy, i.e. \c k. The condition
wall roughness parameter, i.e. \c E, to account for roughness effects.
manipulates the wall roughness parameter, i.e. \c E, to account
for roughness effects.
Parameter ranges:
Parameter ranges:
- roughness height = sand-grain roughness (0 for smooth walls)
- roughness height = sand-grain roughness (0 for smooth walls)
...
@@ -105,7 +106,7 @@ protected:
...
@@ -105,7 +106,7 @@ protected:
//- Compute the roughness function
//- Compute the roughness function
virtual
scalar
fnRough
(
const
scalar
KsPlus
,
const
scalar
Cs
)
const
;
virtual
scalar
fnRough
(
const
scalar
KsPlus
,
const
scalar
Cs
)
const
;
//- Calculate the turbulen
ce
viscosity
//- Calculate the turbulen
t
viscosity
virtual
tmp
<
scalarField
>
calcNut
()
const
;
virtual
tmp
<
scalarField
>
calcNut
()
const
;
...
...
src/TurbulenceModels/turbulenceModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutkWallFunction/nutkWallFunctionFvPatchScalarField.H
View file @
4d295c84
...
@@ -32,8 +32,8 @@ Group
...
@@ -32,8 +32,8 @@ Group
Description
Description
This boundary condition provides a wall constraint on the turbulent
This boundary condition provides a wall constraint on the turbulent
viscosity, i.e. \c nut,
when using wall functions
,
viscosity, i.e. \c nut,
based on the turbulent kinetic energy
,
based on the turbulent kinetic energy, \c k
.
i.e. \c k, for for low- and high-Reynolds number turbulence models
.
Usage
Usage
Example of the boundary condition specification:
Example of the boundary condition specification:
...
...
src/TurbulenceModels/turbulenceModels/derivedFvPatchFields/wallFunctions/omegaWallFunctions/omegaWallFunction/omegaWallFunctionFvPatchScalarField.H
View file @
4d295c84
...
@@ -78,13 +78,12 @@ Usage
...
@@ -78,13 +78,12 @@ Usage
\endverbatim
\endverbatim
\table
\table
Property | Description | Type | Req'd | Dflt
Property | Description | Type | Req'd | Dflt
type | Type name: omegaWallFunction | word | yes | -
type | Type name: omegaWallFunction | word | yes | -
blended | Blending switch (Deprecated) | bool | no | true
beta1 | Model coefficient | scalar | no | 0.075
beta1 | Model coefficient | scalar | no | 0.075
blending | Viscous/inertial sublayer blending method <!--
blending | Viscous/inertial sublayer blending method <!--
-->
| word | no | binomial2
-->
| word
| no
| binomial2
n | Binomial blending exponent | sclar | no | 2.0
n | Binomial blending exponent | sc
a
lar | no
| 2.0
\endtable
\endtable
The inherited entries are elaborated in:
The inherited entries are elaborated in:
...
@@ -185,10 +184,10 @@ Note
...
@@ -185,10 +184,10 @@ Note
the specified \c nutWallFunction in order to ensure that each patch
the specified \c nutWallFunction in order to ensure that each patch
possesses the same set of values for these coefficients.
possesses the same set of values for these coefficients.
- The reason why \c binomial2 and \c binomial blending methods exist at
- The reason why \c binomial2 and \c binomial blending methods exist at
the same time is to ensure the
elementwise backward compatibility with
the same time is to ensure the
bitwise regression with the previous
the previous
versions since \c binomial2 and \c binomial with n=2 will
versions since \c binomial2 and \c binomial with
\c
n=2 will
yield
yield
slightly different output due to the miniscule differences in the
slightly different output due to the miniscule differences in the
implementation of the basic functions (i.e. pow, sqrt, sqr).
implementation of the basic functions (i.e.
\c
pow,
\c
sqrt,
\c
sqr).
See also
See also
- Foam::epsilonWallFunctionFvPatchScalarField
- Foam::epsilonWallFunctionFvPatchScalarField
...
@@ -218,8 +217,6 @@ class omegaWallFunctionFvPatchScalarField
...
@@ -218,8 +217,6 @@ class omegaWallFunctionFvPatchScalarField
:
:
public
fixedValueFvPatchField
<
scalar
>
public
fixedValueFvPatchField
<
scalar
>
{
{
private:
// Private Enumerations
// Private Enumerations
//- Options for the blending treatment of viscous and inertial sublayers
//- Options for the blending treatment of viscous and inertial sublayers
...
...
src/atmosphericModels/derivedFvPatchFields/atmBoundaryLayer/atmBoundaryLayer.H
View file @
4d295c84
...
@@ -31,7 +31,7 @@ Group
...
@@ -31,7 +31,7 @@ Group
grpRASBoundaryConditions grpInletBoundaryConditions
grpRASBoundaryConditions grpInletBoundaryConditions
Description
Description
Base class to set log-law type ground-normal in
flow
boundary conditions for
Base class to set log-law type ground-normal in
let
boundary conditions for
wind velocity and turbulence quantities for homogeneous, two-dimensional,
wind velocity and turbulence quantities for homogeneous, two-dimensional,
dry-air, equilibrium and neutral atmospheric boundary layer (ABL) modelling.
dry-air, equilibrium and neutral atmospheric boundary layer (ABL) modelling.
...
@@ -85,15 +85,6 @@ Description
...
@@ -85,15 +85,6 @@ Description
C_2 | Curve-fitting coefficient for \c YGCJ profiles [-]
C_2 | Curve-fitting coefficient for \c YGCJ profiles [-]
\endvartable
\endvartable
Note
- The \c RH expressions are special cases of those in \c YGCJ when \c C1=0
and \c C2=1. Both \c C1 and \c C2 can be determined by nonlinear fitting
of (\c YGCJ:Eq. 19) with an experimental dataset for \c k. By default,
\c atmBoundaryLayerInlet boundary conditions compute \c RH expressions.
- \c z is the ground-normal height relative to the global minimum height
of the inlet patch; therefore, the minimum of \c z is always zero
irrespective of the absolute z-coordinate of the computational patch.
Reference:
Reference:
\verbatim
\verbatim
The ground-normal profile expressions (tag:RH):
The ground-normal profile expressions (tag:RH):
...
@@ -135,6 +126,35 @@ Note
...
@@ -135,6 +126,35 @@ Note
\endverbatim
\endverbatim
Usage
Usage
Example of the entries provided for the inherited boundary conditions:
\verbatim
inlet
{
// Mandatory and other optional entries
...
// Mandatory (inherited) entries (runtime modifiable)
flowDir (1 0 0);
zDir (0 0 1);
Uref 10.0;
Zref 0.0;
z0 uniform 0.1;
d uniform 0.0;
// Optional (inherited) entries (unmodifiable)
kappa 0.41;
Cmu 0.09;
initABL true;
phi phi;
C1 0.0;
C2 1.0;
// Conditional mandatory (inherited) entries (runtime modifiable)
value uniform 0; // when initABL=false
}
\endverbatim
where the entries mean:
\table
\table
Property | Description | Type | Req'd | Deflt
Property | Description | Type | Req'd | Deflt
flowDir | Flow direction | TimeFunction1<vector> | yes | -
flowDir | Flow direction | TimeFunction1<vector> | yes | -
...
@@ -160,6 +180,13 @@ Usage
...
@@ -160,6 +180,13 @@ Usage
\endtable
\endtable
Note
Note
- The \c RH expressions are special cases of those in \c YGCJ when \c C1=0
and \c C2=1. Both \c C1 and \c C2 can be determined by nonlinear fitting
of (\c YGCJ:Eqs. 19-20) with an experimental dataset for \c k. By default,