|
|
|
LienCubicKELowRe.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::LienCubicKELowRe 00027 00028 Description 00029 Lien cubic non-linear low-Reynolds k-epsilon turbulence models for 00030 incompressible flows. 00031 00032 References: 00033 @verbatim 00034 Lien, F.S., Chen, W.L., Leschziner, M.A., 00035 "Low-Reynolds-number eddy-viscosity modeling based on non-linear 00036 stress-strain/vorticity relations" 00037 Engineering Turbulence Modelling and Experiments 3 00038 (Edited by Rodi, W. and Bergeles, G.), 91-100. 1996. 00039 Elsevier Science Publishers. 00040 00041 Etemad, S., et al., 00042 "Turbulent flow and heat transfer in a square-sectioned U bend" 00043 Progress in compuational fluid dynamics 6, 89-100. 2006. 00044 @endverbatim 00045 00046 SourceFiles 00047 LienCubicKELowRe.C 00048 00049 \*---------------------------------------------------------------------------*/ 00050 00051 #ifndef LienCubicKELowRe_H 00052 #define LienCubicKELowRe_H 00053 00054 #include "RASModel.H" 00055 #include "wallDist.H" 00056 00057 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00058 00059 namespace Foam 00060 { 00061 namespace incompressible 00062 { 00063 namespace RASModels 00064 { 00065 00066 /*---------------------------------------------------------------------------*\ 00067 Class LienCubicKELowRe Declaration 00068 \*---------------------------------------------------------------------------*/ 00069 00070 class LienCubicKELowRe 00071 : 00072 public RASModel 00073 { 00074 // Private data 00075 00076 // Model coefficients 00077 00078 dimensionedScalar C1_; 00079 dimensionedScalar C2_; 00080 dimensionedScalar sigmak_; 00081 dimensionedScalar sigmaEps_; 00082 dimensionedScalar A1_; 00083 dimensionedScalar A2_; 00084 dimensionedScalar Ctau1_; 00085 dimensionedScalar Ctau2_; 00086 dimensionedScalar Ctau3_; 00087 dimensionedScalar alphaKsi_; 00088 00089 dimensionedScalar CmuWall_; 00090 dimensionedScalar kappa_; 00091 00092 dimensionedScalar Am_; 00093 dimensionedScalar Aepsilon_; 00094 dimensionedScalar Amu_; 00095 00096 00097 // Fields 00098 00099 volScalarField k_; 00100 volScalarField epsilon_; 00101 00102 wallDist y_; 00103 00104 volTensorField gradU_; 00105 volScalarField eta_; 00106 volScalarField ksi_; 00107 volScalarField Cmu_; 00108 volScalarField fEta_; 00109 volScalarField C5viscosity_; 00110 00111 volScalarField yStar_; 00112 00113 volScalarField nut_; 00114 00115 volSymmTensorField nonlinearStress_; 00116 00117 00118 public: 00119 00120 //- Runtime type information 00121 TypeName("LienCubicKELowRe"); 00122 00123 // Constructors 00124 00125 //- Construct from components 00126 LienCubicKELowRe 00127 ( 00128 const volVectorField& U, 00129 const surfaceScalarField& phi, 00130 transportModel& transport 00131 ); 00132 00133 00134 //- Destructor 00135 virtual ~LienCubicKELowRe() 00136 {} 00137 00138 00139 // Member Functions 00140 00141 //- Return the turbulence viscosity 00142 virtual tmp<volScalarField> nut() const 00143 { 00144 return nut_; 00145 } 00146 00147 //- Return the effective diffusivity for k 00148 tmp<volScalarField> DkEff() const 00149 { 00150 return tmp<volScalarField> 00151 ( 00152 new volScalarField("DkEff", nut_/sigmak_ + nu()) 00153 ); 00154 } 00155 00156 //- Return the effective diffusivity for epsilon 00157 tmp<volScalarField> DepsilonEff() const 00158 { 00159 return tmp<volScalarField> 00160 ( 00161 new volScalarField("DepsilonEff", nut_/sigmaEps_ + nu()) 00162 ); 00163 } 00164 00165 //- Return the turbulence kinetic energy 00166 virtual tmp<volScalarField> k() const 00167 { 00168 return k_; 00169 } 00170 00171 //- Return the turbulence kinetic energy dissipation rate 00172 virtual tmp<volScalarField> epsilon() const 00173 { 00174 return epsilon_; 00175 } 00176 00177 //- Return the Reynolds stress tensor 00178 virtual tmp<volSymmTensorField> R() const; 00179 00180 //- Return the effective stress tensor including the laminar stress 00181 virtual tmp<volSymmTensorField> devReff() const; 00182 00183 //- Return the source term for the momentum equation 00184 virtual tmp<fvVectorMatrix> divDevReff(volVectorField& U) const; 00185 00186 //- Solve the turbulence equations and correct the turbulence viscosity 00187 virtual void correct(); 00188 00189 //- Read RASProperties dictionary 00190 virtual bool read(); 00191 }; 00192 00193 00194 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00195 00196 } // End namespace RASModels 00197 } // Edn namespace incompressible 00198 } // End namespace Foam 00199 00200 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00201 00202 #endif 00203 00204 // ************************************************************************* // |