NicenoKEqn.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::NicenoKEqn
26 
27 Description
28  One-equation SGS model for the continuous phase in a two-phase system
29  including bubble-generated turbulence.
30 
31  Reference:
32  \verbatim
33  Niceno, B., Dhotre, M. T., & Deen, N. G. (2008).
34  One-equation sub-grid scale (SGS) modelling for
35  Euler–Euler large eddy simulation (EELES) of dispersed bubbly flow.
36  Chemical Engineering Science, 63(15), 3923-3931.
37  \endverbatim
38 
39  The default model coefficients are:
40  \verbatim
41  NicenoKEqnCoeffs
42  {
43  Ck 0.094;
44  Ce 1.048;
45  alphaInversion 0.3;
46  Cp Ck;
47  Cmub 0.6;
48  }
49  \endverbatim
50 
51 SourceFiles
52  NicenoKEqn.C
53 
54 \*---------------------------------------------------------------------------*/
55 
56 #ifndef NicenoKEqn_H
57 #define NicenoKEqn_H
58 
59 #include "kEqn.H"
60 
61 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
62 
63 namespace Foam
64 {
65 namespace LESModels
66 {
67 
68 /*---------------------------------------------------------------------------*\
69  Class NicenoKEqn Declaration
70 \*---------------------------------------------------------------------------*/
71 
72 template<class BasicMomentumTransportModel>
73 class NicenoKEqn
74 :
75  public kEqn<BasicMomentumTransportModel>
76 {
77  // Private Data
78 
80  *gasTurbulencePtr_;
81 
82 
83  // Private Member Functions
84 
85  //- Return the turbulence model for the gas phase
86  const phaseCompressibleMomentumTransportModel& gasTurbulence() const;
87 
88 
89 protected:
90 
91  // Protected data
92 
93  // Model coefficients
94 
98 
99 
100  // Protected Member Functions
101 
102  virtual void correctNut();
105  virtual tmp<fvScalarMatrix> kSource() const;
106 
107 
108 public:
110  typedef typename BasicMomentumTransportModel::alphaField alphaField;
111  typedef typename BasicMomentumTransportModel::rhoField rhoField;
112 
113 
114  //- Runtime type information
115  TypeName("NicenoKEqn");
116 
117 
118  // Constructors
119 
120  //- Construct from components
121  NicenoKEqn
122  (
123  const alphaField& alpha,
124  const rhoField& rho,
125  const volVectorField& U,
126  const surfaceScalarField& alphaRhoPhi,
127  const surfaceScalarField& phi,
128  const viscosity& viscosity,
129  const word& type = typeName
130  );
131 
132  //- Disallow default bitwise copy construction
133  NicenoKEqn(const NicenoKEqn&) = delete;
134 
135 
136  //- Destructor
137  virtual ~NicenoKEqn()
138  {}
139 
140 
141  // Member Functions
142 
143  //- Read model coefficients if they have changed
144  virtual bool read();
145 
146 
147  // Member Operators
148 
149  //- Disallow default bitwise assignment
150  void operator=(const NicenoKEqn&) = delete;
151 };
152 
153 
154 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
155 
156 } // End namespace LESModels
157 } // End namespace Foam
158 
159 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
160 
161 #ifdef NoRepository
162  #include "NicenoKEqn.C"
163 #endif
164 
165 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
166 
167 #endif
168 
169 // ************************************************************************* //
BasicMomentumTransportModel::rhoField rhoField
Definition: NicenoKEqn.H:110
Templated abstract base class for multiphase compressible turbulence models.
U
Definition: pEqn.H:72
volScalarField alpha(IOobject("alpha", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
dimensionedScalar Cmub_
Definition: NicenoKEqn.H:96
dimensionedScalar Cp_
Definition: NicenoKEqn.H:95
One equation eddy-viscosity model.
Definition: kEqn.H:71
void operator=(const NicenoKEqn &)=delete
Disallow default bitwise assignment.
virtual ~NicenoKEqn()
Destructor.
Definition: NicenoKEqn.H:136
virtual bool read()
Read model coefficients if they have changed.
Definition: NicenoKEqn.C:106
A class for handling words, derived from string.
Definition: word.H:59
tmp< volScalarField > bubbleG() const
Definition: NicenoKEqn.C:175
tmp< volScalarField > phaseTransferCoeff() const
Definition: NicenoKEqn.C:201
phi
Definition: correctPhi.H:3
BasicMomentumTransportModel::alphaField alphaField
Definition: NicenoKEqn.H:109
virtual tmp< fvScalarMatrix > kSource() const
Definition: NicenoKEqn.C:223
NicenoKEqn(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.
Definition: NicenoKEqn.C:43
Abstract base class for all fluid physical properties.
Definition: viscosity.H:49
One-equation SGS model for the continuous phase in a two-phase system including bubble-generated turb...
Definition: NicenoKEqn.H:72
TypeName("NicenoKEqn")
Runtime type information.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
Definition: POSIX.C:488
A class for managing temporary objects.
Definition: PtrList.H:53
virtual void correctNut()
Definition: NicenoKEqn.C:155
Namespace for OpenFOAM.
dimensionedScalar alphaInversion_
Definition: NicenoKEqn.H:94