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-2020 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 "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 departureDiameterModel Declaration
54 \*---------------------------------------------------------------------------*/
55 
57 {
58 public:
59 
60  //- Runtime type information
61  TypeName("departureDiameterModel");
62 
63 
64  //- Declare runtime construction
66  (
67  autoPtr,
69  dictionary,
70  (
71  const dictionary& dict
72  ),
73  (dict)
74  );
75 
76 
77  // Constructors
78 
79  //- Construct null
81 
82  //- Copy constructor
84 
85  //- Construct and return a clone
86  virtual autoPtr<departureDiameterModel> clone() const = 0;
87 
88 
89  // Selectors
90 
91  //- Select null constructed
93 
94 
95  //- Destructor
96  virtual ~departureDiameterModel();
97 
98 
99  // Member Functions
100 
101  //- Calculate and return the departure diameter field
103  (
104  const phaseModel& liquid,
105  const phaseModel& vapor,
106  const label patchi,
107  const scalarField& Tl,
108  const scalarField& Tsatw,
109  const scalarField& L
110  ) const = 0;
111 
112  virtual void write(Ostream& os) const;
113 
114 
115  // Member Operators
116 
117  //- Disallow default bitwise assignment
118  void operator=(const departureDiameterModel&) = delete;
119 };
120 
121 
122 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
123 } // End namespace wallBoilingModels
124 } // End namespace Foam
125 
126 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
127 
128 #endif
129 
130 // ************************************************************************* //
Generic thermophysical properties class for a liquid in which the functions and coefficients for each...
Definition: liquid.H:50
static autoPtr< departureDiameterModel > New(const dictionary &dict)
Select null constructed.
dictionary dict
Base class for bubble departure diameter models.
declareRunTimeSelectionTable(autoPtr, departureDiameterModel, dictionary,(const dictionary &dict),(dict))
Declare runtime construction.
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:156
virtual void write(Ostream &os) const
void operator=(const departureDiameterModel &)=delete
Disallow default bitwise assignment.
virtual autoPtr< departureDiameterModel > clone() const =0
Construct and return a clone.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Definition: Ostream.H:54
TypeName("departureDiameterModel")
Runtime type information.
virtual tmp< scalarField > dDeparture(const phaseModel &liquid, const phaseModel &vapor, const label patchi, const scalarField &Tl, const scalarField &Tsatw, const scalarField &L) const =0
Calculate and return the departure diameter field.
label patchi
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: PtrList.H:52
Macros to ease declaration of run-time selection tables.
A class for managing temporary objects.
Definition: PtrList.H:53
Single incompressible phase derived from the phase-fraction. Used as part of the multiPhaseMixture fo...
Definition: phaseModel.H:53
Namespace for OpenFOAM.