nucleation.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) 2024 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::fv::nucleation
26 
27 Description
28  Mix-in interface for nucleation models. Provides access to properties of
29  the nucleation process, such as diameter and rate of production of nuclei.
30 
31 SourceFiles
32  nucleation.C
33 
34 \*---------------------------------------------------------------------------*/
35 
36 #ifndef nucleation_H
37 #define nucleation_H
38 
39 #include "volFieldsFwd.H"
40 
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 
43 namespace Foam
44 {
45 
46 template<class Type, class GeoMesh>
47 class DimensionedField;
48 
49 namespace fv
50 {
51 
52 /*---------------------------------------------------------------------------*\
53  Class nucleation Declaration
54 \*---------------------------------------------------------------------------*/
55 
56 class nucleation
57 {
58 public:
59 
60  //- Runtime type information
61  TypeName("nucleation");
62 
63 
64  // Constructors
65 
66  //- Default construct
67  nucleation();
68 
69 
70  // Destructor
71  virtual ~nucleation();
72 
73 
74  // Member Functions
75 
76  // Sources
77 
78  //- Return the diameter of nuclei
79  virtual tmp<DimensionedField<scalar, volMesh>> d() const = 0;
80 
81  //- Return the number rate at which nuclei are generated
82  virtual tmp<DimensionedField<scalar, volMesh>> nDot() const = 0;
83 
84  //- Return the mass transfer rate
85  virtual tmp<DimensionedField<scalar, volMesh>> mDot() const = 0;
86 };
87 
88 
89 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
90 
91 } // End namespace fv
92 } // End namespace Foam
93 
94 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
95 
96 #endif
97 
98 // ************************************************************************* //
Mix-in interface for nucleation models. Provides access to properties of the nucleation process,...
Definition: nucleation.H:56
virtual tmp< DimensionedField< scalar, volMesh > > d() const =0
Return the diameter of nuclei.
virtual tmp< DimensionedField< scalar, volMesh > > nDot() const =0
Return the number rate at which nuclei are generated.
TypeName("nucleation")
Runtime type information.
virtual ~nucleation()
Definition: nucleation.C:47
nucleation()
Default construct.
Definition: nucleation.C:41
virtual tmp< DimensionedField< scalar, volMesh > > mDot() const =0
Return the mass transfer rate.
A class for managing temporary objects.
Definition: tmp.H:55
Namespace for OpenFOAM.
labelList fv(nPoints)