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