|
|
|
qZeta.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::qZeta 00027 00028 Description 00029 Gibson and Dafa'Alla's q-zeta two-equation low-Re turbulence model 00030 for incompressible flows 00031 00032 SourceFiles 00033 qZeta.C 00034 00035 \*---------------------------------------------------------------------------*/ 00036 00037 #ifndef qZeta_H 00038 #define qZeta_H 00039 00040 #include "RASModel.H" 00041 00042 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00043 00044 namespace Foam 00045 { 00046 namespace incompressible 00047 { 00048 namespace RASModels 00049 { 00050 00051 /*---------------------------------------------------------------------------*\ 00052 Class qZeta Declaration 00053 \*---------------------------------------------------------------------------*/ 00054 00055 class qZeta 00056 : 00057 public RASModel 00058 { 00059 // Private data 00060 00061 // Model coefficients 00062 00063 dimensionedScalar Cmu_; 00064 dimensionedScalar C1_; 00065 dimensionedScalar C2_; 00066 dimensionedScalar sigmaZeta_; 00067 Switch anisotropic_; 00068 00069 00070 // Fields 00071 00072 volScalarField k_; 00073 volScalarField epsilon_; 00074 00075 volScalarField q_; 00076 volScalarField zeta_; 00077 00078 volScalarField nut_; 00079 00080 00081 // Private member functions 00082 00083 tmp<volScalarField> fMu() const; 00084 tmp<volScalarField> f2() const; 00085 00086 00087 public: 00088 00089 //- Runtime type information 00090 TypeName("qZeta"); 00091 00092 // Constructors 00093 00094 //- Construct from components 00095 qZeta 00096 ( 00097 const volVectorField& U, 00098 const surfaceScalarField& phi, 00099 transportModel& transport 00100 ); 00101 00102 00103 //- Destructor 00104 virtual ~qZeta() 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 q 00117 tmp<volScalarField> DqEff() const 00118 { 00119 return tmp<volScalarField> 00120 ( 00121 new volScalarField("DqEff", nut_ + nu()) 00122 ); 00123 } 00124 00125 //- Return the effective diffusivity for epsilon 00126 tmp<volScalarField> DzetaEff() const 00127 { 00128 return tmp<volScalarField> 00129 ( 00130 new volScalarField("DzetaEff", nut_/sigmaZeta_ + 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 virtual const volScalarField& q() const 00150 { 00151 return q_; 00152 } 00153 00154 virtual const volScalarField& zeta() const 00155 { 00156 return zeta_; 00157 } 00158 00159 //- Return the effective stress tensor including the laminar stress 00160 virtual tmp<volSymmTensorField> devReff() const; 00161 00162 //- Return the source term for the momentum equation 00163 virtual tmp<fvVectorMatrix> divDevReff(volVectorField& U) const; 00164 00165 //- Solve the turbulence equations and correct the turbulence viscosity 00166 virtual void correct(); 00167 00168 //- Read RASProperties dictionary 00169 virtual bool read(); 00170 }; 00171 00172 00173 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00174 00175 } // End namespace RASModels 00176 } // End namespace incompressible 00177 } // End namespace Foam 00178 00179 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00180 00181 #endif 00182 00183 // ************************************************************************* // |