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-2018 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  // Private member functions
60 
61  //- Disallow default bitwise copy construct
63 
64  //- Disallow default bitwise assignment
65  void operator=(const waxSolventEvaporation&);
66 
67 
68 protected:
69 
70  // Protected data
71 
72  //- Molecular weight of wax [kg/kmol]
74 
75  //- Molecular weight of liquid [kg/kmol]
77 
78  //- Initial solvent mass-fraction
80 
81  //- Solvent mass-fraction
83 
84  //- Minimum film height for model to be active
85  const scalar deltaMin_;
86 
87  //- Length scale [m]
88  const scalar L_;
89 
90  //- Boiling temperature factor
91  // Used to set max limit on temperature to Tb*TbFactor
92  const scalar TbFactor_;
93 
94  //- Switch to treat YInf as zero
96 
97  //- Activity coefficient as a function of solvent mole fraction
99 
100 
101  // Protected member functions
102 
103  //- Return Sherwood number as a function of Reynolds and Schmidt numbers
104  scalar Sh(const scalar Re, const scalar Sc) const;
105 
106  template<class YInfType>
107  void correctModel
108  (
109  const scalar dt,
110  scalarField& availableMass,
111  scalarField& dMass,
112  scalarField& dEnergy,
113  YInfType YInf
114  );
115 
116 
117 public:
118 
119  //- Runtime type information
120  TypeName("waxSolventEvaporation");
121 
122 
123  // Constructors
124 
125  //- Construct from surface film model
127  (
129  const dictionary& dict
130  );
131 
132 
133  //- Destructor
134  virtual ~waxSolventEvaporation();
135 
136 
137  // Member Functions
138 
139  //- Correct
140  virtual void correctModel
141  (
142  const scalar dt,
143  scalarField& availableMass,
144  scalarField& dMass,
145  scalarField& dEnergy
146  );
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:137
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.
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.
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.
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.