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-------------------------------------------------------------------------------
10License
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
26Class
27 Foam::diameterModels::nucleationModels::wallBoiling
28
29Description
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
37SourceFiles
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
50namespace Foam
51{
52namespace diameterModels
53{
54namespace nucleationModels
55{
56
57/*---------------------------------------------------------------------------*\
58 Class wallBoiling Declaration
59\*---------------------------------------------------------------------------*/
61class 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
74public:
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// ************************************************************************* //
Base class for nucleation models.
const populationBalanceModel & popBal() const
Return reference to the populationBalanceModel.
Wall-boiling model which requires a velocityGroup (i.e. phase) to be specified in which the nucleatio...
Definition: wallBoiling.H:63
TypeName("wallBoiling")
Runtime type information.
virtual void correct()
Correct diameter independent expressions.
Definition: wallBoiling.C:93
virtual void addToNucleationRate(volScalarField &nucleationRate, const label i)
Add to nucleationRate.
Definition: wallBoiling.C:150
Class that solves the univariate population balance equation by means of a class method (also called ...
This diameterModel is intended for use with a populationBalanceModel in order to simulate polydispers...
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:126
Namespace for OpenFOAM.
dictionary dict
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition: typeInfo.H:73