TolubinskiKostanchuk.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::departureDiameterModels::TolubinskiKostanchuk
26 
27 Description
28  Tolubinski-Kostanchuk correlation for bubble departure diameter.
29 
30  Reference:
31  \verbatim
32  Tolubinsky, V. I., & Kostanchuk, D. M. (1970).
33  Vapour bubbles growth rate and heat transfer intensity at subcooled
34  water boiling.
35  In International Heat Transfer Conference 4 (Vol. 23). Begel House Inc.
36  \endverbatim
37 
38 SourceFiles
39  TolubinskiKostanchuk.C
40 
41 \*---------------------------------------------------------------------------*/
42 
43 #ifndef TolubinskiKostanchuk_H
44 #define TolubinskiKostanchuk_H
45 
46 #include "departureDiameterModel.H"
47 
48 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
49 
50 namespace Foam
51 {
52 namespace wallBoilingModels
53 {
54 namespace departureDiameterModels
55 {
56 
57 /*---------------------------------------------------------------------------*\
58  Class TolubinskiKostanchuk Declaration
59 \*---------------------------------------------------------------------------*/
60 
62 :
64 {
65  // Private Data
66 
67  //- Coefficient of the temperature term
68  const dimensionedScalar dRef_;
69 
70  //- Maximum diameter
71  const dimensionedScalar dMax_;
72 
73  //- Minimum diameter
74  const dimensionedScalar dMin_;
75 
76 
77  // Private Member Functions
78 
79  //- Calculate and return the bubble departure diameter
80  template<class ScalarFieldType>
81  tmp<ScalarFieldType> calculate
82  (
83  const ScalarFieldType& Tl,
84  const ScalarFieldType& Tsatw
85  ) const;
86 
87 
88 public:
89 
90  //- Runtime type information
91  TypeName("TolubinskiKostanchuk");
92 
93 
94  // Constructors
95 
96  //- Construct from a dictionary
98 
99  //- Copy construct
101 
102  //- Construct and return a clone
103  virtual autoPtr<departureDiameterModel> clone() const
104  {
106  (
107  new TolubinskiKostanchuk(*this)
108  );
109  }
110 
111 
112  //- Destructor
113  virtual ~TolubinskiKostanchuk();
114 
115 
116  // Member Functions
117 
118  //- Calculate and return the departure diameter field for a wall patch
120  (
121  const phaseModel& liquid,
122  const phaseModel& vapour,
123  const label patchi,
124  const scalarField& Tl,
125  const scalarField& Tsatw,
126  const scalarField& L
127  ) const;
128 
129  //- Calculate and return the departure diameter field for a stationary
130  // phase and fluid interface
132  (
133  const phaseModel& liquid,
134  const phaseModel& vapour,
135  const phaseModel& solid,
136  const volScalarField& Tf,
137  const volScalarField& Tsatw,
138  const volScalarField& L
139  ) const;
140 
141  //- Write to stream
142  virtual void write(Ostream& os) const;
143 };
144 
145 
146 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
147 
148 } // End namespace departureDiameterModels
149 } // End namespace wallBoilingModels
150 } // End namespace Foam
151 
152 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
153 
154 #endif
155 
156 // ************************************************************************* //
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: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.
Tolubinski-Kostanchuk correlation for bubble departure diameter.
TolubinskiKostanchuk(const dictionary &dict)
Construct from a dictionary.
TypeName("TolubinskiKostanchuk")
Runtime type information.
virtual autoPtr< departureDiameterModel > clone() const
Construct and return a clone.
virtual tmp< scalarField > dDeparture(const phaseModel &liquid, const phaseModel &vapour, const label patchi, const scalarField &Tl, const scalarField &Tsatw, const scalarField &L) const
Calculate and return the departure diameter field for a wall patch.
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
dictionary dict