1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-2008 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:
51 alphah 1.0; // only for compressible
58 \*---------------------------------------------------------------------------*/
60 #ifndef realizableKE_H
61 #define realizableKE_H
65 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
69 namespace incompressible
74 /*---------------------------------------------------------------------------*\
75 Class realizableKE Declaration
76 \*---------------------------------------------------------------------------*/
84 dimensionedScalar Cmu_;
85 dimensionedScalar A0_;
86 dimensionedScalar C2_;
87 dimensionedScalar alphak_;
88 dimensionedScalar alphaEps_;
91 volScalarField epsilon_;
94 tmp<volScalarField> rCmu
96 const volTensorField& gradU,
97 const volScalarField& S2,
98 const volScalarField& magS
101 tmp<volScalarField> rCmu
103 const volTensorField& gradU
108 //- Runtime type information
109 TypeName("realizableKE");
116 const volVectorField& U,
117 const surfaceScalarField& phi,
118 transportModel& transport
130 //- Return the turbulence viscosity
131 tmp<volScalarField> nut() const
136 //- Return the effective diffusivity for k
137 tmp<volScalarField> DkEff() const
139 return tmp<volScalarField>
141 new volScalarField("DkEff", alphak_*nut_ + nu())
145 //- Return the effective diffusivity for epsilon
146 tmp<volScalarField> DepsilonEff() const
148 return tmp<volScalarField>
150 new volScalarField("DepsilonEff", alphaEps_*nut_ + nu())
154 //- Return the turbulence kinetic energy
155 tmp<volScalarField> k() const
160 //- Return the turbulence kinetic energy dissipation rate
161 tmp<volScalarField> epsilon() const
166 //- Return the Reynolds stress tensor
167 tmp<volSymmTensorField> R() const;
169 //- Return the effective stress tensor including the laminar stress
170 tmp<volSymmTensorField> devReff() const;
172 //- Return the source term for the momentum equation
173 tmp<fvVectorMatrix> divDevReff(volVectorField& U) const;
175 //- Solve the turbulence equations and correct the turbulence viscosity
178 //- Read turbulenceProperties dictionary
183 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
185 } // End namespace RASModels
186 } // End namespace incompressible
187 } // End namespace Foam
189 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
193 // ************************************************************************* //