|
|
|
Smagorinsky.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::compressible::LESModels::Smagorinsky 00027 00028 Description 00029 The choric Smagorinsky Model for compressible flows. 00030 00031 Algebraic eddy viscosity SGS model founded on the assumption that 00032 local equilibrium prevails. 00033 Thus, 00034 @verbatim 00035 00036 B = 2/3*k*I - 2*nuSgs*dev(D) 00037 00038 where 00039 00040 D = symm(grad(U)); 00041 k from rho*D:B + ce*rho*k^3/2/delta = 0 00042 muSgs = ck*rho*sqrt(k)*delta 00043 @endverbatim 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 //- Update sub-grid scale fields 00080 void updateSubGridScaleFields(const volTensorField& gradU); 00081 00082 // Disallow default bitwise copy construct and assignment 00083 Smagorinsky(const Smagorinsky&); 00084 Smagorinsky& operator=(const Smagorinsky&); 00085 00086 00087 public: 00088 00089 //- Runtime type information 00090 TypeName("Smagorinsky"); 00091 00092 // Constructors 00093 00094 //- Construct from components 00095 Smagorinsky 00096 ( 00097 const volScalarField& rho, 00098 const volVectorField& U, 00099 const surfaceScalarField& phi, 00100 const basicThermo& thermoPhysicalModel 00101 ); 00102 00103 00104 //- Destructor 00105 virtual ~Smagorinsky() 00106 {} 00107 00108 00109 // Member Functions 00110 00111 //- Correct Eddy-Viscosity and related properties 00112 virtual void correct(const tmp<volTensorField>& gradU); 00113 00114 //- Read LESProperties dictionary 00115 virtual bool read(); 00116 }; 00117 00118 00119 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00120 00121 } // End namespace LESModels 00122 } // End namespace compressible 00123 } // End namespace Foam 00124 00125 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00126 00127 #endif 00128 00129 // ************************************************************************* // |