FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

LamBremhorstKE.H

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------------*\
00002   =========                 |
00003   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
00004    \\    /   O peration     |
00005     \\  /    A nd           | Copyright (C) 1991-2010 OpenCFD Ltd.
00006      \\/     M anipulation  |
00007 -------------------------------------------------------------------------------
00008 License
00009     This file is part of OpenFOAM.
00010 
00011     OpenFOAM is free software: you can redistribute it and/or modify it
00012     under the terms of the GNU General Public License as published by
00013     the Free Software Foundation, either version 3 of the License, or
00014     (at your option) any later version.
00015 
00016     OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
00017     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00018     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00019     for more details.
00020 
00021     You should have received a copy of the GNU General Public License
00022     along with OpenFOAM.  If not, see <http://www.gnu.org/licenses/>.
00023 
00024 Class
00025     Foam::incompressible::RASModels::LamBremhorstKE
00026 
00027 Description
00028     Lam and Bremhorst low-Reynolds number k-epsilon turbulence model
00029     for incompressible flows
00030 
00031 SourceFiles
00032     LamBremhorstKE.C
00033 
00034 \*---------------------------------------------------------------------------*/
00035 
00036 #ifndef LamBremhorstKE_H
00037 #define LamBremhorstKE_H
00038 
00039 #include <incompressibleRASModels/RASModel.H>
00040 #include <finiteVolume/wallDist.H>
00041 
00042 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00043 
00044 namespace Foam
00045 {
00046 namespace incompressible
00047 {
00048 namespace RASModels
00049 {
00050 
00051 /*---------------------------------------------------------------------------*\
00052                       Class LamBremhorstKE Declaration
00053 \*---------------------------------------------------------------------------*/
00054 
00055 class LamBremhorstKE
00056 :
00057     public RASModel
00058 {
00059     // Private data
00060 
00061         dimensionedScalar Cmu_;
00062         dimensionedScalar C1_;
00063         dimensionedScalar C2_;
00064         dimensionedScalar sigmaEps_;
00065 
00066         volScalarField k_;
00067         volScalarField epsilon_;
00068 
00069         wallDist y_;
00070         volScalarField Rt_;
00071 
00072         volScalarField fMu_;
00073         volScalarField nut_;
00074 
00075 
00076 public:
00077 
00078     //- Runtime type information
00079     TypeName("LamBremhorstKE");
00080 
00081 
00082     // Constructors
00083 
00084         //- Construct from components
00085         LamBremhorstKE
00086         (
00087             const volVectorField& U,
00088             const surfaceScalarField& phi,
00089             transportModel& transport
00090         );
00091 
00092 
00093     //- Destructor
00094     virtual ~LamBremhorstKE()
00095     {}
00096 
00097 
00098     // Member Functions
00099 
00100         //- Return the turbulence viscosity
00101         virtual tmp<volScalarField> nut() const
00102         {
00103             return nut_;
00104         }
00105 
00106         //- Return the effective diffusivity for k
00107         tmp<volScalarField> DkEff() const
00108         {
00109             return tmp<volScalarField>
00110             (
00111                 new volScalarField("DkEff", nut_ + nu())
00112             );
00113         }
00114 
00115         //- Return the effective diffusivity for epsilon
00116         tmp<volScalarField> DepsilonEff() const
00117         {
00118             return tmp<volScalarField>
00119             (
00120                 new volScalarField("DepsilonEff", nut_/sigmaEps_ + nu())
00121             );
00122         }
00123 
00124         //- Return the turbulence kinetic energy
00125         virtual tmp<volScalarField> k() const
00126         {
00127             return k_;
00128         }
00129 
00130         //- Return the turbulence kinetic energy dissipation rate
00131         virtual tmp<volScalarField> epsilon() const
00132         {
00133             return epsilon_;
00134         }
00135 
00136         //- Return the Reynolds stress tensor
00137         virtual tmp<volSymmTensorField> R() const;
00138 
00139         //- Return the effective stress tensor including the laminar stress
00140         virtual tmp<volSymmTensorField> devReff() const;
00141 
00142         //- Return the source term for the momentum equation
00143         virtual tmp<fvVectorMatrix> divDevReff(volVectorField& U) const;
00144 
00145         //- Solve the turbulence equations and correct the turbulence viscosity
00146         virtual void correct();
00147 
00148         //- Read RASProperties dictionary
00149         virtual bool read();
00150 };
00151 
00152 
00153 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00154 
00155 } // End namespace RASModels
00156 } // End namespace incompressible
00157 } // End namespace Foam
00158 
00159 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00160 
00161 #endif
00162 
00163 // ************************ vim: set sw=4 sts=4 et: ************************ //
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines