HuaXu.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) 2018-2021 OpenCFD Ltd
9 -------------------------------------------------------------------------------
10 License
11  This file is part of OpenFOAM.
12 
13  OpenFOAM is free software: you can redistribute it and/or modify it
14  under the terms of the GNU General Public License as published by
15  the Free Software Foundation, either version 3 of the License, or
16  (at your option) any later version.
17 
18  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21  for more details.
22 
23  You should have received a copy of the GNU General Public License
24  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25 
26 Class
27  Foam::wallBoilingModels::CHFModels::HuaXu
28 
29 Description
30  A critical heat flux (CHF) sub-cooling correlation model
31  based on Hua-Xu (2000) for boiling flows.
32 
33  Reference:
34  \verbatim
35  Hua, T. C., & Xu, J. J. (2000).
36  Quenching boiling in subcooled liquid nitrogen
37  for solidification of aqueous materials.
38  Materials Science and Engineering: A, 292(2), 169-172.
39  DOI:10.1016/S0921-5093(00)01004-2
40  \endverbatim
41 
42 Usage
43  Example of the model specification:
44  \verbatim
45  CHFSubCoolModel
46  {
47  // Mandatory entries
48  type HuaXu;
49 
50  // Optional entries
51  Kburn <scalar>;
52  }
53  \endverbatim
54 
55  where the entries mean:
56  \table
57  Property | Description | Type | Reqd | Deflt
58  type | Type name: HuaXu | word | yes | -
59  Kburn | Burn out factor | scalar | no | 1.5
60  \endtable
61 
62 SourceFiles
63  HuaXu.C
64 
65 \*---------------------------------------------------------------------------*/
66 
67 #ifndef HuaXu_H
68 #define HuaXu_H
69 
70 #include "CHFSubCoolModel.H"
71 
72 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
73 
74 namespace Foam
75 {
76 namespace wallBoilingModels
77 {
78 namespace CHFModels
79 {
80 
81 /*---------------------------------------------------------------------------*\
82  Class HuaXu Declaration
83 \*---------------------------------------------------------------------------*/
84 
85 class HuaXu
86 :
87  public CHFSubCoolModel
88 {
89  // Private Data
90 
91  //- Burn out factor
92  scalar Kburn_;
93 
94 
95  // Private Member Functions
96 
97  //- No copy construct
98  HuaXu(const HuaXu&) = delete;
99 
100  //- No copy assignment
101  void operator=(const HuaXu&) = delete;
102 
103 
104 public:
105 
106  //- Runtime type information
107  TypeName("HuaXu");
108 
109 
110  // Constructors
111 
112  //- Construct from a dictionary
113  HuaXu(const dictionary& dict);
114 
115 
116  //- Destructor
117  virtual ~HuaXu() = default;
118 
119 
120  // Member Functions
121 
122  //- Calculate and return the nucleation-site density
124  (
125  const phaseModel& liquid,
126  const phaseModel& vapor,
127  const label patchi,
128  const scalarField& Tl,
129  const scalarField& Tsatw,
130  const scalarField& L
131  ) const;
132 
133  // I-O
134 
135  //- Write
136  virtual void write(Ostream& os) const;
137 };
138 
139 
140 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
141 
142 } // End namespace CHFModels
143 } // End namespace wallBoilingModels
144 } // End namespace Foam
145 
146 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
147 
148 #endif
149 
150 // ************************************************************************* //
Foam::phaseModel
Single incompressible phase derived from the phase-fraction. Used as part of the multiPhaseMixture fo...
Definition: phaseModel.H:54
L
const vector L(dict.get< vector >("L"))
Foam::wallBoilingModels::CHFSubCoolModel
Definition: CHFSubCoolModel.H:57
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
CHFSubCoolModel
Base class for critical heat flux (CHF) sub-cooling correlation models for boiling flows.
Foam::wallBoilingModels::CHFModels::HuaXu::write
virtual void write(Ostream &os) const
Write.
Definition: HuaXu.C:126
Foam::wallBoilingModels::CHFModels::HuaXu::~HuaXu
virtual ~HuaXu()=default
Destructor.
Foam::Field< scalar >
Foam::wallBoilingModels::CHFModels::HuaXu::TypeName
TypeName("HuaXu")
Runtime type information.
CHFSubCoolModel.H
dict
dictionary dict
Definition: searchingEngine.H:14
Foam::wallBoilingModels::CHFModels::HuaXu
A critical heat flux (CHF) sub-cooling correlation model based on Hua-Xu (2000) for boiling flows.
Definition: HuaXu.H:102
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::CHFModels::HuaXu::CHFSubCool
virtual tmp< scalarField > CHFSubCool(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: HuaXu.C:70
Foam::Ostream
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:56