|
|
|
LaunderGibsonRSTM.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::RASModels::LaunderGibsonRSTM 00027 00028 Description 00029 Launder-Gibson Reynolds stress turbulence model for incompressible flows. 00030 00031 The default model coefficients correspond to the following: 00032 @verbatim 00033 LaunderGibsonRSTMCoeffs 00034 { 00035 Cmu 0.09; 00036 kappa 0.41; 00037 Clg1 1.8; 00038 Clg2 0.6; 00039 C1 1.44; 00040 C2 1.92; 00041 C1Ref 0.5; 00042 C2Ref 0.3; 00043 Cs 0.25; 00044 Ceps 0.15; 00045 sigmaEps 1.3; 00046 sigmaR 0.81967; 00047 couplingFactor 0.0; 00048 } 00049 @endverbatim 00050 00051 SourceFiles 00052 LaunderGibsonRSTM.C 00053 00054 \*---------------------------------------------------------------------------*/ 00055 00056 #ifndef LaunderGibsonRSTM_H 00057 #define LaunderGibsonRSTM_H 00058 00059 #include "RASModel.H" 00060 #include "wallDistReflection.H" 00061 00062 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00063 00064 namespace Foam 00065 { 00066 namespace incompressible 00067 { 00068 namespace RASModels 00069 { 00070 00071 /*---------------------------------------------------------------------------*\ 00072 Class LaunderGibsonRSTM Declaration 00073 \*---------------------------------------------------------------------------*/ 00074 00075 class LaunderGibsonRSTM 00076 : 00077 public RASModel 00078 { 00079 // Private data 00080 00081 // Model coefficients 00082 00083 dimensionedScalar Cmu_; 00084 dimensionedScalar kappa_; 00085 00086 dimensionedScalar Clg1_; 00087 dimensionedScalar Clg2_; 00088 00089 dimensionedScalar C1_; 00090 dimensionedScalar C2_; 00091 dimensionedScalar Cs_; 00092 dimensionedScalar Ceps_; 00093 dimensionedScalar sigmaR_; 00094 dimensionedScalar sigmaEps_; 00095 00096 dimensionedScalar C1Ref_; 00097 dimensionedScalar C2Ref_; 00098 00099 dimensionedScalar couplingFactor_; 00100 00101 00102 // Fields 00103 00104 wallDistReflection yr_; 00105 00106 volSymmTensorField R_; 00107 volScalarField k_; 00108 volScalarField epsilon_; 00109 volScalarField nut_; 00110 00111 00112 public: 00113 00114 //- Runtime type information 00115 TypeName("LaunderGibsonRSTM"); 00116 00117 // Constructors 00118 00119 //- Construct from components 00120 LaunderGibsonRSTM 00121 ( 00122 const volVectorField& U, 00123 const surfaceScalarField& phi, 00124 transportModel& transport 00125 ); 00126 00127 00128 //- Destructor 00129 virtual ~LaunderGibsonRSTM() 00130 {} 00131 00132 00133 // Member Functions 00134 00135 //- Return the turbulence viscosity 00136 virtual tmp<volScalarField> nut() const 00137 { 00138 return nut_; 00139 } 00140 00141 //- Return the effective diffusivity for R 00142 tmp<volScalarField> DREff() const 00143 { 00144 return tmp<volScalarField> 00145 ( 00146 new volScalarField("DREff", nut_/sigmaR_ + nu()) 00147 ); 00148 } 00149 00150 //- Return the effective diffusivity for epsilon 00151 tmp<volScalarField> DepsilonEff() const 00152 { 00153 return tmp<volScalarField> 00154 ( 00155 new volScalarField("DepsilonEff", nut_/sigmaEps_ + nu()) 00156 ); 00157 } 00158 00159 //- Return the turbulence kinetic energy 00160 virtual tmp<volScalarField> k() const 00161 { 00162 return k_; 00163 } 00164 00165 //- Return the turbulence kinetic energy dissipation rate 00166 virtual tmp<volScalarField> epsilon() const 00167 { 00168 return epsilon_; 00169 } 00170 00171 //- Return the Reynolds stress tensor 00172 virtual tmp<volSymmTensorField> R() const 00173 { 00174 return R_; 00175 } 00176 00177 //- Return the effective stress tensor including the laminar stress 00178 virtual tmp<volSymmTensorField> devReff() const; 00179 00180 //- Return the source term for the momentum equation 00181 virtual tmp<fvVectorMatrix> divDevReff(volVectorField& U) const; 00182 00183 //- Solve the turbulence equations and correct the turbulence viscosity 00184 virtual void correct(); 00185 00186 //- Read RASProperties dictionary 00187 virtual bool read(); 00188 }; 00189 00190 00191 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00192 00193 } // End namespace RASModels 00194 } // End namespace incompressible 00195 } // End namespace Foam 00196 00197 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00198 00199 #endif 00200 00201 // ************************************************************************* // |