|
|
|
RNGkEpsilon.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::RASModels::RNGkEpsilon 00027 00028 Description 00029 Renormalisation group k-epsilon turbulence model for compressible flows. 00030 00031 The default model coefficients correspond to the following: 00032 @verbatim 00033 RNGkEpsilonCoeffs 00034 { 00035 Cmu 0.0845; 00036 C1 1.42; 00037 C2 1.68; 00038 C3 -0.33; // only for compressible 00039 Prt 1.0; // only for compressible 00040 sigmak 0.71942; 00041 sigmaEps 0.71942; 00042 eta0 4.38; 00043 beta 0.012; 00044 } 00045 @endverbatim 00046 00047 SourceFiles 00048 RNGkEpsilon.C 00049 RNGkEpsilonCorrect.C 00050 00051 \*---------------------------------------------------------------------------*/ 00052 00053 #ifndef compressibleRNGkEpsilon_H 00054 #define compressibleRNGkEpsilon_H 00055 00056 #include "RASModel.H" 00057 00058 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00059 00060 namespace Foam 00061 { 00062 namespace compressible 00063 { 00064 namespace RASModels 00065 { 00066 00067 /*---------------------------------------------------------------------------*\ 00068 Class RNGkEpsilon Declaration 00069 \*---------------------------------------------------------------------------*/ 00070 00071 class RNGkEpsilon 00072 : 00073 public RASModel 00074 { 00075 // Private data 00076 00077 // Model coefficients 00078 00079 dimensionedScalar Cmu_; 00080 dimensionedScalar C1_; 00081 dimensionedScalar C2_; 00082 dimensionedScalar C3_; 00083 dimensionedScalar sigmak_; 00084 dimensionedScalar sigmaEps_; 00085 dimensionedScalar Prt_; 00086 dimensionedScalar eta0_; 00087 dimensionedScalar beta_; 00088 00089 // Fields 00090 00091 volScalarField k_; 00092 volScalarField epsilon_; 00093 volScalarField mut_; 00094 volScalarField alphat_; 00095 00096 00097 public: 00098 00099 //- Runtime type information 00100 TypeName("RNGkEpsilon"); 00101 00102 // Constructors 00103 00104 //- Construct from components 00105 RNGkEpsilon 00106 ( 00107 const volScalarField& rho, 00108 const volVectorField& U, 00109 const surfaceScalarField& phi, 00110 const basicThermo& thermophysicalModel 00111 ); 00112 00113 00114 //- Destructor 00115 virtual ~RNGkEpsilon() 00116 {} 00117 00118 00119 // Member Functions 00120 00121 //- Return the effective diffusivity for k 00122 tmp<volScalarField> DkEff() const 00123 { 00124 return tmp<volScalarField> 00125 ( 00126 new volScalarField("DkEff", mut_/sigmak_ + mu()) 00127 ); 00128 } 00129 00130 //- Return the effective diffusivity for epsilon 00131 tmp<volScalarField> DepsilonEff() const 00132 { 00133 return tmp<volScalarField> 00134 ( 00135 new volScalarField("DepsilonEff", mut_/sigmaEps_ + mu()) 00136 ); 00137 } 00138 00139 //- Return the turbulence viscosity 00140 virtual tmp<volScalarField> mut() const 00141 { 00142 return mut_; 00143 } 00144 00145 //- Return the effective turbulent thermal diffusivity 00146 virtual tmp<volScalarField> alphaEff() const 00147 { 00148 return tmp<volScalarField> 00149 ( 00150 new volScalarField("alphaEff", alphat_ + alpha()) 00151 ); 00152 } 00153 00154 //- Return the turbulence kinetic energy 00155 virtual tmp<volScalarField> k() const 00156 { 00157 return k_; 00158 } 00159 00160 //- Return the turbulence kinetic energy dissipation rate 00161 virtual tmp<volScalarField> epsilon() const 00162 { 00163 return epsilon_; 00164 } 00165 00166 //- Return the Reynolds stress tensor 00167 virtual tmp<volSymmTensorField> R() const; 00168 00169 //- Return the effective stress tensor including the laminar stress 00170 virtual tmp<volSymmTensorField> devRhoReff() const; 00171 00172 //- Return the effective stress tensor including the laminar stress 00173 virtual tmp<fvVectorMatrix> divDevRhoReff(volVectorField& U) const; 00174 00175 //- Solve the turbulence equations and correct the turbulence viscosity 00176 virtual void correct(); 00177 00178 //- Read RASProperties dictionary 00179 virtual bool read(); 00180 }; 00181 00182 00183 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00184 00185 } // End namespace RASModels 00186 } // End namespace compressible 00187 } // End namespace Foam 00188 00189 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00190 00191 #endif 00192 00193 // ************************************************************************* // |