|
|
|
mixedSmagorinsky.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::mixedSmagorinsky 00027 00028 Description 00029 The mixed Isochoric Smagorinsky Model for incompressible flows. 00030 00031 The mixed model is a linear combination of an eddy viscosity model 00032 (Smagorinsky) with a scale similarity model. Hence 00033 @verbatim 00034 B = (L + C) + R = (F(v*v) - F(v)*F(v)) + R 00035 @endverbatim 00036 00037 The algebraic eddy viscosity SGS model is founded on the assumption 00038 that local equilibrium prevails, hence 00039 @verbatim 00040 R = 2/3*k*I - 2*nuEff*dev(D) 00041 where 00042 k = cI*delta^2*||D||^2 00043 nuEff = ck*sqrt(k)*delta + nu 00044 @endverbatim 00045 00046 The Leonard and cross contributions are incorporated 00047 by adding, 00048 @verbatim 00049 + div(((filter(U*U) - filter(U)*filter(U)) - 00050 0.333*I*tr(filter(U*U) - filter(U)*filter(U)))) 00051 + div((filter(U*epsilon) - filter(U)*filter(epsilon))) 00052 @endverbatim 00053 to the rhs. of the equations. 00054 00055 SourceFiles 00056 mixedSmagorinsky.C 00057 00058 \*---------------------------------------------------------------------------*/ 00059 00060 #ifndef mixedSmagorinsky_H 00061 #define mixedSmagorinsky_H 00062 00063 #include "scaleSimilarity.H" 00064 #include "Smagorinsky.H" 00065 00066 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00067 00068 namespace Foam 00069 { 00070 namespace incompressible 00071 { 00072 namespace LESModels 00073 { 00074 00075 /*---------------------------------------------------------------------------*\ 00076 Class mixedSmagorinsky Declaration 00077 \*---------------------------------------------------------------------------*/ 00078 00079 class mixedSmagorinsky 00080 : 00081 public scaleSimilarity, 00082 public Smagorinsky 00083 { 00084 // Private Member Functions 00085 00086 // Disallow default bitwise copy construct and assignment 00087 mixedSmagorinsky(const mixedSmagorinsky&); 00088 mixedSmagorinsky& operator=(const mixedSmagorinsky&); 00089 00090 public: 00091 00092 //- Runtime type information 00093 TypeName("mixedSmagorinsky"); 00094 00095 00096 // Constructors 00097 00098 //- Construct from components 00099 mixedSmagorinsky 00100 ( 00101 const volVectorField& U, 00102 const surfaceScalarField& phi, 00103 transportModel& transport 00104 ); 00105 00106 00107 //- Destructor 00108 virtual ~mixedSmagorinsky() 00109 {} 00110 00111 00112 // Member Functions 00113 00114 //- Return the SGS turbulent kinetic energy. 00115 virtual tmp<volScalarField> k() const; 00116 00117 //- Return the SGS turbulent disipation rate. 00118 virtual tmp<volScalarField> epsilon() const; 00119 00120 //- Return the SGS viscosity. 00121 virtual tmp<volScalarField> nuSgs() const 00122 { 00123 return nuSgs_; 00124 } 00125 00126 //- Return the sub-grid stress tensor. 00127 virtual tmp<volSymmTensorField> B() const; 00128 00129 //- Return the effective sub-grid turbulence stress tensor 00130 // including the laminar stress 00131 virtual tmp<volSymmTensorField> devBeff() const; 00132 00133 //- Implementation of div(B). This is necessary to override 00134 // (and include) the div(B) terms from both the parent classes. 00135 virtual tmp<fvVectorMatrix> divDevBeff(volVectorField& U) const; 00136 00137 //- Correct Eddy-Viscosity and related properties 00138 virtual void correct(const tmp<volTensorField>& gradU); 00139 00140 //- Read LESProperties dictionary 00141 virtual bool read(); 00142 }; 00143 00144 00145 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00146 00147 } // End namespace LESModels 00148 } // End namespace incompressible 00149 } // End namespace Foam 00150 00151 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00152 00153 #endif 00154 00155 // ************************************************************************* // |