SmagorinskyZhang.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) 2013-2019 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::LESModels::SmagorinskyZhang
26 
27 Description
28  The Smagorinsky SGS model including bubble-generated turbulence
29 
30  Reference:
31  \verbatim
32  Zhang, D., Deen, N. G., & Kuipers, J. A. M. (2006).
33  Numerical simulation of the dynamic flow behavior in a bubble column:
34  a study of closures for turbulence and interface forces.
35  Chemical Engineering Science, 61(23), 7593-7608.
36  \endverbatim
37 
38  The default model coefficients are
39  \verbatim
40  SmagorinskyZhangCoeffs
41  {
42  Ck 0.094;
43  Ce 1.048;
44  Cmub 0.6;
45  }
46  \endverbatim
47 
48 SourceFiles
49  SmagorinskyZhang.C
50 
51 \*---------------------------------------------------------------------------*/
52 
53 #ifndef SmagorinskyZhang_H
54 #define SmagorinskyZhang_H
55 
56 #include "LESModel.H"
57 #include "eddyViscosity.H"
58 
59 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
60 
61 namespace Foam
62 {
63 namespace LESModels
64 {
65 
66 /*---------------------------------------------------------------------------*\
67  Class SmagorinskyZhang Declaration
68 \*---------------------------------------------------------------------------*/
69 
70 template<class BasicTurbulenceModel>
71 class SmagorinskyZhang
72 :
73  public Smagorinsky<BasicTurbulenceModel>
74 {
75  // Private Data
76 
78  <
79  typename BasicTurbulenceModel::transportModel
80  > *gasTurbulencePtr_;
81 
82 
83  // Private Member Functions
84 
85  //- Return the turbulence model for the gas phase
87  <
88  typename BasicTurbulenceModel::transportModel
89  >&
90  gasTurbulence() const;
91 
92 
93 protected:
94 
95  // Protected data
96 
97  // Model coefficients
98 
100 
101 
102  // Protected Member Functions
103 
104  virtual void correctNut();
105 
106 
107 public:
109  typedef typename BasicTurbulenceModel::alphaField alphaField;
110  typedef typename BasicTurbulenceModel::rhoField rhoField;
111  typedef typename BasicTurbulenceModel::transportModel transportModel;
112 
113 
114  //- Runtime type information
115  TypeName("SmagorinskyZhang");
116 
117 
118  // Constructors
119 
120  //- Construct from components
122  (
123  const alphaField& alpha,
124  const rhoField& rho,
125  const volVectorField& U,
126  const surfaceScalarField& alphaRhoPhi,
127  const surfaceScalarField& phi,
128  const transportModel& transport,
129  const word& propertiesName = turbulenceModel::propertiesName,
130  const word& type = typeName
131  );
132 
133  //- Disallow default bitwise copy construction
134  SmagorinskyZhang(const SmagorinskyZhang&) = delete;
135 
136 
137  //- Destructor
138  virtual ~SmagorinskyZhang()
139  {}
140 
141 
142  // Member Functions
143 
144  //- Read model coefficients if they have changed
145  virtual bool read();
146 
147 
148  // Member Operators
149 
150  //- Disallow default bitwise assignment
151  void operator=(const SmagorinskyZhang&) = delete;
152 };
153 
154 
155 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
156 
157 } // End namespace LESModels
158 } // End namespace Foam
159 
160 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
161 
162 #ifdef NoRepository
163  #include "SmagorinskyZhang.C"
164 #endif
165 
166 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
167 
168 #endif
169 
170 // ************************************************************************* //
SmagorinskyZhang(const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport, const word &propertiesName=turbulenceModel::propertiesName, const word &type=typeName)
Construct from components.
BasicTurbulenceModel::transportModel transportModel
The Smagorinsky SGS model including bubble-generated turbulence.
surfaceScalarField & phi
The Smagorinsky SGS model.
Definition: Smagorinsky.H:86
BasicTurbulenceModel::rhoField rhoField
static const word propertiesName
Default name of the turbulence properties dictionary.
A class for handling words, derived from string.
Definition: word.H:59
virtual ~SmagorinskyZhang()
Destructor.
Templated abstract base class for multiphase compressible turbulence models.
virtual bool read()
Read model coefficients if they have changed.
U
Definition: pEqn.H:72
void operator=(const SmagorinskyZhang &)=delete
Disallow default bitwise assignment.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
Definition: POSIX.C:488
TypeName("SmagorinskyZhang")
Runtime type information.
volScalarField alpha(IOobject("alpha", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
virtual void correctNut()
Update the SGS eddy viscosity.
BasicTurbulenceModel::alphaField alphaField
Namespace for OpenFOAM.