|
|
|
Smagorinsky2.HGo 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-2009 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 Foam::incompressible::LESModels::Smagorinsky2 00027 00028 Description 00029 The Isochoric Smagorinsky Model for incompressible flows 00030 00031 Algebraic eddy viscosity SGS model founded on the assumption that 00032 local equilibrium prevails, hence 00033 @verbatim 00034 B = 2/3*k*I - 2*nuSgs*dev(D) - 2*cD2*delta*(D.dev(D)); 00035 Beff = 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 @endverbatim 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 incompressible 00060 { 00061 namespace LESModels 00062 { 00063 00064 /*---------------------------------------------------------------------------*\ 00065 Class Smagorinsky2 Declaration 00066 \*---------------------------------------------------------------------------*/ 00067 00068 class Smagorinsky2 00069 : 00070 public Smagorinsky 00071 { 00072 // Private data 00073 00074 dimensionedScalar cD2_; 00075 00076 00077 // Private Member Functions 00078 00079 // Disallow default bitwise copy construct and assignment 00080 Smagorinsky2(const Smagorinsky2&); 00081 Smagorinsky2& operator=(const Smagorinsky2&); 00082 00083 00084 public: 00085 00086 //- Runtime type information 00087 TypeName("Smagorinsky2"); 00088 00089 00090 // Constructors 00091 00092 //- Construct from components 00093 Smagorinsky2 00094 ( 00095 const volVectorField& U, 00096 const surfaceScalarField& phi, 00097 transportModel& transport 00098 ); 00099 00100 00101 //- Destructor 00102 virtual ~Smagorinsky2() 00103 {} 00104 00105 00106 // Member Functions 00107 00108 //- Return B. 00109 virtual tmp<volSymmTensorField> B() const; 00110 00111 //- Returns div(B). 00112 // This is the additional term due to the filtering of the NSE. 00113 virtual tmp<fvVectorMatrix> divDevBeff(volVectorField& U) const; 00114 00115 //- Read LESProperties dictionary 00116 virtual bool read(); 00117 }; 00118 00119 00120 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00121 00122 } // End namespace LESModels 00123 } // End namespace incompressible 00124 } // End namespace Foam 00125 00126 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00127 00128 #endif 00129 00130 // ************************************************************************* // |