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::compressible::RASModels::LaunderSharmaKE
29 Launder and Sharma low-Reynolds k-epsilon turbulence model for
30 compressible and combusting flows.
32 The default model coefficients correspond to the following:
40 alphah 1.0; // only for compressible
41 alphahk 1.0; // only for compressible
48 LaunderSharmaKECorrect.C
50 \*---------------------------------------------------------------------------*/
52 #ifndef compressibleLaunderSharmaKE_H
53 #define compressibleLaunderSharmaKE_H
57 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
61 namespace compressible
66 /*---------------------------------------------------------------------------*\
67 Class LaunderSharmaKE Declaration
68 \*---------------------------------------------------------------------------*/
78 dimensionedScalar Cmu_;
79 dimensionedScalar C1_;
80 dimensionedScalar C2_;
81 dimensionedScalar C3_;
82 dimensionedScalar sigmak_;
83 dimensionedScalar sigmaEps_;
84 dimensionedScalar Prt_;
90 volScalarField epsilon_;
92 volScalarField alphat_;
95 // Private member functions
97 tmp<volScalarField> fMu() const;
98 tmp<volScalarField> f2() const;
103 //- Runtime type information
104 TypeName("LaunderSharmaKE");
108 //- Construct from components
111 const volScalarField& rho,
112 const volVectorField& U,
113 const surfaceScalarField& phi,
114 const basicThermo& thermophysicalModel
119 virtual ~LaunderSharmaKE()
125 //- Return the effective diffusivity for k
126 tmp<volScalarField> DkEff() const
128 return tmp<volScalarField>
130 new volScalarField("DkEff", mut_/sigmak_ + mu())
134 //- Return the effective diffusivity for epsilon
135 tmp<volScalarField> DepsilonEff() const
137 return tmp<volScalarField>
139 new volScalarField("DepsilonEff", mut_/sigmaEps_ + mu())
143 //- Return the turbulence viscosity
144 virtual tmp<volScalarField> mut() const
149 //- Return the effective turbulent thermal diffusivity
150 virtual tmp<volScalarField> alphaEff() const
152 return tmp<volScalarField>
154 new volScalarField("alphaEff", alphat_ + alpha())
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> devRhoReff() const;
176 //- Return the source term for the momentum equation
177 virtual tmp<fvVectorMatrix> divDevRhoReff(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 compressible
191 } // End namespace Foam
193 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
197 // ************************************************************************* //