1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
11 OpenFOAM is free software: you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by
13 the Free Software Foundation, either version 3 of the License, or
14 (at your option) any later version.
16 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 You should have received a copy of the GNU General Public License
22 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25 Foam::incompressible::RASModels::realizableKE
28 Realizable k-epsilon turbulence model for incompressible flows.
30 Model described in the paper:
32 "A New k-epsilon Eddy Viscosity Model for High Reynolds Number
35 Tsan-Hsing Shih, William W. Liou, Aamir Shabbir, Zhigang Tang and
38 Computers and Fluids Vol. 24, No. 3, pp. 227-238, 1995
41 The default model coefficients correspond to the following:
56 \*---------------------------------------------------------------------------*/
58 #ifndef realizableKE_H
59 #define realizableKE_H
63 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
67 namespace incompressible
72 /*---------------------------------------------------------------------------*\
73 Class realizableKE Declaration
74 \*---------------------------------------------------------------------------*/
87 dimensionedScalar Cmu_;
88 dimensionedScalar A0_;
89 dimensionedScalar C2_;
90 dimensionedScalar sigmak_;
91 dimensionedScalar sigmaEps_;
97 volScalarField epsilon_;
101 // Protected Member Functions
103 tmp<volScalarField> rCmu
105 const volTensorField& gradU,
106 const volScalarField& S2,
107 const volScalarField& magS
110 tmp<volScalarField> rCmu(const volTensorField& gradU);
115 //- Runtime type information
116 TypeName("realizableKE");
120 //- Construct from components
123 const volVectorField& U,
124 const surfaceScalarField& phi,
125 transportModel& transport,
126 const word& turbulenceModelName = turbulenceModel::typeName,
127 const word& modelName = typeName
132 virtual ~realizableKE()
138 //- Return the turbulence viscosity
139 virtual tmp<volScalarField> nut() const
144 //- Return the effective diffusivity for k
145 tmp<volScalarField> DkEff() const
147 return tmp<volScalarField>
149 new volScalarField("DkEff", nut_/sigmak_ + nu())
153 //- Return the effective diffusivity for epsilon
154 tmp<volScalarField> DepsilonEff() const
156 return tmp<volScalarField>
158 new volScalarField("DepsilonEff", nut_/sigmaEps_ + nu())
162 //- Return the turbulence kinetic energy
163 virtual tmp<volScalarField> k() const
168 //- Return the turbulence kinetic energy dissipation rate
169 virtual tmp<volScalarField> epsilon() const
174 //- Return the Reynolds stress tensor
175 virtual tmp<volSymmTensorField> R() const;
177 //- Return the effective stress tensor including the laminar stress
178 virtual tmp<volSymmTensorField> devReff() const;
180 //- Return the source term for the momentum equation
181 virtual tmp<fvVectorMatrix> divDevReff(volVectorField& U) const;
183 //- Solve the turbulence equations and correct the turbulence viscosity
184 virtual void correct();
186 //- Read RASProperties dictionary
191 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
193 } // End namespace RASModels
194 } // End namespace incompressible
195 } // End namespace Foam
197 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
201 // ************************************************************************* //