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::incompressible::RASModels::LaunderGibsonRSTM
29 Launder-Gibson Reynolds stress turbulence model for incompressible flows.
31 The default model coefficients correspond to the following:
33 LaunderGibsonRSTMCoeffs
54 \*---------------------------------------------------------------------------*/
56 #ifndef LaunderGibsonRSTM_H
57 #define LaunderGibsonRSTM_H
60 #include "wallDistReflection.H"
62 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
66 namespace incompressible
71 /*---------------------------------------------------------------------------*\
72 Class LaunderGibsonRSTM Declaration
73 \*---------------------------------------------------------------------------*/
75 class LaunderGibsonRSTM
83 dimensionedScalar Cmu_;
84 dimensionedScalar kappa_;
86 dimensionedScalar Clg1_;
87 dimensionedScalar Clg2_;
89 dimensionedScalar C1_;
90 dimensionedScalar C2_;
91 dimensionedScalar Cs_;
92 dimensionedScalar Ceps_;
93 dimensionedScalar sigmaR_;
94 dimensionedScalar sigmaEps_;
96 dimensionedScalar C1Ref_;
97 dimensionedScalar C2Ref_;
99 dimensionedScalar couplingFactor_;
104 wallDistReflection yr_;
106 volSymmTensorField R_;
108 volScalarField epsilon_;
114 //- Runtime type information
115 TypeName("LaunderGibsonRSTM");
119 //- Construct from components
122 const volVectorField& U,
123 const surfaceScalarField& phi,
124 transportModel& transport
129 virtual ~LaunderGibsonRSTM()
135 //- Return the turbulence viscosity
136 virtual tmp<volScalarField> nut() const
141 //- Return the effective diffusivity for R
142 tmp<volScalarField> DREff() const
144 return tmp<volScalarField>
146 new volScalarField("DREff", nut_/sigmaR_ + nu())
150 //- Return the effective diffusivity for epsilon
151 tmp<volScalarField> DepsilonEff() const
153 return tmp<volScalarField>
155 new volScalarField("DepsilonEff", nut_/sigmaEps_ + nu())
159 //- Return the turbulence kinetic energy
160 virtual tmp<volScalarField> k() const
165 //- Return the turbulence kinetic energy dissipation rate
166 virtual tmp<volScalarField> epsilon() const
171 //- Return the Reynolds stress tensor
172 virtual tmp<volSymmTensorField> R() const
177 //- Return the effective stress tensor including the laminar stress
178 virtual tmp<volSymmTensorField> devReff() const;
180 //- Return the source term for the momentum equation
181 virtual tmp<fvVectorMatrix> divDevReff(volVectorField& U) const;
183 //- Solve the turbulence equations and correct the turbulence viscosity
184 virtual void correct();
186 //- Read RASProperties dictionary
191 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
193 } // End namespace RASModels
194 } // End namespace incompressible
195 } // End namespace Foam
197 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
201 // ************************************************************************* //