1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
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::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
85 dimensionedScalar Cmu_;
86 dimensionedScalar kappa_;
88 dimensionedScalar Clg1_;
89 dimensionedScalar Clg2_;
91 dimensionedScalar C1_;
92 dimensionedScalar C2_;
93 dimensionedScalar Cs_;
94 dimensionedScalar Ceps_;
95 dimensionedScalar sigmaR_;
96 dimensionedScalar sigmaEps_;
98 dimensionedScalar C1Ref_;
99 dimensionedScalar C2Ref_;
101 dimensionedScalar couplingFactor_;
106 wallDistReflection yr_;
108 volSymmTensorField R_;
110 volScalarField epsilon_;
116 //- Runtime type information
117 TypeName("LaunderGibsonRSTM");
121 //- Construct from components
124 const volVectorField& U,
125 const surfaceScalarField& phi,
126 transportModel& transport,
127 const word& turbulenceModelName = turbulenceModel::typeName,
128 const word& modelName = typeName
133 virtual ~LaunderGibsonRSTM()
139 //- Return the turbulence viscosity
140 virtual tmp<volScalarField> nut() const
145 //- Return the effective diffusivity for R
146 tmp<volScalarField> DREff() const
148 return tmp<volScalarField>
150 new volScalarField("DREff", nut_/sigmaR_ + nu())
154 //- Return the effective diffusivity for epsilon
155 tmp<volScalarField> DepsilonEff() const
157 return tmp<volScalarField>
159 new volScalarField("DepsilonEff", nut_/sigmaEps_ + nu())
163 //- Return the turbulence kinetic energy
164 virtual tmp<volScalarField> k() const
169 //- Return the turbulence kinetic energy dissipation rate
170 virtual tmp<volScalarField> epsilon() const
175 //- Return the Reynolds stress tensor
176 virtual tmp<volSymmTensorField> R() const
181 //- Return the effective stress tensor including the laminar stress
182 virtual tmp<volSymmTensorField> devReff() const;
184 //- Return the source term for the momentum equation
185 virtual tmp<fvVectorMatrix> divDevReff(volVectorField& U) const;
187 //- Solve the turbulence equations and correct the turbulence viscosity
188 virtual void correct();
190 //- Read RASProperties dictionary
195 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
197 } // End namespace RASModels
198 } // End namespace incompressible
199 } // End namespace Foam
201 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
205 // ************************************************************************* //