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