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