waxSolventEvaporation.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) 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::waxSolventEvaporation
28 
29 Description
30  Wax solvent mixture evaporation model.
31 
32 SourceFiles
33  waxSolventEvaporation.C
34 
35 \*---------------------------------------------------------------------------*/
36 
37 #ifndef Foam_waxSolventEvaporation_H
38 #define Foam_waxSolventEvaporation_H
39 
40 #include "phaseChangeModel.H"
42 #include "Function1.H"
43 
44 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 
46 namespace Foam
47 {
48 namespace regionModels
49 {
50 namespace surfaceFilmModels
51 {
52 
53 /*---------------------------------------------------------------------------*\
54  Class waxSolventEvaporation Declaration
55 \*---------------------------------------------------------------------------*/
56 
58 :
59  public phaseChangeModel
60 {
61 protected:
62 
63  // Protected Data
64 
65  //- Molecular weight of wax [kg/kmol]
67 
68  //- Molecular weight of liquid [kg/kmol]
70 
71  //- Initial solvent mass-fraction
73 
74  //- Solvent mass-fraction
76 
77  //- Minimum film height for model to be active
78  const scalar deltaMin_;
79 
80  //- Length scale [m]
81  const scalar L_;
82 
83  //- Boiling temperature factor
84  // Used to set max limit on temperature to Tb*TbFactor
85  const scalar TbFactor_;
86 
87  //- Switch to treat YInf as zero
88  bool YInfZero_;
89 
90  //- Activity coefficient as a function of solvent mole fraction
92 
93 
94  // Protected Member Functions
95 
96  //- Return Sherwood number as a function of Reynolds and Schmidt numbers
97  scalar Sh(const scalar Re, const scalar Sc) const;
98 
99  template<class YInfType>
101  (
102  const scalar dt,
103  scalarField& availableMass,
104  scalarField& dMass,
105  scalarField& dEnergy,
106  const YInfType& YInf
107  );
108 
109  //- No copy construct
111 
112  //- No copy assignment
113  void operator=(const waxSolventEvaporation&) = delete;
114 
115 
116 public:
117 
118  //- Runtime type information
119  TypeName("waxSolventEvaporation");
120 
121 
122  // Constructors
123 
124  //- Construct from surface film model
126  (
128  const dictionary& dict
129  );
130 
131 
132  //- Destructor
133  virtual ~waxSolventEvaporation();
134 
135 
136  // Member Functions
137 
138  //- Correct
139  virtual void correctModel
140  (
141  const scalar dt,
142  scalarField& availableMass,
143  scalarField& dMass,
144  scalarField& dEnergy
145  );
146 };
147 
148 
149 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
150 
151 } // End namespace surfaceFilmModels
152 } // End namespace regionModels
153 } // End namespace Foam
154 
155 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
156 
157 #endif
158 
159 // ************************************************************************* //
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Definition: dictionary.H:129
autoPtr< Function1< scalar > > activityCoeff_
Activity coefficient as a function of solvent mole fraction.
Various UniformDimensionedField types.
uniformDimensionedScalarField Wwax_
Molecular weight of wax [kg/kmol].
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:104
waxSolventEvaporation(const waxSolventEvaporation &)=delete
No copy construct.
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
No copy assignment.
uniformDimensionedScalarField Wsolvent_
Molecular weight of liquid [kg/kmol].
scalarField Re(const UList< complex > &cmplx)
Extract real component.
Definition: complexField.C:207
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
Definition: HashPtrTable.H:48
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.
void correctModel(const scalar dt, scalarField &availableMass, scalarField &dMass, scalarField &dEnergy, const YInfType &YInf)
Namespace for OpenFOAM.