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