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