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-2015 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 
81 
82 
83  // Private Member Functions
84 
85  // Disallow default bitwise copy construct and assignment
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:
109 
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 // ************************************************************************* //
Foam::LESModels::continuousGasKEqn::alphaField
BasicTurbulenceModel::alphaField alphaField
Definition: continuousGasKEqn.H:109
Foam::word
A class for handling words, derived from string.
Definition: word.H:59
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:118
phi
surfaceScalarField & phi
Definition: setRegionFluidFields.H:8
Foam::constant::atomic::alpha
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
Definition: readThermalProperties.H:216
Foam::LESModels::continuousGasKEqn::kSource
virtual tmp< fvScalarMatrix > kSource() const
Definition: continuousGasKEqn.C:154
Foam::LESModels::continuousGasKEqn::~continuousGasKEqn
virtual ~continuousGasKEqn()
Destructor.
Definition: continuousGasKEqn.H:135
Foam::turbulenceModel::propertiesName
static const word propertiesName
Default name of the turbulence properties dictionary.
Definition: turbulenceModel.H:97
continuousGasKEqn.C
Foam::LESModels::continuousGasKEqn::read
virtual bool read()
Read model coefficients if they have changed.
Definition: continuousGasKEqn.C:86
Foam::LESModels::continuousGasKEqn
One-equation SGS model for the gas-phase in a two-phase system supporting phase-inversion.
Definition: continuousGasKEqn.H:73
U
U
Definition: pEqn.H:46
Foam::LESModels::kEqn
One equation eddy-viscosity model.
Definition: kEqn.H:74
Foam::LESModels::continuousGasKEqn::phaseTransferCoeff
tmp< volScalarField > phaseTransferCoeff() const
Definition: continuousGasKEqn.C:131
Foam::LESModels::continuousGasKEqn::liquidTurbulence
const turbulenceModel & liquidTurbulence() const
Return the turbulence model for the liquid phase.
Definition: continuousGasKEqn.C:103
Foam::LESModels::continuousGasKEqn::TypeName
TypeName("continuousGasKEqn")
Runtime type information.
Foam::turbulenceModel
Abstract base class for turbulence models (RAS, LES and laminar).
Definition: turbulenceModel.H:60
kEqn.H
Foam::dimensioned
Generic dimensioned Type class.
Definition: dimensionedScalarFwd.H:41
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
Foam::LESModels::continuousGasKEqn::continuousGasKEqn
continuousGasKEqn(const continuousGasKEqn &)
rho
rho
Definition: pEqn.H:3
Foam::LESModels::continuousGasKEqn::rhoField
BasicTurbulenceModel::rhoField rhoField
Definition: continuousGasKEqn.H:110
Foam::LESModels::continuousGasKEqn::transportModel
BasicTurbulenceModel::transportModel transportModel
Definition: continuousGasKEqn.H:111
Foam::LESModels::continuousGasKEqn::alphaInversion_
dimensionedScalar alphaInversion_
Definition: continuousGasKEqn.H:95
Foam::type
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
Definition: POSIX.C:588
Foam::GeometricField
Generic GeometricField class.
Definition: surfaceFieldsFwd.H:52
Foam::LESModels::continuousGasKEqn::operator=
continuousGasKEqn & operator=(const continuousGasKEqn &)
Foam::LESModels::continuousGasKEqn::liquidTurbulencePtr_
const turbulenceModel * liquidTurbulencePtr_
Definition: continuousGasKEqn.H:79