kOmegaSST.H 5.94 KB
Newer Older
1 2 3 4
/*---------------------------------------------------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     |
OpenFOAM bot's avatar
OpenFOAM bot committed
5
    \\  /    A nd           | www.openfoam.com
6
     \\/     M anipulation  |
OpenFOAM bot's avatar
OpenFOAM bot committed
7
-------------------------------------------------------------------------------
OpenFOAM bot's avatar
OpenFOAM bot committed
8
    Copyright (C) 2011-2016 OpenFOAM Foundation
9
    Copyright (C) 2019 OpenCFD Ltd.
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
-------------------------------------------------------------------------------
License
    This file is part of OpenFOAM.

    OpenFOAM is free software: you can redistribute it and/or modify it
    under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    for more details.

    You should have received a copy of the GNU General Public License
    along with OpenFOAM.  If not, see <http://www.gnu.org/licenses/>.

Class
    Foam::RASModels::kOmegaSST

Group
    grpRASTurbulence

Description
34 35
    Implementation of the k-omega-SST turbulence model for
    incompressible and compressible flows.
36

37 38
    Light wrapper around base class.

39 40
    Turbulence model described in:
    \verbatim
41 42 43
        Menter, F. R. & Esch, T. (2001).
        Elements of Industrial Heat Transfer Prediction.
        16th Brazilian Congress of Mechanical Engineering (COBEM).
44
    \endverbatim
45

46 47
    with updated coefficients from
    \verbatim
48 49 50 51
        Menter, F. R., Kuntz, M., and Langtry, R. (2003).
        Ten Years of Industrial Experience with the SST Turbulence Model.
        Turbulence, Heat and Mass Transfer 4, ed: K. Hanjalic, Y. Nagano,
        & M. Tummers, Begell House, Inc., 625 - 632.
52 53
    \endverbatim

54 55 56 57 58 59 60
    but with the consistent production terms from the 2001 paper as form in the
    2003 paper is a typo, see
    \verbatim
        http://turbmodels.larc.nasa.gov/sst.html
    \endverbatim

    and the addition of the optional F3 term for rough walls from
61
    \verbatim
62
        Hellsten, A. (1998).
63
        "Some Improvements in Menter’s k-omega-SST turbulence model"
64
        29th AIAA Fluid Dynamics Conference, AIAA-98-2554.
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82
    \endverbatim

    Note that this implementation is written in terms of alpha diffusion
    coefficients rather than the more traditional sigma (alpha = 1/sigma) so
    that the blending can be applied to all coefficuients in a consistent
    manner.  The paper suggests that sigma is blended but this would not be
    consistent with the blending of the k-epsilon and k-omega models.

    Also note that the error in the last term of equation (2) relating to
    sigma has been corrected.

    Wall-functions are applied in this implementation by using equations (14)
    to specify the near-wall omega as appropriate.

    The blending functions (15) and (16) are not currently used because of the
    uncertainty in their origin, range of applicability and that if y+ becomes
    sufficiently small blending u_tau in this manner clearly becomes nonsense.

83
    The default model coefficients are
84 85 86
    \verbatim
        kOmegaSSTCoeffs
        {
87
            alphaK1     0.85;
88 89
            alphaK2     1.0;
            alphaOmega1 0.5;
90
            alphaOmega2 0.856;
91 92 93
            beta1       0.075;
            beta2       0.0828;
            betaStar    0.09;
94 95
            gamma1      5/9;
            gamma2      0.44;
96 97 98 99 100 101 102 103 104 105
            a1          0.31;
            b1          1.0;
            c1          10.0;
            F3          no;
        }
    \endverbatim

SourceFiles
    kOmegaSST.C

106 107 108
SeeAlso
    kOmegaSSTBase.H

109 110 111 112 113
\*---------------------------------------------------------------------------*/

#ifndef kOmegaSST_H
#define kOmegaSST_H

114
#include "kOmegaSSTBase.H"
115 116 117 118 119 120 121 122 123 124 125
#include "RASModel.H"
#include "eddyViscosity.H"

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

namespace Foam
{
namespace RASModels
{

/*---------------------------------------------------------------------------*\
126
                          Class kOmegaSST Declaration
127 128 129 130 131
\*---------------------------------------------------------------------------*/

template<class BasicTurbulenceModel>
class kOmegaSST
:
132
    public kOmegaSSTBase<eddyViscosity<RASModel<BasicTurbulenceModel>>>
133 134 135
{
    // Private Member Functions

136 137 138 139 140
        //- No copy construct
        kOmegaSST(const kOmegaSST&) = delete;

        //- No copy assignment
        void operator=(const kOmegaSST&) = delete;
141 142 143 144


protected:

Andrew Heather's avatar
Andrew Heather committed
145
    // Protected Member Functions
146

147
        virtual void correctNut(const volScalarField& S2);
148 149
        virtual void correctNut();

150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178

public:

    typedef typename BasicTurbulenceModel::alphaField alphaField;
    typedef typename BasicTurbulenceModel::rhoField rhoField;
    typedef typename BasicTurbulenceModel::transportModel transportModel;


    //- Runtime type information
    TypeName("kOmegaSST");


    // Constructors

        //- Construct from components
        kOmegaSST
        (
            const alphaField& alpha,
            const rhoField& rho,
            const volVectorField& U,
            const surfaceScalarField& alphaRhoPhi,
            const surfaceScalarField& phi,
            const transportModel& transport,
            const word& propertiesName = turbulenceModel::propertiesName,
            const word& type = typeName
        );


    //- Destructor
179
    virtual ~kOmegaSST() = default;
180 181 182 183 184 185 186 187 188 189
};


// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

} // End namespace RASModels
} // End namespace Foam

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#ifdef NoRepository
190
    #include "kOmegaSST.C"
191 192 193 194 195 196
#endif

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#endif

// ************************************************************************* //