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::LESModels::Smagorinsky2 00026 00027 Description 00028 The Isochoric Smagorinsky Model for incompressible flows 00029 00030 Algebraic eddy viscosity SGS model founded on the assumption that 00031 local equilibrium prevails, hence 00032 @verbatim 00033 B = 2/3*k*I - 2*nuSgs*dev(D) - 2*cD2*delta*(D.dev(D)); 00034 Beff = 2/3*k*I - 2*nuEff*dev(D) - 2*cD2*delta*(D.dev(D)); 00035 00036 where 00037 00038 D = symm(grad(U)); 00039 k = cI*delta^2*||D||^2 00040 nuSgs = ck*sqrt(k)*delta 00041 nuEff = nuSgs + nu 00042 @endverbatim 00043 00044 SourceFiles 00045 Smagorinsky2.C 00046 00047 \*---------------------------------------------------------------------------*/ 00048 00049 #ifndef Smagorinsky2_H 00050 #define Smagorinsky2_H 00051 00052 #include <incompressibleLESModels/Smagorinsky.H> 00053 00054 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00055 00056 namespace Foam 00057 { 00058 namespace incompressible 00059 { 00060 namespace LESModels 00061 { 00062 00063 /*---------------------------------------------------------------------------*\ 00064 Class Smagorinsky2 Declaration 00065 \*---------------------------------------------------------------------------*/ 00066 00067 class Smagorinsky2 00068 : 00069 public Smagorinsky 00070 { 00071 // Private data 00072 00073 dimensionedScalar cD2_; 00074 00075 00076 // Private Member Functions 00077 00078 // Disallow default bitwise copy construct and assignment 00079 Smagorinsky2(const Smagorinsky2&); 00080 Smagorinsky2& operator=(const Smagorinsky2&); 00081 00082 00083 public: 00084 00085 //- Runtime type information 00086 TypeName("Smagorinsky2"); 00087 00088 00089 // Constructors 00090 00091 //- Construct from components 00092 Smagorinsky2 00093 ( 00094 const volVectorField& U, 00095 const surfaceScalarField& phi, 00096 transportModel& transport 00097 ); 00098 00099 00100 //- Destructor 00101 virtual ~Smagorinsky2() 00102 {} 00103 00104 00105 // Member Functions 00106 00107 //- Return B. 00108 virtual tmp<volSymmTensorField> B() const; 00109 00110 //- Returns div(B). 00111 // This is the additional term due to the filtering of the NSE. 00112 virtual tmp<fvVectorMatrix> divDevBeff(volVectorField& U) const; 00113 00114 //- Read LESProperties dictionary 00115 virtual bool read(); 00116 }; 00117 00118 00119 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00120 00121 } // End namespace LESModels 00122 } // End namespace incompressible 00123 } // End namespace Foam 00124 00125 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00126 00127 #endif 00128 00129 // ************************ vim: set sw=4 sts=4 et: ************************ //