1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-2010 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
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::compressible::RASModels::LaunderSharmaKE
28 Launder and Sharma low-Reynolds k-epsilon turbulence model for
29 compressible and combusting flows.
31 The default model coefficients correspond to the following:
39 alphah 1.0; // only for compressible
40 alphahk 1.0; // only for compressible
47 LaunderSharmaKECorrect.C
49 \*---------------------------------------------------------------------------*/
51 #ifndef compressibleLaunderSharmaKE_H
52 #define compressibleLaunderSharmaKE_H
56 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
60 namespace compressible
65 /*---------------------------------------------------------------------------*\
66 Class LaunderSharmaKE Declaration
67 \*---------------------------------------------------------------------------*/
77 dimensionedScalar Cmu_;
78 dimensionedScalar C1_;
79 dimensionedScalar C2_;
80 dimensionedScalar C3_;
81 dimensionedScalar sigmak_;
82 dimensionedScalar sigmaEps_;
83 dimensionedScalar Prt_;
89 volScalarField epsilon_;
91 volScalarField alphat_;
94 // Private member functions
96 tmp<volScalarField> fMu() const;
97 tmp<volScalarField> f2() const;
102 //- Runtime type information
103 TypeName("LaunderSharmaKE");
107 //- Construct from components
110 const volScalarField& rho,
111 const volVectorField& U,
112 const surfaceScalarField& phi,
113 const basicThermo& thermophysicalModel
118 virtual ~LaunderSharmaKE()
124 //- Return the effective diffusivity for k
125 tmp<volScalarField> DkEff() const
127 return tmp<volScalarField>
129 new volScalarField("DkEff", mut_/sigmak_ + mu())
133 //- Return the effective diffusivity for epsilon
134 tmp<volScalarField> DepsilonEff() const
136 return tmp<volScalarField>
138 new volScalarField("DepsilonEff", mut_/sigmaEps_ + mu())
142 //- Return the turbulence viscosity
143 virtual tmp<volScalarField> mut() const
148 //- Return the effective turbulent thermal diffusivity
149 virtual tmp<volScalarField> alphaEff() const
151 return tmp<volScalarField>
153 new volScalarField("alphaEff", alphat_ + alpha())
157 //- Return the turbulence kinetic energy
158 virtual tmp<volScalarField> k() const
163 //- Return the turbulence kinetic energy dissipation rate
164 virtual tmp<volScalarField> epsilon() const
169 //- Return the Reynolds stress tensor
170 virtual tmp<volSymmTensorField> R() const;
172 //- Return the effective stress tensor including the laminar stress
173 virtual tmp<volSymmTensorField> devRhoReff() const;
175 //- Return the source term for the momentum equation
176 virtual tmp<fvVectorMatrix> divDevRhoReff(volVectorField& U) const;
178 //- Solve the turbulence equations and correct the turbulence viscosity
179 virtual void correct();
181 //- Read RASProperties dictionary
186 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
188 } // End namespace RASModels
189 } // End namespace compressible
190 } // End namespace Foam
192 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
196 // ************************************************************************* //