All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
waxSolventEvaporation.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2017-2019 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
11  OpenFOAM is free software: you can redistribute it and/or modify it
12  under the terms of the GNU General Public License as published by
13  the Free Software Foundation, either version 3 of the License, or
14  (at your option) any later version.
15 
16  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19  for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
23 
24 Class
25  Foam::regionModels::surfaceFilmModels::waxSolventEvaporation
26 
27 Description
28  Wax solvent mixture evaporation model.
29 
30 SourceFiles
31  waxSolventEvaporation.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef waxSolventEvaporation_H
36 #define waxSolventEvaporation_H
37 
38 #include "phaseChangeModel.H"
40 #include "Function1.H"
41 
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 
44 namespace Foam
45 {
46 namespace regionModels
47 {
48 namespace surfaceFilmModels
49 {
50 
51 /*---------------------------------------------------------------------------*\
52  Class waxSolventEvaporation Declaration
53 \*---------------------------------------------------------------------------*/
54 
56 :
57  public phaseChangeModel
58 {
59 protected:
60 
61  // Protected data
62 
63  //- Molecular weight of wax [kg/kmol]
65 
66  //- Molecular weight of liquid [kg/kmol]
68 
69  //- Initial solvent mass-fraction
71 
72  //- Solvent mass-fraction
74 
75  //- Minimum film height for model to be active
76  const scalar deltaMin_;
77 
78  //- Length scale [m]
79  const scalar L_;
80 
81  //- Boiling temperature factor
82  // Used to set max limit on temperature to Tb*TbFactor
83  const scalar TbFactor_;
84 
85  //- Switch to treat YInf as zero
87 
88  //- Activity coefficient as a function of solvent mole fraction
90 
91 
92  // Protected member functions
93 
94  //- Return Sherwood number as a function of Reynolds and Schmidt numbers
95  scalar Sh(const scalar Re, const scalar Sc) const;
96 
97  template<class YInfType>
98  void correctModel
99  (
100  const scalar dt,
101  scalarField& availableMass,
102  scalarField& dMass,
103  scalarField& dEnergy,
104  YInfType YInf
105  );
106 
107 
108 public:
109 
110  //- Runtime type information
111  TypeName("waxSolventEvaporation");
112 
113 
114  // Constructors
115 
116  //- Construct from surface film model
118  (
120  const dictionary& dict
121  );
122 
123  //- Disallow default bitwise copy construction
125 
126 
127  //- Destructor
128  virtual ~waxSolventEvaporation();
129 
130 
131  // Member Functions
132 
133  //- Correct
134  virtual void correctModel
135  (
136  const scalar dt,
137  scalarField& availableMass,
138  scalarField& dMass,
139  scalarField& dEnergy
140  );
141 
142 
143  // Member Operators
144 
145  //- Disallow default bitwise assignment
146  void operator=(const waxSolventEvaporation&) = delete;
147 };
148 
149 
150 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
151 
152 } // End namespace surfaceFilmModels
153 } // End namespace regionModels
154 } // End namespace Foam
155 
156 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
157 
158 #endif
159 
160 // ************************************************************************* //
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:158
autoPtr< Function1< scalar > > activityCoeff_
Activity coefficient as a function of solvent mole fraction.
uniformDimensionedScalarField Wwax_
Molecular weight of wax [kg/kmol].
A simple wrapper around bool so that it can be read as a word: true/false, on/off, yes/no, y/n, t/f, or none/any.
Definition: Switch.H:60
const scalar deltaMin_
Minimum film height for model to be active.
const dictionary & dict() const
Return const access to the cloud dictionary.
Definition: subModelBase.C:110
const surfaceFilmRegionModel & film() const
Return const access to the film surface film model.
TypeName("waxSolventEvaporation")
Runtime type information.
Base class for surface film phase change models.
void operator=(const waxSolventEvaporation &)=delete
Disallow default bitwise assignment.
uniformDimensionedScalarField Wsolvent_
Molecular weight of liquid [kg/kmol].
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: PtrList.H:52
scalar Sh(const scalar Re, const scalar Sc) const
Return Sherwood number as a function of Reynolds and Schmidt numbers.
uniformDimensionedScalarField Ysolvent0_
Initial solvent mass-fraction.
waxSolventEvaporation(surfaceFilmRegionModel &film, const dictionary &dict)
Construct from surface film model.
scalarField Re(const UList< complex > &cf)
Definition: complexFields.C:97
void correctModel(const scalar dt, scalarField &availableMass, scalarField &dMass, scalarField &dEnergy, YInfType YInf)
Namespace for OpenFOAM.