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 // ************************************************************************* //
Foam::phaseModel
Single incompressible phase derived from the phase-fraction. Used as part of the multiPhaseMixture fo...
Definition: phaseModel.H:54
Foam::word
A class for handling words, derived from Foam::string.
Definition: word.H:65
Foam::phase
Single incompressible phase derived from the phase-fraction. Used as part of the multiPhaseMixture fo...
Definition: phase.H:54
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:61
Foam::diameterModels::linearTsub::linearTsub
linearTsub(const dictionary &diameterProperties, const phaseModel &phase)
Construct from components.
Definition: linearTsubDiameter.C:55
Foam::diameterModel::diameterProperties
const dictionary & diameterProperties() const
Return the phase diameter properties dictionary.
Definition: diameterModel.H:110
Foam::phaseProperties
Helper class to manage multi-specie phase properties.
Definition: phaseProperties.H:60
Foam::diameterModel
Abstract base-class for dispersed-phase particle diameter models.
Definition: diameterModel.H:53
Foam::diameterModels::linearTsub::read
virtual bool read(const dictionary &phaseProperties)
Read phaseProperties dictionary.
Definition: linearTsubDiameter.C:145
Foam::diameterModels::linearTsub::d
virtual tmp< volScalarField > d() const
Return the diameter field.
Definition: linearTsubDiameter.C:105
Foam::diameterModels::linearTsub::correct
virtual void correct()
Correct the diameter field.
Definition: linearTsubDiameter.C:111
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:123
Foam::diameterModels::linearTsub::~linearTsub
virtual ~linearTsub()
Destructor.
Definition: linearTsubDiameter.C:99
Foam::dimensioned< scalar >
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::GeometricField< scalar, fvPatchField, volMesh >
Foam::diameterModels::linearTsub::TypeName
TypeName("linearTsub")
Runtime type information.
Foam::diameterModels::linearTsub
Definition: linearTsubDiameter.H:62