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-2025 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 "DimensionedFieldFwd.H"
40 #include "volFieldsFwd.H"
41 
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 
44 namespace Foam
45 {
46 namespace fv
47 {
48 
49 /*---------------------------------------------------------------------------*\
50  Class nucleation Declaration
51 \*---------------------------------------------------------------------------*/
52 
53 class nucleation
54 {
55 public:
56 
57  //- Runtime type information
58  TypeName("nucleation");
59 
60 
61  // Constructors
62 
63  //- Default construct
64  nucleation();
65 
66 
67  // Destructor
68  virtual ~nucleation();
69 
70 
71  // Member Functions
72 
73  // Sources
74 
75  //- Return the diameter of nuclei
76  virtual tmp<DimensionedField<scalar, volMesh>> d() const = 0;
77 
78  //- Return the number rate at which nuclei are generated
79  virtual tmp<DimensionedField<scalar, volMesh>> nDot() const = 0;
80 
81  //- Return the mass transfer rate
82  virtual tmp<DimensionedField<scalar, volMesh>> mDot() const = 0;
83 
84  //- Return the nucleation time scale
85  virtual tmp<DimensionedField<scalar, volMesh>> tau() 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:53
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.
virtual tmp< DimensionedField< scalar, volMesh > > tau() const =0
Return the nucleation time scale.
A class for managing temporary objects.
Definition: tmp.H:55
Namespace for OpenFOAM.
labelList fv(nPoints)