|
|
|
LamBremhorstKE.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::LamBremhorstKE 00027 00028 Description 00029 Lam and Bremhorst low-Reynolds number k-epsilon turbulence model 00030 for incompressible flows 00031 00032 SourceFiles 00033 LamBremhorstKE.C 00034 00035 \*---------------------------------------------------------------------------*/ 00036 00037 #ifndef LamBremhorstKE_H 00038 #define LamBremhorstKE_H 00039 00040 #include "RASModel.H" 00041 #include "wallDist.H" 00042 00043 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00044 00045 namespace Foam 00046 { 00047 namespace incompressible 00048 { 00049 namespace RASModels 00050 { 00051 00052 /*---------------------------------------------------------------------------*\ 00053 Class LamBremhorstKE Declaration 00054 \*---------------------------------------------------------------------------*/ 00055 00056 class LamBremhorstKE 00057 : 00058 public RASModel 00059 { 00060 // Private data 00061 00062 dimensionedScalar Cmu_; 00063 dimensionedScalar C1_; 00064 dimensionedScalar C2_; 00065 dimensionedScalar sigmaEps_; 00066 00067 volScalarField k_; 00068 volScalarField epsilon_; 00069 00070 wallDist y_; 00071 volScalarField Rt_; 00072 00073 volScalarField fMu_; 00074 volScalarField nut_; 00075 00076 00077 public: 00078 00079 //- Runtime type information 00080 TypeName("LamBremhorstKE"); 00081 00082 00083 // Constructors 00084 00085 //- Construct from components 00086 LamBremhorstKE 00087 ( 00088 const volVectorField& U, 00089 const surfaceScalarField& phi, 00090 transportModel& transport 00091 ); 00092 00093 00094 //- Destructor 00095 virtual ~LamBremhorstKE() 00096 {} 00097 00098 00099 // Member Functions 00100 00101 //- Return the turbulence viscosity 00102 virtual tmp<volScalarField> nut() const 00103 { 00104 return nut_; 00105 } 00106 00107 //- Return the effective diffusivity for k 00108 tmp<volScalarField> DkEff() const 00109 { 00110 return tmp<volScalarField> 00111 ( 00112 new volScalarField("DkEff", nut_ + nu()) 00113 ); 00114 } 00115 00116 //- Return the effective diffusivity for epsilon 00117 tmp<volScalarField> DepsilonEff() const 00118 { 00119 return tmp<volScalarField> 00120 ( 00121 new volScalarField("DepsilonEff", nut_/sigmaEps_ + nu()) 00122 ); 00123 } 00124 00125 //- Return the turbulence kinetic energy 00126 virtual tmp<volScalarField> k() const 00127 { 00128 return k_; 00129 } 00130 00131 //- Return the turbulence kinetic energy dissipation rate 00132 virtual tmp<volScalarField> epsilon() const 00133 { 00134 return epsilon_; 00135 } 00136 00137 //- Return the Reynolds stress tensor 00138 virtual tmp<volSymmTensorField> R() const; 00139 00140 //- Return the effective stress tensor including the laminar stress 00141 virtual tmp<volSymmTensorField> devReff() const; 00142 00143 //- Return the source term for the momentum equation 00144 virtual tmp<fvVectorMatrix> divDevReff(volVectorField& U) const; 00145 00146 //- Solve the turbulence equations and correct the turbulence viscosity 00147 virtual void correct(); 00148 00149 //- Read RASProperties dictionary 00150 virtual bool read(); 00151 }; 00152 00153 00154 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00155 00156 } // End namespace RASModels 00157 } // End namespace incompressible 00158 } // End namespace Foam 00159 00160 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00161 00162 #endif 00163 00164 // ************************************************************************* // |