1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd.
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 the
13 Free Software Foundation; either version 2 of the License, or (at your
14 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, write to the Free Software Foundation,
23 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26 Foam::incompressible::RASModels::realizableKE
29 Realizable k-epsilon turbulence model for incompressible flows.
31 Model described in the paper:
33 "A New k-epsilon Eddy Viscosity Model for High Reynolds Number
36 Tsan-Hsing Shih, William W. Liou, Aamir Shabbir, Zhigang Tang and
39 Computers and Fluids Vol. 24, No. 3, pp. 227-238, 1995
42 The default model coefficients correspond to the following:
57 \*---------------------------------------------------------------------------*/
59 #ifndef realizableKE_H
60 #define realizableKE_H
64 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
68 namespace incompressible
73 /*---------------------------------------------------------------------------*\
74 Class realizableKE Declaration
75 \*---------------------------------------------------------------------------*/
85 dimensionedScalar Cmu_;
86 dimensionedScalar A0_;
87 dimensionedScalar C2_;
88 dimensionedScalar sigmak_;
89 dimensionedScalar sigmaEps_;
95 volScalarField epsilon_;
99 // Private member functions
101 tmp<volScalarField> rCmu
103 const volTensorField& gradU,
104 const volScalarField& S2,
105 const volScalarField& magS
108 tmp<volScalarField> rCmu(const volTensorField& gradU);
113 //- Runtime type information
114 TypeName("realizableKE");
118 //- Construct from components
121 const volVectorField& U,
122 const surfaceScalarField& phi,
123 transportModel& transport
128 virtual ~realizableKE()
134 //- Return the turbulence viscosity
135 virtual tmp<volScalarField> nut() const
140 //- Return the effective diffusivity for k
141 tmp<volScalarField> DkEff() const
143 return tmp<volScalarField>
145 new volScalarField("DkEff", nut_/sigmak_ + nu())
149 //- Return the effective diffusivity for epsilon
150 tmp<volScalarField> DepsilonEff() const
152 return tmp<volScalarField>
154 new volScalarField("DepsilonEff", nut_/sigmaEps_ + nu())
158 //- Return the turbulence kinetic energy
159 virtual tmp<volScalarField> k() const
164 //- Return the turbulence kinetic energy dissipation rate
165 virtual tmp<volScalarField> epsilon() const
170 //- Return the Reynolds stress tensor
171 virtual tmp<volSymmTensorField> R() const;
173 //- Return the effective stress tensor including the laminar stress
174 virtual tmp<volSymmTensorField> devReff() const;
176 //- Return the source term for the momentum equation
177 virtual tmp<fvVectorMatrix> divDevReff(volVectorField& U) const;
179 //- Solve the turbulence equations and correct the turbulence viscosity
180 virtual void correct();
182 //- Read RASProperties dictionary
187 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
189 } // End namespace RASModels
190 } // End namespace incompressible
191 } // End namespace Foam
193 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
197 // ************************************************************************* //