|
|
|
lowReOneEqEddy.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::lowReOneEqEddy 00027 00028 Description 00029 One Equation Eddy Viscosity Model for compressible flow 00030 00031 @verbatim 00032 d/dt(rho*k) + div(rho*U*k) - div(muEff*grad(k)) 00033 = 00034 -rho*B*L - ce*rho*k^3/2/delta 00035 00036 and 00037 00038 B = 2/3*k*I - 2*nuSgs*dev(D) 00039 00040 where 00041 00042 nuSgsHiRe = ck*sqrt(k)*delta 00043 nuSgs = (nu/beta)*(1 - exp(-beta*nuSgsHiRe/nu)); 00044 @endverbatim 00045 00046 SourceFiles 00047 lowReOneEqEddy.C 00048 00049 \*---------------------------------------------------------------------------*/ 00050 00051 #ifndef compressibleLowReOneEqEddy_H 00052 #define compressibleLowReOneEqEddy_H 00053 00054 #include "GenEddyVisc.H" 00055 00056 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00057 00058 namespace Foam 00059 { 00060 namespace compressible 00061 { 00062 namespace LESModels 00063 { 00064 00065 /*---------------------------------------------------------------------------*\ 00066 Class lowReOneEqEddy Declaration 00067 \*---------------------------------------------------------------------------*/ 00068 00069 class lowReOneEqEddy 00070 : 00071 public GenEddyVisc 00072 { 00073 // Private data 00074 00075 dimensionedScalar ck_; 00076 dimensionedScalar beta_; 00077 00078 // Private Member Functions 00079 00080 //- Update sub-grid scale fields 00081 void updateSubGridScaleFields(); 00082 00083 // Disallow default bitwise copy construct and assignment 00084 lowReOneEqEddy(const lowReOneEqEddy&); 00085 lowReOneEqEddy& operator=(const lowReOneEqEddy&); 00086 00087 00088 public: 00089 00090 //- Runtime type information 00091 TypeName("lowReOneEqEddy"); 00092 00093 00094 // Constructors 00095 00096 //- Constructor from components 00097 lowReOneEqEddy 00098 ( 00099 const volScalarField& rho, 00100 const volVectorField& U, 00101 const surfaceScalarField& phi, 00102 const basicThermo& thermoPhysicalModel 00103 ); 00104 00105 00106 //- Destructor 00107 virtual ~lowReOneEqEddy() 00108 {} 00109 00110 00111 // Member Functions 00112 00113 //- Return the effective diffusivity for k 00114 tmp<volScalarField> DkEff() const 00115 { 00116 return tmp<volScalarField> 00117 ( 00118 new volScalarField("DkEff", muSgs_ + mu()) 00119 ); 00120 } 00121 00122 //- Correct Eddy-Viscosity and related properties 00123 virtual void correct(const tmp<volTensorField>& gradU); 00124 00125 //- Read LESProperties dictionary 00126 virtual bool read(); 00127 }; 00128 00129 00130 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00131 00132 } // End namespace LESModels 00133 } // End namespace compressible 00134 } // End namespace Foam 00135 00136 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00137 00138 #endif 00139 00140 // ************************************************************************* // |