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-2021 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 "Smagorinsky.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 BasicMomentumTransportModel>
71 class SmagorinskyZhang
72 :
73  public Smagorinsky<BasicMomentumTransportModel>
74 {
75  // Private Data
76 
78  *gasTurbulencePtr_;
79 
80 
81  // Private Member Functions
82 
83  //- Return the turbulence model for the gas phase
84  const phaseCompressibleMomentumTransportModel& gasTurbulence() const;
85 
86 
87 protected:
88 
89  // Protected data
90 
91  // Model coefficients
92 
94 
95 
96  // Protected Member Functions
97 
98  virtual void correctNut();
99 
100 
101 public:
102 
103  typedef typename BasicMomentumTransportModel::alphaField alphaField;
104  typedef typename BasicMomentumTransportModel::rhoField rhoField;
105 
106 
107  //- Runtime type information
108  TypeName("SmagorinskyZhang");
109 
110 
111  // Constructors
112 
113  //- Construct from components
115  (
116  const alphaField& alpha,
117  const rhoField& rho,
118  const volVectorField& U,
119  const surfaceScalarField& alphaRhoPhi,
120  const surfaceScalarField& phi,
121  const viscosity& viscosity,
122  const word& type = typeName
123  );
124 
125  //- Disallow default bitwise copy construction
126  SmagorinskyZhang(const SmagorinskyZhang&) = delete;
127 
128 
129  //- Destructor
130  virtual ~SmagorinskyZhang()
131  {}
132 
133 
134  // Member Functions
135 
136  //- Read model coefficients if they have changed
137  virtual bool read();
138 
139 
140  // Member Operators
141 
142  //- Disallow default bitwise assignment
143  void operator=(const SmagorinskyZhang&) = delete;
144 };
145 
146 
147 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
148 
149 } // End namespace LESModels
150 } // End namespace Foam
151 
152 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
153 
154 #ifdef NoRepository
155  #include "SmagorinskyZhang.C"
156 #endif
157 
158 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
159 
160 #endif
161 
162 // ************************************************************************* //
Generic GeometricField class.
BasicMomentumTransportModel::alphaField alphaField
BasicMomentumTransportModel::rhoField rhoField
The Smagorinsky SGS model including bubble-generated turbulence.
BasicMomentumTransportModel::alphaField alphaField
SmagorinskyZhang(const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const viscosity &viscosity, const word &type=typeName)
Construct from components.
virtual ~SmagorinskyZhang()
Destructor.
void operator=(const SmagorinskyZhang &)=delete
Disallow default bitwise assignment.
TypeName("SmagorinskyZhang")
Runtime type information.
virtual void correctNut()
Update the SGS eddy viscosity.
virtual bool read()
Read model coefficients if they have changed.
BasicMomentumTransportModel::rhoField rhoField
The Smagorinsky SGS model.
Definition: Smagorinsky.H:89
Templated abstract base class for multiphase compressible turbulence models.
Abstract base class for all fluid physical properties.
Definition: viscosity.H:50
A class for handling words, derived from string.
Definition: word.H:62
U
Definition: pEqn.H:72
volScalarField alpha(IOobject("alpha", runTime.name(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
Namespace for OpenFOAM.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
Definition: POSIX.C:488