wallBoiling.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 | www.openfoam.com
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8  Copyright (C) 2018 OpenFOAM Foundation
9 -------------------------------------------------------------------------------
10 License
11  This file is part of OpenFOAM.
12 
13  OpenFOAM is free software: you can redistribute it and/or modify it
14  under the terms of the GNU General Public License as published by
15  the Free Software Foundation, either version 3 of the License, or
16  (at your option) any later version.
17 
18  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21  for more details.
22 
23  You should have received a copy of the GNU General Public License
24  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25 
26 Class
27  Foam::diameterModels::nucleationModels::wallBoiling
28 
29 Description
30  Wall-boiling model which requires a velocityGroup (i.e. phase) to be
31  specified in which the nucleation occurs. This setting must be consistent
32  with the specifications in the alphatWallBoilingWallFunction. If the
33  departure-diameter lies outside the diameter-range given by the sizeGroups
34  of the corresponding velocityGroup, the solver will give a warning and the
35  nucleation rate will be set to zero.
36 
37 SourceFiles
38  wallBoiling.C
39 
40 \*---------------------------------------------------------------------------*/
41 
42 #ifndef wallBoiling_H
43 #define wallBoiling_H
44 
45 #include "nucleationModel.H"
46 #include "phaseCompressibleTurbulenceModel.H"
47 
48 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
49 
50 namespace Foam
51 {
52 namespace diameterModels
53 {
54 namespace nucleationModels
55 {
56 
57 /*---------------------------------------------------------------------------*\
58  Class wallBoiling Declaration
59 \*---------------------------------------------------------------------------*/
60 
61 class wallBoiling
62 :
63  public nucleationModel
64 {
65  // Private data
66 
67  //- Velocity group in which the nucleation occurs
68  const velocityGroup& velGroup_;
69 
70  //- Pointer to turbulence model
71  const phaseCompressibleTurbulenceModel& turbulence_;
72 
73 
74 public:
75 
76  //- Runtime type information
77  TypeName("wallBoiling");
78 
79  // Constructor
80 
82  (
84  const dictionary& dict
85  );
86 
87 
88  //- Destructor
89  virtual ~wallBoiling() = default;
90 
91 
92  // Member Functions
93 
94  //- Correct diameter independent expressions
95  virtual void correct();
96 
97  //- Add to nucleationRate
98  virtual void addToNucleationRate
99  (
100  volScalarField& nucleationRate,
101  const label i
102  );
103 };
104 
105 
106 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
107 
108 } // End namespace nucleationModels
109 } // End namespace diameterModels
110 } // End namespace Foam
111 
112 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
113 
114 #endif
115 
116 // ************************************************************************* //
dictionary dict
TypeName("wallBoiling")
Runtime type information.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Definition: dictionary.H:129
Class that solves the univariate population balance equation by means of a class method (also called ...
virtual void addToNucleationRate(volScalarField &nucleationRate, const label i)
Add to nucleationRate.
Definition: wallBoiling.C:143
virtual void correct()
Correct diameter independent expressions.
Definition: wallBoiling.C:86
This diameterModel is intended for use with a populationBalanceModel in order to simulate polydispers...
Base class for nucleation models.
Wall-boiling model which requires a velocityGroup (i.e. phase) to be specified in which the nucleatio...
Definition: wallBoiling.H:56
wallBoiling(const populationBalanceModel &popBal, const dictionary &dict)
Definition: wallBoiling.C:50
const populationBalanceModel & popBal() const
Return reference to the populationBalanceModel.
Namespace for OpenFOAM.