linearTsubDiameter.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) 2018-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::linearTsub
26 
27 Description
28  Vapour bubble diameter model for modelling of condensation of vapour
29  bubbles. Calculates bubble diameter as a function of liquid phase
30  subcooling.
31 
32  Reference:
33  \verbatim
34  Anglart, H., Nylund, O., Kurul, N., & Podowski, M. Z. (1997).
35  CFD prediction of flow and phase distribution in fuel assemblies with
36  spacers.
37  Nuclear Engineering and Design, 177(1-3), 215-228.
38  \endverbatim
39 
40 SourceFiles
41  linearTsub.C
42 
43 \*---------------------------------------------------------------------------*/
44 
45 #ifndef linearTsubDiameter_H
46 #define linearTsubDiameter_H
47 
48 #include "sphericalDiameter.H"
49 
50 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
51 
52 namespace Foam
53 {
54 namespace diameterModels
55 {
56 
57 /*---------------------------------------------------------------------------*\
58  Class linearTsub Declaration
59 \*---------------------------------------------------------------------------*/
60 
61 class linearTsub
62 :
63  public spherical
64 {
65  // Private Data
66 
67  //- Name of the liquid phase that is used to determine subcooling
68  // temperature
69  word liquidPhaseName_;
70 
71  //- Reference diameter for low subcooling temperature
73 
74  //- Subcooling temperature where low subcooling diameter is reached
75  dimensionedScalar Tsub2_;
76 
77  //- Reference diameter for high subcooling temperature
79 
80  //- Subcooling temperature where high subcooling diameter is reached
81  dimensionedScalar Tsub1_;
82 
83  //- Diameter field
84  volScalarField d_;
85 
86 
87 public:
88 
89  //- Runtime type information
90  TypeName("linearTsub");
91 
92 
93  // Constructors
94 
95  //- Construct from dictionary and phase
97  (
99  const phaseModel& phase
100  );
101 
102 
103  //- Destructor
104  virtual ~linearTsub();
105 
106 
107  // Member Functions
108 
109  //- Get the diameter field
110  virtual tmp<volScalarField> d() const;
111 
112  //- Correct the model
113  virtual void correct();
114 
115  //- Read phaseProperties dictionary
116  virtual bool read(const dictionary& phaseProperties);
117 };
118 
119 
120 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
121 
122 } // End namespace diameterModels
123 } // End namespace Foam
124 
125 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
126 
127 #endif
128 
129 // ************************************************************************* //
Generic GeometricField class.
const phaseModel & phase() const
Return the phase.
const dictionary & diameterProperties() const
Return the phase diameter properties dictionary.
linearTsub(const dictionary &diameterProperties, const phaseModel &phase)
Construct from dictionary and phase.
virtual void correct()
Correct the model.
virtual tmp< volScalarField > d() const
Get the diameter field.
TypeName("linearTsub")
Runtime type information.
virtual bool read(const dictionary &phaseProperties)
Read phaseProperties dictionary.
Base class for models which represent spherical diameter models, providing a common implementation of...
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:162
Helper class to manage multi-specie phase properties.
A class for managing temporary objects.
Definition: tmp.H:55
A class for handling words, derived from string.
Definition: word.H:62
Namespace for OpenFOAM.