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::LRR
29 Launder, Reece and Rodi Reynolds-stress turbulence model for
32 The default model coefficients correspond to the following:
43 Prt 1.0; // only for compressible
45 sigmaR 0.81967; // only for compressible
46 couplingFactor 0.0; // only for incompressible
54 \*---------------------------------------------------------------------------*/
56 #ifndef compressibleLRR_H
57 #define compressibleLRR_H
61 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
65 namespace compressible
70 /*---------------------------------------------------------------------------*\
72 \*---------------------------------------------------------------------------*/
82 dimensionedScalar Cmu_;
84 dimensionedScalar Clrr1_;
85 dimensionedScalar Clrr2_;
87 dimensionedScalar C1_;
88 dimensionedScalar C2_;
89 dimensionedScalar Cs_;
90 dimensionedScalar Ceps_;
92 dimensionedScalar couplingFactor_;
94 dimensionedScalar sigmaR_;
95 dimensionedScalar sigmaEps_;
96 dimensionedScalar Prt_;
101 volSymmTensorField R_;
103 volScalarField epsilon_;
105 volScalarField alphat_;
110 //- Runtime type information
115 //- Construct from components
118 const volScalarField& rho,
119 const volVectorField& U,
120 const surfaceScalarField& phi,
121 const basicThermo& thermophysicalModel
132 //- Return the effective diffusivity for R
133 tmp<volScalarField> DREff() const
135 return tmp<volScalarField>
137 new volScalarField("DREff", mut_/sigmaR_ + mu())
141 //- Return the effective diffusivity for epsilon
142 tmp<volScalarField> DepsilonEff() const
144 return tmp<volScalarField>
146 new volScalarField("DepsilonEff", mut_/sigmaEps_ + mu())
150 //- Return the turbulence viscosity
151 virtual tmp<volScalarField> mut() const
156 //- Return the effective turbulent thermal diffusivity
157 virtual tmp<volScalarField> alphaEff() const
159 return tmp<volScalarField>
161 new volScalarField("alphaEff", alphat_ + alpha())
165 //- Return the turbulence kinetic energy
166 virtual tmp<volScalarField> k() const
171 //- Return the turbulence kinetic energy dissipation rate
172 virtual tmp<volScalarField> epsilon() const
177 //- Return the Reynolds stress tensor
178 virtual tmp<volSymmTensorField> R() const
183 //- Return the effective stress tensor including the laminar stress
184 virtual tmp<volSymmTensorField> devRhoReff() const;
186 //- Return the source term for the momentum equation
187 virtual tmp<fvVectorMatrix> divDevRhoReff(volVectorField& U) const;
189 //- Solve the turbulence equations and correct the turbulence viscosity
190 virtual void correct();
192 //- Read RASProperties dictionary
197 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
199 } // End namespace RASModels
200 } // End namespace compressible
201 } // End namespace Foam
203 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
207 // ************************************************************************* //