standardPhaseChange.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) 2011-2017 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::regionModels::surfaceFilmModels::standardPhaseChange
28 
29 Description
30  Standard phase change model with modification for boiling
31 
32 SourceFiles
33  standardPhaseChange.C
34 
35 \*---------------------------------------------------------------------------*/
36 
37 #ifndef Foam_standardPhaseChange_H
38 #define Foam_standardPhaseChange_H
39 
40 #include "phaseChangeModel.H"
41 
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 
44 namespace Foam
45 {
46 namespace regionModels
47 {
48 namespace surfaceFilmModels
49 {
50 
51 /*---------------------------------------------------------------------------*\
52  Class standardPhaseChange Declaration
53 \*---------------------------------------------------------------------------*/
54 
56 :
57  public phaseChangeModel
58 {
59 protected:
60 
61  // Protected Data
62 
63  //- Minimum film height for model to be active
64  const scalar deltaMin_;
65 
66  //- Length scale / [m]
67  const scalar L_;
68 
69  //- Boiling temperature factor / []
70  // Used to set max limit on temperature to Tb*TbFactor
71  const scalar TbFactor_;
72 
73  //- Switch to treat YInf as zero
74  bool YInfZero_;
75 
76 
77  // Protected member functions
78 
79  //- Return Sherwood number as a function of Reynolds and Schmidt numbers
80  scalar Sh(const scalar Re, const scalar Sc) const;
81 
82  template<class YInfType>
83  void correctModel
84  (
85  const scalar dt,
86  scalarField& availableMass,
87  scalarField& dMass,
88  scalarField& dEnergy,
89  const YInfType& YInf
90  );
91 
92  //- No copy construct
94 
95  //- No copy assignment
96  void operator=(const standardPhaseChange&) = delete;
97 
98 
99 public:
100 
101  //- Runtime type information
102  TypeName("standardPhaseChange");
103 
104 
105  // Constructors
106 
107  //- Construct from surface film model
109  (
111  const dictionary& dict
112  );
113 
114 
115  //- Destructor
116  virtual ~standardPhaseChange() = default;
117 
118 
119  // Member Functions
120 
121  // Evolution
122 
123  //- Correct
124  virtual void correctModel
125  (
126  const scalar dt,
127  scalarField& availableMass,
128  scalarField& dMass,
129  scalarField& dEnergy
130  );
131 };
132 
133 
134 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
135 
136 } // End namespace surfaceFilmModels
137 } // End namespace regionModels
138 } // End namespace Foam
139 
140 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
141 
142 #endif
143 
144 // ************************************************************************* //
void operator=(const standardPhaseChange &)=delete
No copy assignment.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Definition: dictionary.H:120
TypeName("standardPhaseChange")
Runtime type information.
void correctModel(const scalar dt, scalarField &availableMass, scalarField &dMass, scalarField &dEnergy, const YInfType &YInf)
const dictionary & dict() const
Return const access to the cloud dictionary.
Definition: subModelBase.C:104
const surfaceFilmRegionModel & film() const
Return const access to the film surface film model.
Base class for surface film phase change models.
scalar Sh(const scalar Re, const scalar Sc) const
Return Sherwood number as a function of Reynolds and Schmidt numbers.
standardPhaseChange(const standardPhaseChange &)=delete
No copy construct.
const scalar TbFactor_
Boiling temperature factor / [].
Standard phase change model with modification for boiling.
scalarField Re(const UList< complex > &cmplx)
Extract real component.
Definition: complexField.C:207
const scalar deltaMin_
Minimum film height for model to be active.
Namespace for OpenFOAM.