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::LamBremhorstKE
28 Lam and Bremhorst low-Reynolds number k-epsilon turbulence model
29 for incompressible flows
34 \*---------------------------------------------------------------------------*/
36 #ifndef LamBremhorstKE_H
37 #define LamBremhorstKE_H
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 namespace incompressible
51 /*---------------------------------------------------------------------------*\
52 Class LamBremhorstKE Declaration
53 \*---------------------------------------------------------------------------*/
61 dimensionedScalar Cmu_;
62 dimensionedScalar C1_;
63 dimensionedScalar C2_;
64 dimensionedScalar sigmaEps_;
67 volScalarField epsilon_;
78 //- Runtime type information
79 TypeName("LamBremhorstKE");
84 //- Construct from components
87 const volVectorField& U,
88 const surfaceScalarField& phi,
89 transportModel& transport
95 virtual ~LamBremhorstKE()
101 //- Return the turbulence viscosity
102 virtual tmp<volScalarField> nut() const
107 //- Return the effective diffusivity for k
108 tmp<volScalarField> DkEff() const
110 return tmp<volScalarField>
112 new volScalarField("DkEff", nut_ + nu())
116 //- Return the effective diffusivity for epsilon
117 tmp<volScalarField> DepsilonEff() const
119 return tmp<volScalarField>
121 new volScalarField("DepsilonEff", nut_/sigmaEps_ + nu())
125 //- Return the turbulence kinetic energy
126 virtual tmp<volScalarField> k() const
131 //- Return the turbulence kinetic energy dissipation rate
132 virtual tmp<volScalarField> epsilon() const
137 //- Return the Reynolds stress tensor
138 virtual tmp<volSymmTensorField> R() const;
140 //- Return the effective stress tensor including the laminar stress
141 virtual tmp<volSymmTensorField> devReff() const;
143 //- Return the source term for the momentum equation
144 virtual tmp<fvVectorMatrix> divDevReff(volVectorField& U) const;
146 //- Solve the turbulence equations and correct the turbulence viscosity
147 virtual void correct();
149 //- Read RASProperties dictionary
154 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
156 } // End namespace RASModels
157 } // End namespace incompressible
158 } // End namespace Foam
160 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
164 // ************************************************************************* //