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-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::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"
50 
51 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
52 
53 namespace Foam
54 {
55 namespace diameterModels
56 {
57 
58 /*---------------------------------------------------------------------------*\
59  Class linearTsub Declaration
60 \*---------------------------------------------------------------------------*/
61 
62 class linearTsub
63 :
64  public spherical
65 {
66  // Private Data
67 
68  //- Name of the liquid phase that is used to determine subcooling
69  // temperature
70  word liquidPhaseName_;
71 
72  //- Reference diameter for low subcooling temperature
74 
75  //- Subcooling temperature where low subcooling diameter is reached
76  dimensionedScalar Tsub2_;
77 
78  //- Reference diameter for high subcooling temperature
80 
81  //- Subcooling temperature where high subcooling diameter is reached
82  dimensionedScalar Tsub1_;
83 
84  //- The saturation curve
85  autoPtr<saturationTemperatureModel> saturationModelPtr_;
86 
87  //- Diameter field
88  volScalarField d_;
89 
90 
91 public:
92 
93  //- Runtime type information
94  TypeName("linearTsub");
95 
96 
97  // Constructors
98 
99  //- Construct from dictionary and phase
100  linearTsub
101  (
103  const phaseModel& phase
104  );
105 
106 
107  //- Destructor
108  virtual ~linearTsub();
109 
110 
111  // Member Functions
112 
113  //- Get the diameter field
114  virtual tmp<volScalarField> d() const;
115 
116  //- Correct the model
117  virtual void correct();
118 
119  //- Read phaseProperties dictionary
120  virtual bool read(const dictionary& phaseProperties);
121 };
122 
123 
124 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
125 
126 } // End namespace diameterModels
127 } // End namespace Foam
128 
129 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
130 
131 #endif
132 
133 // ************************************************************************* //
Generic GeometricField class.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: autoPtr.H:51
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 keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
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.