departureDiameterModel.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::departureDiameterModel
26 
27 Description
28  Base class for bubble departure diameter models
29 
30 SourceFiles
31  departureDiameterModel.C
32  departureDiameterModelNew.C
33 
34 \*---------------------------------------------------------------------------*/
35 
36 #ifndef departureDiameterModel_H
37 #define departureDiameterModel_H
38 
39 #include "phaseModel.H"
40 #include "runTimeSelectionTables.H"
41 
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 
44 namespace Foam
45 {
46 namespace wallBoilingModels
47 {
48 
49 /*---------------------------------------------------------------------------*\
50  Class departureDiameterModel Declaration
51 \*---------------------------------------------------------------------------*/
52 
54 {
55 public:
56 
57  //- Runtime type information
58  TypeName("departureDiameterModel");
59 
60 
61  //- Declare runtime construction
63  (
64  autoPtr,
66  dictionary,
67  (const dictionary& dict),
68  (dict)
69  );
70 
71 
72  // Constructors
73 
74  //- Construct null
76 
77  //- Copy constructor
79 
80  //- Construct and return a clone
81  virtual autoPtr<departureDiameterModel> clone() const = 0;
82 
83 
84  // Selectors
85 
86  //- Select null constructed
88 
89 
90  //- Destructor
91  virtual ~departureDiameterModel();
92 
93 
94  // Member Functions
95 
96  //- Calculate and return the departure diameter field for a wall patch
98  (
99  const phaseModel& liquid,
100  const phaseModel& vapour,
101  const label patchi,
102  const scalarField& Tl,
103  const scalarField& Tsatw,
104  const scalarField& L
105  ) const = 0;
106 
107  //- Calculate and return the departure diameter field for a stationary
108  // phase and fluid interface
110  (
111  const phaseModel& liquid,
112  const phaseModel& vapour,
113  const phaseModel& solid,
114  const volScalarField::Internal& Tf,
115  const volScalarField::Internal& Tsatw,
116  const volScalarField::Internal& L
117  ) const = 0;
118 
119  //- Calculate and return the departure diameter field for a stationary
120  // phase and fluid interface
122  (
123  const phaseModel& liquid,
124  const phaseModel& vapour,
125  const phaseModel& solid,
126  const volScalarField& Tf,
127  const volScalarField& Tsatw,
128  const volScalarField& L
129  ) const = 0;
130 
131  //- Write to stream
132  virtual void write(Ostream& os) const;
133 
134 
135  // Member Operators
136 
137  //- Disallow default bitwise assignment
138  void operator=(const departureDiameterModel&) = delete;
139 };
140 
141 
142 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
143 
144 } // End namespace wallBoilingModels
145 } // End namespace Foam
146 
147 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
148 
149 #endif
150 
151 // ************************************************************************* //
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 bubble departure diameter models.
declareRunTimeSelectionTable(autoPtr, departureDiameterModel, dictionary,(const dictionary &dict),(dict))
Declare runtime construction.
void operator=(const departureDiameterModel &)=delete
Disallow default bitwise assignment.
virtual tmp< scalarField > dDeparture(const phaseModel &liquid, const phaseModel &vapour, const label patchi, const scalarField &Tl, const scalarField &Tsatw, const scalarField &L) const =0
Calculate and return the departure diameter field for a wall patch.
virtual void write(Ostream &os) const
Write to stream.
static autoPtr< departureDiameterModel > New(const dictionary &dict)
Select null constructed.
TypeName("departureDiameterModel")
Runtime type information.
virtual autoPtr< departureDiameterModel > clone() const =0
Construct and return a clone.
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