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-------------------------------------------------------------------------------
10License
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
26Class
27 Foam::wallBoilingModels::CHFModels::HuaXu
28
29Description
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
42Usage
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
62SourceFiles
63 HuaXu.C
64
65\*---------------------------------------------------------------------------*/
66
67#ifndef HuaXu_H
68#define HuaXu_H
69
70#include "CHFSubCoolModel.H"
71
72// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
73
74namespace Foam
75{
76namespace wallBoilingModels
77{
78namespace CHFModels
79{
80
81/*---------------------------------------------------------------------------*\
82 Class HuaXu Declaration
83\*---------------------------------------------------------------------------*/
84
85class 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;
103
104public:
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
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
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// ************************************************************************* //
Base class for critical heat flux (CHF) sub-cooling correlation models for boiling flows.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:62
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:126
Generic thermophysical properties class for a liquid in which the functions and coefficients for each...
Definition: liquid.H:57
Single incompressible phase derived from the phase-fraction. Used as part of the multiPhaseMixture fo...
Definition: phaseModel.H:61
A class for managing temporary objects.
Definition: tmp.H:65
A critical heat flux (CHF) sub-cooling correlation model based on Hua-Xu (2000) for boiling flows.
Definition: HuaXu.H:105
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
TypeName("HuaXu")
Runtime type information.
virtual ~HuaXu()=default
Destructor.
OBJstream os(runTime.globalPath()/outputName)
Namespace for OpenFOAM.
runTime write()
dictionary dict
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition: typeInfo.H:73
const vector L(dict.get< vector >("L"))