All wall functions now operate collaboratively, obtaining the Cmu, kappa and E coefficients and yPlusLam from the nutWallFunction base class. Now these optional inputs need only be specified in the nut boundary condition with the k, epsilon, omega, v2 and f wall functions obtaining these values from there. This is much simpler to specify and avoids inconsistencies in the operation of the wall functions for the different turbulence fields. The code has also been rationalised and simplified avoiding unnecessary code and duplication.
62 lines
1.3 KiB
C++
62 lines
1.3 KiB
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
========= |
|
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
\\ / O peration | Website: https://openfoam.org
|
|
\\ / A nd | Version: dev
|
|
\\/ 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;
|
|
}
|
|
|
|
plate
|
|
{
|
|
type nutkWallFunction;
|
|
value uniform 0;
|
|
}
|
|
|
|
above
|
|
{
|
|
type calculated;
|
|
value $internalField;
|
|
}
|
|
|
|
top
|
|
{
|
|
type calculated;
|
|
value $internalField;
|
|
}
|
|
|
|
frontAndBack
|
|
{
|
|
type empty;
|
|
}
|
|
}
|
|
|
|
|
|
// ************************************************************************* //
|