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-2020 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 protected:
88 
89  // Protected Member Functions
90 
91  //- Get the diameter field
92  virtual tmp<volScalarField> calcD() const;
93 
94 
95 public:
96 
97  //- Runtime type information
98  TypeName("linearTsub");
99 
100 
101  // Constructors
102 
103  //- Construct from components
104  linearTsub
105  (
107  const phaseModel& phase
108  );
109 
110 
111  //- Destructor
112  virtual ~linearTsub();
113 
114 
115  // Member Functions
116 
117  //- Correct the diameter field
118  virtual void correct();
119 
120  //- Read phaseProperties dictionary
121  virtual bool read(const dictionary& phaseProperties);
122 };
123 
124 
125 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
126 
127 } // End namespace diameterModels
128 } // End namespace Foam
129 
130 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
131 
132 #endif
133 
134 // ************************************************************************* //
virtual tmp< volScalarField > calcD() const
Get the diameter field.
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:158
Helper class to manage multi-specie phase properties.
TypeName("linearTsub")
Runtime type information.
virtual bool read(const dictionary &phaseProperties)
Read phaseProperties dictionary.
A class for handling words, derived from string.
Definition: word.H:59
virtual ~linearTsub()
Destructor.
Base class for models which represent spherical diameter models, providing a common implementation of...
Single incompressible phase derived from the phase-fraction. Used as part of the multiPhaseMixture fo...
Definition: phase.H:52
linearTsub(const dictionary &diameterProperties, const phaseModel &phase)
Construct from components.
A class for managing temporary objects.
Definition: PtrList.H:53
Single incompressible phase derived from the phase-fraction. Used as part of the multiPhaseMixture fo...
Definition: phaseModel.H:53
const dictionary & diameterProperties() const
Return the phase diameter properties dictionary.
Namespace for OpenFOAM.
virtual void correct()
Correct the diameter field.