departureFrequencyModel.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-2023 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::departureFrequencyModel
26 
27 Description
28  Base class for bubble departure frequency models
29 
30 SourceFiles
31  departureFrequencyModel.C
32  departureFrequencyModelNew.C
33 
34 \*---------------------------------------------------------------------------*/
35 
36 #ifndef departureFrequencyModel_H
37 #define departureFrequencyModel_H
38 
39 #include "volFields.H"
40 #include "dictionary.H"
41 #include "runTimeSelectionTables.H"
42 
44 #include "phaseModel.H"
45 
46 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 
48 namespace Foam
49 {
50 namespace wallBoilingModels
51 {
52 
53 /*---------------------------------------------------------------------------*\
54  Class departureFrequencyModel Declaration
55 \*---------------------------------------------------------------------------*/
56 
58 {
59 public:
60 
61  //- Runtime type information
62  TypeName("departureFrequencyModel");
63 
64 
65  //- Declare runtime construction
67  (
68  autoPtr,
70  dictionary,
71  (const dictionary& dict),
72  (dict)
73  );
74 
75 
76  // Constructors
77 
78  //- Construct null
80 
81  //- Copy construct
83 
84  //- Construct and return a clone
85  virtual autoPtr<departureFrequencyModel> clone() const = 0;
86 
87 
88  // Selectors
89 
90  //- Select null constructed
92 
93 
94  //- Destructor
95  virtual ~departureFrequencyModel();
96 
97 
98  // Member Functions
99 
100  //- Calculate and return the bubble departure frequency
102  (
103  const phaseModel& liquid,
104  const phaseModel& vapour,
105  const label patchi,
106  const scalarField& Tl,
107  const scalarField& Tsatw,
108  const scalarField& L,
109  const scalarField& dDep
110  ) const = 0;
111 
112  //- Calculate and return the bubble departure frequency
114  (
115  const phaseModel& liquid,
116  const phaseModel& vapour,
117  const phaseModel& solid,
118  const volScalarField& Tf,
119  const volScalarField& Tsatw,
120  const volScalarField& L,
121  const volScalarField& dDep
122  ) const = 0;
123 
124  //- Write to stream
125  virtual void write(Ostream& os) const;
126 
127 
128  // Member Operators
129 
130  //- Disallow default bitwise assignment
131  void operator=(const departureFrequencyModel&) = delete;
132 };
133 
134 
135 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
136 
137 } // End namespace wallBoilingModels
138 } // End namespace Foam
139 
140 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
141 
142 #endif
143 
144 // ************************************************************************* //
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 keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:160
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 frequency models.
virtual tmp< scalarField > fDeparture(const phaseModel &liquid, const phaseModel &vapour, const label patchi, const scalarField &Tl, const scalarField &Tsatw, const scalarField &L, const scalarField &dDep) const =0
Calculate and return the bubble departure frequency.
virtual autoPtr< departureFrequencyModel > clone() const =0
Construct and return a clone.
static autoPtr< departureFrequencyModel > New(const dictionary &dict)
Select null constructed.
declareRunTimeSelectionTable(autoPtr, departureFrequencyModel, dictionary,(const dictionary &dict),(dict))
Declare runtime construction.
virtual void write(Ostream &os) const
Write to stream.
TypeName("departureFrequencyModel")
Runtime type information.
void operator=(const departureFrequencyModel &)=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