constantNucleation.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::constantNucleation
28 
29 Description
30  Constant nucleation rate within all classes. Used for verification and
31  validation of the nucleation formulation implemented in the
32  populationBalanceModel class. Rate is calculated from fvOptions mass source.
33 
34 SourceFiles
35  constant.C
36 
37 \*---------------------------------------------------------------------------*/
38 
39 #ifndef constantNucleation_H
40 #define constantNucleation_H
41 
42 #include "nucleationModel.H"
43 
44 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 
46 namespace Foam
47 {
48 namespace diameterModels
49 {
50 namespace nucleationModels
51 {
52 
53 /*---------------------------------------------------------------------------*\
54  Class constantNucleation Declaration
55 \*---------------------------------------------------------------------------*/
56 
58 :
59  public nucleationModel
60 {
61  // Private data
62 
63  //- Departure diameter
65 
66  //- Velocity group in which the nucleation occurs
67  const velocityGroup& velGroup_;
68 
69 
70 public:
71 
72  //- Runtime type information
73  TypeName("constant");
74 
75  // Constructor
76 
78  (
80  const dictionary& dict
81  );
82 
83 
84  //- Destructor
85  virtual ~constantNucleation() = default;
86 
87 
88  // Member Functions
89 
90  //- Correct diameter independent expressions
91  virtual void correct();
92 
93  //- Add to nucleationRate
94  virtual void addToNucleationRate
95  (
96  volScalarField& nucleationRate,
97  const label i
98  );
99 };
100 
101 
102 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
103 
104 } // End namespace nucleationModels
105 } // End namespace diameterModels
106 } // End namespace Foam
107 
108 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
109 
110 #endif
111 
112 // ************************************************************************* //
Foam::diameterModels::nucleationModels::constantNucleation
Constant nucleation rate within all classes. Used for verification and validation of the nucleation f...
Definition: constantNucleation.H:56
Foam::diameterModels::nucleationModels::constantNucleation::~constantNucleation
virtual ~constantNucleation()=default
Destructor.
Foam::diameterModels::nucleationModel
Base class for nucleation models.
Definition: nucleationModel.H:52
nucleationModel.H
Foam::diameterModels::nucleationModels::constantNucleation::correct
virtual void correct()
Correct diameter independent expressions.
Definition: constantNucleation.C:82
Foam::diameterModels::nucleationModels::constantNucleation::addToNucleationRate
virtual void addToNucleationRate(volScalarField &nucleationRate, const label i)
Add to nucleationRate.
Definition: constantNucleation.C:104
Foam::diameterModels::velocityGroup
This diameterModel is intended for use with a populationBalanceModel in order to simulate polydispers...
Definition: velocityGroup.H:107
dict
dictionary dict
Definition: searchingEngine.H:14
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:123
Foam::diameterModels::nucleationModels::constantNucleation::constantNucleation
constantNucleation(const populationBalanceModel &popBal, const dictionary &dict)
Definition: constantNucleation.C:56
Foam::diameterModels::populationBalanceModel
Class that solves the univariate population balance equation by means of a class method (also called ...
Definition: populationBalanceModel.H:179
Foam::dimensioned< scalar >
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::diameterModels::nucleationModels::constantNucleation::TypeName
TypeName("constant")
Runtime type information.
Foam::GeometricField< scalar, fvPatchField, volMesh >
Foam::diameterModels::nucleationModel::popBal
const populationBalanceModel & popBal() const
Return reference to the populationBalanceModel.
Definition: nucleationModel.H:137