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::LaunderGibsonRSTM
29 Launder-Gibson Reynolds stress turbulence model for compressible flows.
31 The default model coefficients correspond to the following:
33 LaunderGibsonRSTMCoeffs
45 sigmah 1.0; // only for compressible
54 LaunderGibsonRSTMcorrect.C
56 \*---------------------------------------------------------------------------*/
58 #ifndef compressibleLaunderGibsonRSTM_H
59 #define compressibleLaunderGibsonRSTM_H
62 #include "wallDistReflection.H"
64 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
68 namespace compressible
73 /*---------------------------------------------------------------------------*\
74 Class LaunderGibsonRSTM Declaration
75 \*---------------------------------------------------------------------------*/
77 class LaunderGibsonRSTM
85 dimensionedScalar Cmu_;
86 dimensionedScalar kappa_;
88 dimensionedScalar Clg1_;
89 dimensionedScalar Clg2_;
91 dimensionedScalar C1_;
92 dimensionedScalar C2_;
93 dimensionedScalar Cs_;
94 dimensionedScalar Ceps_;
96 dimensionedScalar C1Ref_;
97 dimensionedScalar C2Ref_;
99 dimensionedScalar couplingFactor_;
101 dimensionedScalar sigmaR_;
102 dimensionedScalar sigmaEps_;
103 dimensionedScalar Prt_;
108 wallDistReflection y_;
110 volSymmTensorField R_;
112 volScalarField epsilon_;
114 volScalarField alphat_;
119 //- Runtime type information
120 TypeName("LaunderGibsonRSTM");
124 //- Construct from components
127 const volScalarField& rho,
128 const volVectorField& U,
129 const surfaceScalarField& phi,
130 const basicThermo& thermophysicalModel
135 virtual ~LaunderGibsonRSTM()
141 //- Return the effective diffusivity for R
142 tmp<volScalarField> DREff() const
144 return tmp<volScalarField>
146 new volScalarField("DREff", mut_/sigmaR_ + mu())
150 //- Return the effective diffusivity for epsilon
151 tmp<volScalarField> DepsilonEff() const
153 return tmp<volScalarField>
155 new volScalarField("DepsilonEff", mut_/sigmaEps_ + mu())
159 //- Return the turbulence viscosity
160 virtual tmp<volScalarField> mut() const
165 //- Return the effective turbulent thermal diffusivity
166 virtual tmp<volScalarField> alphaEff() const
168 return tmp<volScalarField>
170 new volScalarField("alphaEff", alphat_ + alpha())
174 //- Return the turbulence kinetic energy
175 virtual tmp<volScalarField> k() const
180 //- Return the turbulence kinetic energy dissipation rate
181 virtual tmp<volScalarField> epsilon() const
186 //- Return the Reynolds stress tensor
187 virtual tmp<volSymmTensorField> R() const
192 //- Return the effective stress tensor including the laminar stress
193 virtual tmp<volSymmTensorField> devRhoReff() const;
195 //- Return the source term for the momentum equation
196 virtual tmp<fvVectorMatrix> divDevRhoReff(volVectorField& U) const;
198 //- Solve the turbulence equations and correct the turbulence viscosity
199 virtual void correct();
201 //- Read RASProperties dictionary
206 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
208 } // End namespace RASModels
209 } // End namespace compressible
210 } // End namespace Foam
212 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
216 // ************************************************************************* //