initial commit for version 1.6.x patch release
[OpenFOAM-1.6.x.git] / src / turbulenceModels / incompressible / RAS / LaunderGibsonRSTM / LaunderGibsonRSTM.H
bloba28e0cb6e4fc7ec2c912413354577c7de0b72a91
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright (C) 1991-2009 OpenCFD Ltd.
6      \\/     M anipulation  |
7 -------------------------------------------------------------------------------
8 License
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
19     for more details.
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
25 Class
26     Foam::incompressible::RASModels::LaunderGibsonRSTM
28 Description
29     Launder-Gibson Reynolds stress turbulence model for incompressible flows.
31     The default model coefficients correspond to the following:
32     @verbatim
33         LaunderGibsonRSTMCoeffs
34         {
35             Cmu         0.09;
36             kappa       0.41;
37             Clg1        1.8;
38             Clg2        0.6;
39             C1          1.44;
40             C2          1.92;
41             C1Ref       0.5;
42             C2Ref       0.3;
43             Cs          0.25;
44             Ceps        0.15;
45             sigmaEps    1.3;
46             sigmaR      0.81967;
47             couplingFactor  0.0;
48         }
49     @endverbatim
51 SourceFiles
52     LaunderGibsonRSTM.C
54 \*---------------------------------------------------------------------------*/
56 #ifndef LaunderGibsonRSTM_H
57 #define LaunderGibsonRSTM_H
59 #include "RASModel.H"
60 #include "wallDistReflection.H"
62 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
64 namespace Foam
66 namespace incompressible
68 namespace RASModels
71 /*---------------------------------------------------------------------------*\
72                            Class LaunderGibsonRSTM Declaration
73 \*---------------------------------------------------------------------------*/
75 class LaunderGibsonRSTM
77     public RASModel
79     // Private data
81         // Model coefficients
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_;
102         // Fields
104             wallDistReflection yr_;
106             volSymmTensorField R_;
107             volScalarField k_;
108             volScalarField epsilon_;
109             volScalarField nut_;
112 public:
114     //- Runtime type information
115     TypeName("LaunderGibsonRSTM");
117     // Constructors
119         //- Construct from components
120         LaunderGibsonRSTM
121         (
122             const volVectorField& U,
123             const surfaceScalarField& phi,
124             transportModel& transport
125         );
128     //- Destructor
129     virtual ~LaunderGibsonRSTM()
130     {}
133     // Member Functions
135         //- Return the turbulence viscosity
136         virtual tmp<volScalarField> nut() const
137         {
138             return nut_;
139         }
141         //- Return the effective diffusivity for R
142         tmp<volScalarField> DREff() const
143         {
144             return tmp<volScalarField>
145             (
146                 new volScalarField("DREff", nut_/sigmaR_ + nu())
147             );
148         }
150         //- Return the effective diffusivity for epsilon
151         tmp<volScalarField> DepsilonEff() const
152         {
153             return tmp<volScalarField>
154             (
155                 new volScalarField("DepsilonEff", nut_/sigmaEps_ + nu())
156             );
157         }
159         //- Return the turbulence kinetic energy
160         virtual tmp<volScalarField> k() const
161         {
162             return k_;
163         }
165         //- Return the turbulence kinetic energy dissipation rate
166         virtual tmp<volScalarField> epsilon() const
167         {
168             return epsilon_;
169         }
171         //- Return the Reynolds stress tensor
172         virtual tmp<volSymmTensorField> R() const
173         {
174             return R_;
175         }
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
187         virtual bool read();
191 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
193 } // End namespace RASModels
194 } // End namespace incompressible
195 } // End namespace Foam
197 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
199 #endif
201 // ************************************************************************* //