LemmertChawla.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration |
5  \\ / A nd | www.openfoam.com
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8  Copyright (C) 2016-2018 OpenFOAM Foundation
9  Copyright (C) 2021 OpenCFD Ltd.
10 -------------------------------------------------------------------------------
11 License
12  This file is part of OpenFOAM.
13 
14  OpenFOAM is free software: you can redistribute it and/or modify it
15  under the terms of the GNU General Public License as published by
16  the Free Software Foundation, either version 3 of the License, or
17  (at your option) any later version.
18 
19  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22  for more details.
23 
24  You should have received a copy of the GNU General Public License
25  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26 
27 Class
28  Foam::wallBoilingModels::nucleationSiteModels::LemmertChawla
29 
30 Description
31  A model for nucleation site density based on
32  Lemmert-Chawla (1977) function and
33  Egorov-Menter (2004) correlation for boiling flows.
34 
35  Reference:
36  \verbatim
37  Lemmert, M., & Chawla, J. M. (1977).
38  Influence of flow velocity on surface boiling heat transfer coefficient.
39  Heat Transfer in Boiling, 237, 247.
40 
41  Egorov, Y., & Menter, F. (2004).
42  Experimental implementation of the RPI wall boiling model in CFX-5.6.
43  Staudenfeldweg, 12, 83624.
44  Technical Report ANSYS/TR-04-10, ANSYS Gmbh.
45  \endverbatim
46 
47 Usage
48  Example of the model specification:
49  \verbatim
50  nucleationSiteModel
51  {
52  // Mandatory entries
53  type LemmertChawla;
54 
55  // Optional entries
56  Cn <scalar>;
57  }
58  \endverbatim
59 
60  where the entries mean:
61  \table
62  Property | Description | Type | Reqd | Deflt
63  type | Type name: LemmertChawla | word | yes | -
64  Cn | Coefficient for nucleation site density | scalar | no | 1.0
65  \endtable
66 
67 SourceFiles
68  LemmertChawla.C
69 
70 \*---------------------------------------------------------------------------*/
71 
72 #ifndef LemmertChawla_H
73 #define LemmertChawla_H
74 
75 #include "nucleationSiteModel.H"
76 
77 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
78 
79 namespace Foam
80 {
81 namespace wallBoilingModels
82 {
83 namespace nucleationSiteModels
84 {
85 
86 /*---------------------------------------------------------------------------*\
87  Class LemmertChawla Declaration
88 \*---------------------------------------------------------------------------*/
89 
90 class LemmertChawla
91 :
92  public nucleationSiteModel
93 {
94  // Private Data
95 
96  //- Coefficient for nucleation site density
97  scalar Cn_;
98 
99 
100  // Private Member Functions
101 
102  //- No copy construct
103  LemmertChawla(const LemmertChawla&) = delete;
104 
105  //- No copy assignment
106  void operator=(const LemmertChawla&) = delete;
107 
108 
109 public:
110 
111  //- Runtime type information
112  TypeName("LemmertChawla");
113 
114 
115  // Constructors
116 
117  //- Construct from a dictionary
118  LemmertChawla(const dictionary& dict);
119 
120 
121  //- Destructor
122  virtual ~LemmertChawla() = default;
123 
124 
125  // Member Functions
126 
127  //- Calculate and return the nucleation-site density
128  virtual tmp<scalarField> N
129  (
130  const phaseModel& liquid,
131  const phaseModel& vapor,
132  const label patchi,
133  const scalarField& Tl,
134  const scalarField& Tsatw,
135  const scalarField& L
136  ) const;
137 
138  // I-O
139 
140  //- Write
141  virtual void write(Ostream& os) const;
142 };
143 
144 
145 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
146 
147 } // End namespace nucleationSiteModels
148 } // End namespace wallBoilingModels
149 } // End namespace Foam
150 
151 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
152 
153 #endif
154 
155 // ************************************************************************* //
Foam::phaseModel
Single incompressible phase derived from the phase-fraction. Used as part of the multiPhaseMixture fo...
Definition: phaseModel.H:54
nucleationSiteModel.H
L
const vector L(dict.get< vector >("L"))
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:61
Foam::liquid
Generic thermophysical properties class for a liquid in which the functions and coefficients for each...
Definition: liquid.H:54
Foam::wallBoilingModels::nucleationSiteModel
Base class for nucleation site density models.
Definition: nucleationSiteModel.H:58
Foam::Field< scalar >
Foam::wallBoilingModels::nucleationSiteModels::LemmertChawla
A model for nucleation site density based on Lemmert-Chawla (1977) function and Egorov-Menter (2004) ...
Definition: LemmertChawla.H:107
dict
dictionary dict
Definition: searchingEngine.H:14
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:123
os
OBJstream os(runTime.globalPath()/outputName)
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::wallBoilingModels::nucleationSiteModels::LemmertChawla::N
virtual tmp< scalarField > N(const phaseModel &liquid, const phaseModel &vapor, const label patchi, const scalarField &Tl, const scalarField &Tsatw, const scalarField &L) const
Calculate and return the nucleation-site density.
Definition: LemmertChawla.C:68
Foam::wallBoilingModels::nucleationSiteModels::LemmertChawla::~LemmertChawla
virtual ~LemmertChawla()=default
Destructor.
Foam::wallBoilingModels::nucleationSiteModels::LemmertChawla::TypeName
TypeName("LemmertChawla")
Runtime type information.
Foam::Ostream
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:56
Foam::wallBoilingModels::nucleationSiteModels::LemmertChawla::write
virtual void write(Ostream &os) const
Write.
Definition: LemmertChawla.C:85