PDRkEpsilon.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
11  OpenFOAM is free software: you can redistribute it and/or modify it
12  under the terms of the GNU General Public License as published by
13  the Free Software Foundation, either version 3 of the License, or
14  (at your option) any later version.
15 
16  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19  for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
23 
24 Class
25  Foam::compressible::RASModels::PDRkEpsilon
26 
27 Description
28  Standard k-epsilon turbulence model with additional source terms
29  corresponding to PDR basic drag model (\link basic.H \endlink)
30 
31  The default model coefficients correspond to the following:
32  @verbatim
33  PDRkEpsilonCoeffs
34  {
35  Cmu 0.09;
36  C1 1.44;
37  C2 1.92;
38  C3 -0.33; // only for compressible
39  C4 0.1;
40  sigmak 1.0; // only for compressible
41  sigmaEps 1.3;
42  Prt 1.0; // only for compressible
43  }
44  @endverbatim
45 
46  The turbulence source term \f$ G_{R} \f$ appears in the
47  \f$ \kappa-\epsilon \f$ equation for the generation of turbulence due to
48  interaction with unresolved obstacles.
49 
50  In the \f$ \epsilon \f$ equation \f$ C_{1} G_{R} \f$ is added as a source
51  term.
52 
53  In the \f$ \kappa \f$ equation \f$ G_{R} \f$ is added as a source term.
54 
55 SourceFiles
56  PDRkEpsilon.C
57 
58 \*---------------------------------------------------------------------------*/
59 
60 #ifndef compressible_PDRkEpsilon_H
61 #define compressible_PDRkEpsilon_H
62 
63 #include "kEpsilon.H"
65 
66 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
67 
68 namespace Foam
69 {
70 namespace compressible
71 {
72 namespace RASModels
73 {
74 
75 /*---------------------------------------------------------------------------*\
76  Class PDRkEpsilon Declaration
77 \*---------------------------------------------------------------------------*/
78 
79 class PDRkEpsilon
80 :
82  <
83  EddyDiffusivity
84  <
85  compressible::turbulenceModel
86  >
87  >
88 {
89  // Private data
90 
91  // Model coefficients
93 
94 
95 public:
96 
97  //- Runtime type information
98  TypeName("PDRkEpsilon");
99 
100 
101  // Constructors
102 
103  //- Construct from components
105  (
106  const geometricOneField& alpha,
107  const volScalarField& rho,
108  const volVectorField& U,
109  const surfaceScalarField& alphaRhoPhi,
110  const surfaceScalarField& phi,
111  const fluidThermo& thermophysicalModel,
112  const word& turbulenceModelName = turbulenceModel::typeName,
113  const word& modelName = typeName
114  );
115 
116 
117  //- Destructor
118  virtual ~PDRkEpsilon();
119 
120 
121  // Member Functions
122 
123  //- Solve the turbulence equations and correct the turbulence viscosity
124  void correct();
125 
126  //- Read turbulenceProperties dictionary
127  bool read();
128 };
129 
130 
131 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
132 
133 } // End namespace RASModels
134 } // End namespace compressible
135 } // End namespace Foam
136 
137 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
138 
139 #endif
140 
141 // ************************************************************************* //
Standard k-epsilon turbulence model with additional source terms corresponding to PDR basic drag mode...
Definition: PDRkEpsilon.H:78
surfaceScalarField & phi
PDRkEpsilon(const geometricOneField &alpha, const volScalarField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const fluidThermo &thermophysicalModel, const word &turbulenceModelName=turbulenceModel::typeName, const word &modelName=typeName)
Construct from components.
bool read()
Read turbulenceProperties dictionary.
A class representing the concept of a GeometricField of 1 used to avoid unnecessary manipulations for...
Standard k-epsilon turbulence model for incompressible and compressible flows including rapid distort...
Definition: kEpsilon.H:83
A class for handling words, derived from string.
Definition: word.H:59
Fundamental fluid thermodynamic properties.
Definition: fluidThermo.H:49
U
Definition: pEqn.H:72
void correct()
Solve the turbulence equations and correct the turbulence viscosity.
virtual tmp< volScalarField > alpha() const
Thermal diffusivity for enthalpy of mixture [kg/m/s].
TypeName("PDRkEpsilon")
Runtime type information.
Namespace for OpenFOAM.