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

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