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 standardPhaseChange_H
38 #define 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
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  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 // ************************************************************************* //
Foam::Switch
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
Definition: Switch.H:77
Foam::regionModels::surfaceFilmModels::standardPhaseChange::~standardPhaseChange
virtual ~standardPhaseChange()=default
Destructor.
Foam::regionModels::surfaceFilmModels::standardPhaseChange
Standard phase change model with modification for boiling.
Definition: standardPhaseChange.H:54
Foam::regionModels::surfaceFilmModels::standardPhaseChange::TypeName
TypeName("standardPhaseChange")
Runtime type information.
Foam::regionModels::surfaceFilmModels::filmSubModelBase::film
const surfaceFilmRegionModel & film() const
Return const access to the film surface film model.
Definition: filmSubModelBaseI.H:39
Foam::regionModels::surfaceFilmModels::standardPhaseChange::standardPhaseChange
standardPhaseChange(const standardPhaseChange &)=delete
No copy construct.
Foam::Field< scalar >
Foam::regionModels::surfaceFilmModels::surfaceFilmRegionModel
Base class for surface film models.
Definition: surfaceFilmRegionModel.H:55
Foam::subModelBase::dict
const dictionary & dict() const
Return const access to the cloud dictionary.
Definition: subModelBase.C:113
Foam::regionModels::surfaceFilmModels::standardPhaseChange::Sh
scalar Sh(const scalar Re, const scalar Sc) const
Return Sherwood number as a function of Reynolds and Schmidt numbers.
Definition: standardPhaseChange.C:57
Foam::regionModels::surfaceFilmModels::standardPhaseChange::correctModel
void correctModel(const scalar dt, scalarField &availableMass, scalarField &dMass, scalarField &dEnergy, YInfType YInf)
Definition: standardPhaseChange.C:93
Foam::regionModels::surfaceFilmModels::standardPhaseChange::TbFactor_
const scalar TbFactor_
Boiling temperature factor / [].
Definition: standardPhaseChange.H:70
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:123
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::Re
scalarField Re(const UList< complex > &cf)
Extract real component.
Definition: complexField.C:159
Foam::regionModels::surfaceFilmModels::standardPhaseChange::L_
const scalar L_
Length scale / [m].
Definition: standardPhaseChange.H:66
Foam::regionModels::surfaceFilmModels::standardPhaseChange::deltaMin_
const scalar deltaMin_
Minimum film height for model to be active.
Definition: standardPhaseChange.H:63
phaseChangeModel.H
Foam::regionModels::surfaceFilmModels::standardPhaseChange::YInfZero_
Switch YInfZero_
Switch to treat YInf as zero.
Definition: standardPhaseChange.H:73
Foam::regionModels::surfaceFilmModels::standardPhaseChange::operator=
void operator=(const standardPhaseChange &)=delete
No copy assignment.
Foam::regionModels::surfaceFilmModels::phaseChangeModel
Base class for surface film phase change models.
Definition: phaseChangeModel.H:57