continuousGasKEqn.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 | Copyright (C) 2013-2016 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::continuousGasKEqn
26 
27 Group
28  grpLESTurbulence
29 
30 Description
31  One-equation SGS model for the gas-phase in a two-phase system
32  supporting phase-inversion.
33 
34  In the limit that the gas-phase fraction approaches zero a contribution from
35  the other phase is blended into the k-equation up to the phase-fraction of
36  alphaInversion at which point phase-inversion is considered to have occurred
37  and the model reverts to the pure single-phase form.
38 
39  This model is unpublished and is provided as a stable numerical framework
40  on which a more physical model may be built.
41 
42  The default model coefficients are
43  \verbatim
44  continuousKEqnCoeffs
45  {
46  Ck 0.094;
47  Ce 1.048;
48  alphaInversion 0.7;
49  }
50  \endverbatim
51 
52 SourceFiles
53  continuousGasKEqn.C
54 
55 \*---------------------------------------------------------------------------*/
56 
57 #ifndef continuousGasKEqn_H
58 #define continuousGasKEqn_H
59 
60 #include "kEqn.H"
61 
62 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
63 
64 namespace Foam
65 {
66 namespace LESModels
67 {
68 
69 /*---------------------------------------------------------------------------*\
70  Class continuousGasKEqn Declaration
71 \*---------------------------------------------------------------------------*/
72 
73 template<class BasicTurbulenceModel>
75 :
76  public kEqn<BasicTurbulenceModel>
77 {
78  // Private data
79 
80  mutable const turbulenceModel *liquidTurbulencePtr_;
81 
82 
83  // Private Member Functions
84 
85  // Disallow default bitwise copy construct and assignment
87  void operator=(const continuousGasKEqn&);
88 
89 
90 protected:
91 
92  // Protected data
93 
94  // Model coefficients
95 
97 
98 
99  // Protected Member Functions
100 
101  //- Return the turbulence model for the liquid phase
102  const turbulenceModel& liquidTurbulence() const;
103 
105  virtual tmp<fvScalarMatrix> kSource() const;
106 
107 
108 public:
110  typedef typename BasicTurbulenceModel::alphaField alphaField;
111  typedef typename BasicTurbulenceModel::rhoField rhoField;
112  typedef typename BasicTurbulenceModel::transportModel transportModel;
113 
114 
115  //- Runtime type information
116  TypeName("continuousGasKEqn");
117 
118 
119  // Constructors
120 
121  //- Construct from components
123  (
124  const alphaField& alpha,
125  const rhoField& rho,
126  const volVectorField& U,
127  const surfaceScalarField& alphaRhoPhi,
128  const surfaceScalarField& phi,
129  const transportModel& transport,
130  const word& propertiesName = turbulenceModel::propertiesName,
131  const word& type = typeName
132  );
133 
134 
135  //- Destructor
136  virtual ~continuousGasKEqn()
137  {}
138 
139 
140  // Member Functions
141 
142  //- Read model coefficients if they have changed
143  virtual bool read();
144 };
145 
146 
147 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
148 
149 } // End namespace LESModels
150 } // End namespace Foam
151 
152 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
153 
154 #ifdef NoRepository
155  #include "continuousGasKEqn.C"
156 #endif
157 
158 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
159 
160 #endif
161 
162 // ************************************************************************* //
virtual tmp< fvScalarMatrix > kSource() const
surfaceScalarField & phi
U
Definition: pEqn.H:83
const turbulenceModel & liquidTurbulence() const
Return the turbulence model for the liquid phase.
Abstract base class for turbulence models (RAS, LES and laminar).
One equation eddy-viscosity model.
Definition: kEqn.H:74
static const word propertiesName
Default name of the turbulence properties dictionary.
A class for handling words, derived from string.
Definition: word.H:59
BasicTurbulenceModel::alphaField alphaField
virtual bool read()
Read model coefficients if they have changed.
One-equation SGS model for the gas-phase in a two-phase system supporting phase-inversion.
TypeName("continuousGasKEqn")
Runtime type information.
BasicTurbulenceModel::transportModel transportModel
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
Definition: POSIX.C:461
virtual ~continuousGasKEqn()
Destructor.
A class for managing temporary objects.
Definition: PtrList.H:54
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
BasicTurbulenceModel::rhoField rhoField
Namespace for OpenFOAM.
tmp< volScalarField > phaseTransferCoeff() const