OpenFOAM logo
Open Source CFD Toolkit

Smagorinsky.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     Smagorinsky
00027 
00028 Description
00029 <pre>
00030     The choric Smagorinsky Model
00031     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
00032     Algebraic eddy viscosity SGS model founded on the assumption that
00033     local equilibrium prevails, hence
00034 
00035         B = 2/3*k*I - 2*nuSgs*dev(D)
00036 
00037     where
00038 
00039         D = symm(grad(U));
00040         k = (2*ck/ce)*delta^2*grad(U):dev(D)
00041         muSgs = rho*ck*sqrt(k)*delta
00042         muEff = muSgs + mu
00043 </pre>
00044 
00045 SourceFiles
00046     Smagorinsky.C
00047 
00048 \*---------------------------------------------------------------------------*/
00049 
00050 #ifndef compressibleSmagorinsky_H
00051 #define compressibleSmagorinsky_H
00052 
00053 #include "GenEddyVisc.H"
00054 
00055 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00056 
00057 namespace Foam
00058 {
00059 namespace compressible
00060 {
00061 namespace LESmodels
00062 {
00063 
00064 /*---------------------------------------------------------------------------*\
00065                            Class Smagorinsky Declaration
00066 \*---------------------------------------------------------------------------*/
00067 
00068 class Smagorinsky
00069 :
00070     public GenEddyVisc
00071 {
00072     // Private data
00073 
00074         dimensionedScalar ck_;
00075 
00076 
00077     // Private Member Functions
00078 
00079         // Disallow default bitwise copy construct and assignment
00080         Smagorinsky(const Smagorinsky&);
00081         Smagorinsky& operator=(const Smagorinsky&);
00082 
00083 
00084 public:
00085 
00086     //- Runtime type information
00087     TypeName("Smagorinsky");
00088 
00089     // Constructors
00090 
00091         //- Construct from components
00092         Smagorinsky
00093         (
00094             const volScalarField& rho,
00095             const volVectorField& U,
00096             const surfaceScalarField& phi,
00097             const basicThermo& thermoPhysicalModel
00098         );
00099 
00100 
00101     // Destructor
00102 
00103         ~Smagorinsky()
00104         {}
00105 
00106 
00107     // Member Functions
00108 
00109         //- Correct Eddy-Viscosity and related properties
00110         void correct(const tmp<volTensorField>& gradU);
00111 
00112         //- Read turbulenceProperties dictionary
00113         bool read();
00114 };
00115 
00116 
00117 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00118 
00119 } // End namespace LESmodels
00120 } // End namespace compressible
00121 } // End namespace Foam
00122 
00123 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00124 
00125 #endif
00126 
00127 // ************************************************************************* //
For further information go to www.openfoam.org