KocamustafaogullariIshiiDepartureDiameter.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::departureDiameterModels::
26  KocamustafaogullariIshiiDepartureDiameter
27 
28 Description
29  A correlation for bubble departure diameter.
30 
31  Requires model parameter 'phi': contact angle in degrees.
32 
33  Reference:
34  \verbatim
35  Kocamustafaogullari, G., & Ishii, M. (1983).
36  Interfacial area and nucleation site density in boiling systems.
37  International Journal of Heat and Mass Transfer, 26(9), 1377-1387.
38  \endverbatim
39 
40 SourceFiles
41  KocamustafaogullariIshiiDepartureDiameter.C
42 
43 \*---------------------------------------------------------------------------*/
44 
45 #ifndef KocamustafaogullariIshiiDepartureDiameter_H
46 #define KocamustafaogullariIshiiDepartureDiameter_H
47 
48 #include "departureDiameterModel.H"
50 
51 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
52 
53 namespace Foam
54 {
55 namespace wallBoilingModels
56 {
57 namespace departureDiameterModels
58 {
59 
60 /*---------------------------------------------------------------------------*\
61  Class KocamustafaogullariIshiiDepartureDiameter Declaration
62 \*---------------------------------------------------------------------------*/
63 
65 :
67 {
68  // Private Data
69 
70  //- Contact angle
71  const dimensionedScalar phi_;
72 
73 
74  // Private Member Functions
75 
76  //- Calculate and return the bubble departure diameter
77  template<class ScalarFieldType>
78  tmp<ScalarFieldType> calculate
79  (
80  const fvMesh& mesh,
81  const ScalarFieldType& Tl,
82  const ScalarFieldType& Tsatw,
83  const ScalarFieldType& L,
84  const ScalarFieldType& rhoLiquid,
85  const ScalarFieldType& rhoVapor,
86  const ScalarFieldType& sigma
87  ) const;
88 
89 
90 public:
91 
92  //- Runtime type information
93  TypeName("KocamustafaogullariIshii");
94 
95 
96  // Constructors
97 
98  //- Construct from a dictionary
100 
101  //- Copy construct
103  (
105  );
106 
107  //- Construct and return a clone
108  virtual autoPtr<departureDiameterModel> clone() const
109  {
111  (
113  );
114  }
115 
116 
117  //- Destructor
119 
120 
121  // Member Functions
122 
123  //- Calculate and return the departure diameter field for a wall patch
125  (
126  const phaseModel& liquid,
127  const phaseModel& vapor,
128  const label patchi,
129  const scalarField& Tl,
130  const scalarField& Tsatw,
131  const scalarField& L
132  ) const;
133 
134  //- Calculate and return the departure diameter field for a stationary
135  // phase and fluid interface
137  (
138  const phaseModel& liquid,
139  const phaseModel& vapor,
140  const phaseModel& solid,
141  const volScalarField::Internal& Tf,
142  const volScalarField::Internal& Tsatw,
143  const volScalarField::Internal& L
144  ) const;
145 
146  //- Calculate and return the departure diameter field for a stationary
147  // phase and fluid interface
149  (
150  const phaseModel& liquid,
151  const phaseModel& vapor,
152  const phaseModel& solid,
153  const volScalarField& Tf,
154  const volScalarField& Tsatw,
155  const volScalarField& L
156  ) const;
157 
158  //- Write to stream
159  virtual void write(Ostream& os) const;
160 };
161 
162 
163 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
164 
165 } // End namespace departureDiameterModels
166 } // End namespace wallBoilingModels
167 } // End namespace Foam
168 
169 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
170 
171 #endif
172 
173 // ************************************************************************* //
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
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:96
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.
virtual tmp< scalarField > dDeparture(const phaseModel &liquid, const phaseModel &vapor, const label patchi, const scalarField &Tl, const scalarField &Tsatw, const scalarField &L) const
Calculate and return the departure diameter field for a wall patch.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
label patchi
const dimensionedScalar sigma
Stefan-Boltzmann constant: default SI units: [W/m^2/K^4].
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