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-------------------------------------------------------------------------------
10License
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
26Class
27 Foam::regionModels::surfaceFilmModels::standardPhaseChange
28
29Description
30 Standard phase change model with modification for boiling
31
32SourceFiles
33 standardPhaseChange.C
34
35\*---------------------------------------------------------------------------*/
36
37#ifndef standardPhaseChange_H
38#define standardPhaseChange_H
39
40#include "phaseChangeModel.H"
41
42// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43
44namespace Foam
45{
46namespace regionModels
47{
48namespace surfaceFilmModels
49{
50
51/*---------------------------------------------------------------------------*\
52 Class standardPhaseChange Declaration
53\*---------------------------------------------------------------------------*/
56:
57 public phaseChangeModel
58{
59protected:
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
99public:
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// ************************************************************************* //
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
Definition: Switch.H:78
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:126
const surfaceFilmRegionModel & film() const
Return const access to the film surface film model.
Base class for surface film phase change models.
Standard phase change model with modification for boiling.
const scalar TbFactor_
Boiling temperature factor / [].
standardPhaseChange(const standardPhaseChange &)=delete
No copy construct.
void correctModel(const scalar dt, scalarField &availableMass, scalarField &dMass, scalarField &dEnergy, YInfType YInf)
TypeName("standardPhaseChange")
Runtime type information.
const scalar deltaMin_
Minimum film height for model to be active.
void operator=(const standardPhaseChange &)=delete
No copy assignment.
scalar Sh(const scalar Re, const scalar Sc) const
Return Sherwood number as a function of Reynolds and Schmidt numbers.
const dictionary & dict() const
Return const access to the cloud dictionary.
Definition: subModelBase.C:113
Namespace for OpenFOAM.
scalarField Re(const UList< complex > &cf)
Extract real component.
Definition: complexField.C:159
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition: typeInfo.H:73