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::LRR
28 Launder, Reece and Rodi Reynolds-stress turbulence model for
31 The default model coefficients correspond to the following:
42 Prt 1.0; // only for compressible
44 sigmaR 0.81967; // only for compressible
45 couplingFactor 0.0; // only for incompressible
53 \*---------------------------------------------------------------------------*/
55 #ifndef compressibleLRR_H
56 #define compressibleLRR_H
60 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
64 namespace compressible
69 /*---------------------------------------------------------------------------*\
71 \*---------------------------------------------------------------------------*/
81 dimensionedScalar Cmu_;
83 dimensionedScalar Clrr1_;
84 dimensionedScalar Clrr2_;
86 dimensionedScalar C1_;
87 dimensionedScalar C2_;
88 dimensionedScalar Cs_;
89 dimensionedScalar Ceps_;
91 dimensionedScalar couplingFactor_;
93 dimensionedScalar sigmaR_;
94 dimensionedScalar sigmaEps_;
95 dimensionedScalar Prt_;
100 volSymmTensorField R_;
102 volScalarField epsilon_;
104 volScalarField alphat_;
109 //- Runtime type information
114 //- Construct from components
117 const volScalarField& rho,
118 const volVectorField& U,
119 const surfaceScalarField& phi,
120 const basicThermo& thermophysicalModel
131 //- Return the effective diffusivity for R
132 tmp<volScalarField> DREff() const
134 return tmp<volScalarField>
136 new volScalarField("DREff", mut_/sigmaR_ + mu())
140 //- Return the effective diffusivity for epsilon
141 tmp<volScalarField> DepsilonEff() const
143 return tmp<volScalarField>
145 new volScalarField("DepsilonEff", mut_/sigmaEps_ + mu())
149 //- Return the turbulence viscosity
150 virtual tmp<volScalarField> mut() const
155 //- Return the effective turbulent thermal diffusivity
156 virtual tmp<volScalarField> alphaEff() const
158 return tmp<volScalarField>
160 new volScalarField("alphaEff", alphat_ + alpha())
164 //- Return the turbulence kinetic energy
165 virtual tmp<volScalarField> k() const
170 //- Return the turbulence kinetic energy dissipation rate
171 virtual tmp<volScalarField> epsilon() const
176 //- Return the Reynolds stress tensor
177 virtual tmp<volSymmTensorField> R() const
182 //- Return the effective stress tensor including the laminar stress
183 virtual tmp<volSymmTensorField> devRhoReff() const;
185 //- Return the source term for the momentum equation
186 virtual tmp<fvVectorMatrix> divDevRhoReff(volVectorField& U) const;
188 //- Solve the turbulence equations and correct the turbulence viscosity
189 virtual void correct();
191 //- Read RASProperties dictionary
196 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
198 } // End namespace RASModels
199 } // End namespace compressible
200 } // End namespace Foam
202 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
206 // ************************************************************************* //