1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | foam-extend: Open Source CFD
4 \\ / O peration | Version: 3.2
5 \\ / A nd | Web: http://www.foam-extend.org
6 \\/ M anipulation | For copyright notice see file Copyright
7 -------------------------------------------------------------------------------
9 This file is part of foam-extend.
11 foam-extend 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 3 of the License, or (at your
14 option) any later version.
16 foam-extend is distributed in the hope that it will be useful, but
17 WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 General Public License for more details.
21 You should have received a copy of the GNU General Public License
22 along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
25 Foam::incompressible::RASModels::LaunderGibsonRSTM
28 Launder-Gibson Reynolds stress turbulence model for incompressible flows.
30 The default model coefficients correspond to the following:
32 LaunderGibsonRSTMCoeffs
53 \*---------------------------------------------------------------------------*/
55 #ifndef LaunderGibsonRSTM_H
56 #define LaunderGibsonRSTM_H
59 #include "wallDistReflection.H"
61 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
65 namespace incompressible
70 /*---------------------------------------------------------------------------*\
71 Class LaunderGibsonRSTM Declaration
72 \*---------------------------------------------------------------------------*/
74 class LaunderGibsonRSTM
82 dimensionedScalar Cmu_;
83 dimensionedScalar kappa_;
85 dimensionedScalar Clg1_;
86 dimensionedScalar Clg2_;
88 dimensionedScalar C1_;
89 dimensionedScalar C2_;
90 dimensionedScalar Cs_;
91 dimensionedScalar Ceps_;
92 dimensionedScalar sigmaR_;
93 dimensionedScalar sigmaEps_;
95 dimensionedScalar C1Ref_;
96 dimensionedScalar C2Ref_;
98 dimensionedScalar couplingFactor_;
103 wallDistReflection yr_;
105 volSymmTensorField R_;
107 volScalarField epsilon_;
113 //- Runtime type information
114 TypeName("LaunderGibsonRSTM");
118 //- Construct from components
121 const volVectorField& U,
122 const surfaceScalarField& phi,
123 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 // ************************************************************************* //