nucleationSiteModel.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) 2016-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::wallBoilingModels::nucleationSiteModel
26 
27 Description
28  Base class for nucleation site density models
29 
30 SourceFiles
31  nucleationSiteModel.C
32  nucleationSiteModelNew.C
33 
34 \*---------------------------------------------------------------------------*/
35 
36 #ifndef nucleationSiteModel_H
37 #define nucleationSiteModel_H
38 
39 #include "volFields.H"
40 #include "dictionary.H"
41 #include "runTimeSelectionTables.H"
42 
43 #include "phaseModel.H"
44 
45 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 
47 namespace Foam
48 {
49 namespace wallBoilingModels
50 {
51 
52 /*---------------------------------------------------------------------------*\
53  Class nucleationSiteModel Declaration
54 \*---------------------------------------------------------------------------*/
55 
57 {
58 public:
59 
60  //- Runtime type information
61  TypeName("nucleationSiteModel");
62 
63 
64  //- Declare runtime construction
66  (
67  autoPtr,
69  dictionary,
70  (const dictionary& dict),
71  (dict)
72  );
73 
74 
75  // Constructors
76 
77  //- Construct null
79 
80  //- Copy construct
82 
83  //- Construct and return a clone
84  virtual autoPtr<nucleationSiteModel> clone() const = 0;
85 
86 
87  // Selectors
88 
89  //- Select null constructed
91 
92 
93  //- Destructor
94  virtual ~nucleationSiteModel();
95 
96 
97  // Member Functions
98 
99  //- Calculate and return the nucleation-site density
101  (
102  const phaseModel& liquid,
103  const phaseModel& vapour,
104  const label patchi,
105  const scalarField& Tl,
106  const scalarField& Tsatw,
107  const scalarField& L,
108  const scalarField& dDep,
109  const scalarField& fDep
110  ) const = 0;
111 
112  //- Calculate and return the nucleation-site density
114  (
115  const phaseModel& liquid,
116  const phaseModel& vapor,
117  const phaseModel& solid,
118  const volScalarField::Internal& Tf,
119  const volScalarField::Internal& Tsatw,
120  const volScalarField::Internal& L,
121  const volScalarField::Internal& dDep,
122  const volScalarField::Internal& fDep
123  ) const = 0;
124 
125  //- Calculate and return the nucleation-site density
127  (
128  const phaseModel& liquid,
129  const phaseModel& vapor,
130  const phaseModel& solid,
131  const volScalarField& Tf,
132  const volScalarField& Tsatw,
133  const volScalarField& L,
134  const volScalarField& dDep,
135  const volScalarField& fDep
136  ) const = 0;
137 
138  //- Write to stream
139  virtual void write(Ostream& os) const;
140 
141 
142  // Member Operators
143 
144  //- Disallow default bitwise assignment
145  void operator=(const nucleationSiteModel&) = delete;
146 };
147 
148 
149 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
150 
151 } // End namespace wallBoilingModels
152 } // End namespace Foam
153 
154 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
155 
156 #endif
157 
158 // ************************************************************************* //
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Generic GeometricField class.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:57
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: autoPtr.H:51
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Definition: dictionary.H:162
Generic thermophysical properties class for a liquid in which the functions and coefficients for each...
Definition: liquid.H:53
A class for managing temporary objects.
Definition: tmp.H:55
Base class for nucleation site density models.
TypeName("nucleationSiteModel")
Runtime type information.
declareRunTimeSelectionTable(autoPtr, nucleationSiteModel, dictionary,(const dictionary &dict),(dict))
Declare runtime construction.
static autoPtr< nucleationSiteModel > New(const dictionary &dict)
Select null constructed.
virtual void write(Ostream &os) const
Write to stream.
virtual autoPtr< nucleationSiteModel > clone() const =0
Construct and return a clone.
virtual tmp< scalarField > nucleationSiteDensity(const phaseModel &liquid, const phaseModel &vapour, const label patchi, const scalarField &Tl, const scalarField &Tsatw, const scalarField &L, const scalarField &dDep, const scalarField &fDep) const =0
Calculate and return the nucleation-site density.
void operator=(const nucleationSiteModel &)=delete
Disallow default bitwise assignment.
label patchi
Namespace for OpenFOAM.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Definition: label.H:59
Macros to ease declaration of run-time selection tables.
dictionary dict