OpenFOAM logo
Open Source CFD Toolkit

oneEqEddy.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-2005 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 the
00013     Free Software Foundation; either version 2 of the License, or (at your
00014     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, write to the Free Software Foundation,
00023     Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
00024 
00025 Class
00026     oneEqEddy
00027 
00028 Description
00029 <pre>
00030     One Equation Eddy Viscosity Model
00031     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
00032     Eddy viscosity SGS model using a modeled balance equation to simulate the
00033     behaviour of k, hence,
00034 
00035         d/dt(k) + div(U*k) - div(nuEff*grad(k))
00036         =
00037         -B*L - ce*k^3/2/delta
00038 
00039     and
00040 
00041         B = 2/3*k*I - 2*nuEff*dev(D)
00042 
00043     where
00044 
00045         D = symm(grad(U));
00046         nuSgs = ck*sqrt(k)*delta
00047         nuEff = nuSgs + nu
00048 </pre>
00049 
00050 SourceFiles
00051     oneEqEddy.C
00052 
00053 \*---------------------------------------------------------------------------*/
00054 
00055 #ifndef oneEqEddy_H
00056 #define oneEqEddy_H
00057 
00058 #include "GenEddyVisc.H"
00059 
00060 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00061 
00062 namespace Foam
00063 {
00064 namespace LESmodels
00065 {
00066 
00067 /*---------------------------------------------------------------------------*\
00068                            Class oneEqEddy Declaration
00069 \*---------------------------------------------------------------------------*/
00070 
00071 class oneEqEddy
00072 :
00073     public GenEddyVisc
00074 {
00075     // Private data
00076 
00077         volScalarField k_;
00078 
00079         dimensionedScalar ck_;
00080 
00081 
00082     // Private Member Functions
00083 
00084         // Disallow default bitwise copy construct and assignment
00085         oneEqEddy(const oneEqEddy&);
00086         oneEqEddy& operator=(const oneEqEddy&);
00087 
00088 
00089 public:
00090 
00091     //- Runtime type information
00092     TypeName("oneEqEddy");
00093 
00094     // Constructors
00095 
00096         //- Constructor from components
00097         oneEqEddy
00098         (
00099             const volVectorField& U,
00100             const surfaceScalarField& phi,
00101             transportModel& transport
00102         );
00103 
00104 
00105     // Destructor
00106 
00107         ~oneEqEddy()
00108         {}
00109 
00110 
00111     // Member Functions
00112 
00113         //- Return SGS kinetic energy
00114         tmp<volScalarField> k() const
00115         {
00116             return k_;
00117         }
00118 
00119         //- Return the effective diffusivity for k
00120         tmp<volScalarField> DkEff() const
00121         {
00122             return tmp<volScalarField> 
00123             (
00124                 new volScalarField("DkEff", nuSgs_ + nu())
00125             );
00126         }
00127 
00128         //- Correct Eddy-Viscosity and related properties
00129         void correct(const tmp<volTensorField>& gradU);
00130 
00131         //- Read turbulenceProperties dictionary
00132         bool read();
00133 };
00134 
00135 
00136 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00137 
00138 } // End namespace LESmodels
00139 } // End namespace Foam
00140 
00141 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00142 
00143 #endif
00144 
00145 // ************************************************************************* //
For further information go to www.openfoam.org