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