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 waxSolventEvaporation_H
38 #define 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  // Private member functions
62 
63  //- No copy construct
65 
66  //- No copy assignment
67  void operator=(const waxSolventEvaporation&) = delete;
68 
69 
70 protected:
71 
72  // Protected data
73 
74  //- Molecular weight of wax [kg/kmol]
76 
77  //- Molecular weight of liquid [kg/kmol]
79 
80  //- Initial solvent mass-fraction
82 
83  //- Solvent mass-fraction
85 
86  //- Minimum film height for model to be active
87  const scalar deltaMin_;
88 
89  //- Length scale [m]
90  const scalar L_;
91 
92  //- Boiling temperature factor
93  // Used to set max limit on temperature to Tb*TbFactor
94  const scalar TbFactor_;
95 
96  //- Switch to treat YInf as zero
97  bool YInfZero_;
98 
99  //- Activity coefficient as a function of solvent mole fraction
101 
102 
103  // Protected member functions
104 
105  //- Return Sherwood number as a function of Reynolds and Schmidt numbers
106  scalar Sh(const scalar Re, const scalar Sc) const;
107 
108  template<class YInfType>
109  void correctModel
110  (
111  const scalar dt,
112  scalarField& availableMass,
113  scalarField& dMass,
114  scalarField& dEnergy,
115  YInfType YInf
116  );
117 
118 
119 public:
120 
121  //- Runtime type information
122  TypeName("waxSolventEvaporation");
123 
124 
125  // Constructors
126 
127  //- Construct from surface film model
129  (
131  const dictionary& dict
132  );
133 
134 
135  //- Destructor
136  virtual ~waxSolventEvaporation();
137 
138 
139  // Member Functions
140 
141  //- Correct
142  virtual void correctModel
143  (
144  const scalar dt,
145  scalarField& availableMass,
146  scalarField& dMass,
147  scalarField& dEnergy
148  );
149 };
150 
151 
152 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
153 
154 } // End namespace surfaceFilmModels
155 } // End namespace regionModels
156 } // End namespace Foam
157 
158 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
159 
160 #endif
161 
162 // ************************************************************************* //
Foam::regionModels::surfaceFilmModels::waxSolventEvaporation::Wwax_
uniformDimensionedScalarField Wwax_
Definition: waxSolventEvaporation.H:70
Foam::regionModels::surfaceFilmModels::waxSolventEvaporation::Sh
scalar Sh(const scalar Re, const scalar Sc) const
Definition: waxSolventEvaporation.C:55
Function1.H
Foam::regionModels::surfaceFilmModels::waxSolventEvaporation::TbFactor_
const scalar TbFactor_
Definition: waxSolventEvaporation.H:89
Foam::regionModels::surfaceFilmModels::waxSolventEvaporation::TypeName
TypeName("waxSolventEvaporation")
Foam::UniformDimensionedField< scalar >
Foam::Field
Generic templated field type.
Definition: Field.H:59
Foam::regionModels::surfaceFilmModels::surfaceFilmRegionModel
Base class for surface film models.
Definition: surfaceFilmRegionModel.H:51
Foam::subModelBase::dict
const dictionary & dict() const
Definition: subModelBase.C:106
Foam::regionModels::surfaceFilmModels::waxSolventEvaporation::Ysolvent0_
uniformDimensionedScalarField Ysolvent0_
Definition: waxSolventEvaporation.H:76
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:119
Foam::regionModels::surfaceFilmModels::waxSolventEvaporation::activityCoeff_
autoPtr< Function1< scalar > > activityCoeff_
Definition: waxSolventEvaporation.H:95
Foam
Definition: atmBoundaryLayer.C:26
Foam::regionModels::surfaceFilmModels::waxSolventEvaporation::L_
const scalar L_
Definition: waxSolventEvaporation.H:85
uniformDimensionedFields.H
Foam::autoPtr
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition: HashPtrTable.H:49
Foam::regionModels::surfaceFilmModels::waxSolventEvaporation::correctModel
void correctModel(const scalar dt, scalarField &availableMass, scalarField &dMass, scalarField &dEnergy, YInfType YInf)
Definition: waxSolventEvaporation.C:144
Foam::regionModels::surfaceFilmModels::waxSolventEvaporation
Definition: waxSolventEvaporation.H:52
Foam::regionModels::surfaceFilmModels::waxSolventEvaporation::YInfZero_
bool YInfZero_
Definition: waxSolventEvaporation.H:92
Foam::regionModels::surfaceFilmModels::filmSubModelBase::film
const surfaceFilmRegionModel & film() const
Definition: filmSubModelBaseI.H:32
Foam::Re
scalarField Re(const UList< complex > &cf)
Definition: complexField.C:152
Foam::regionModels::surfaceFilmModels::waxSolventEvaporation::~waxSolventEvaporation
virtual ~waxSolventEvaporation()
Definition: waxSolventEvaporation.C:136
Foam::regionModels::surfaceFilmModels::waxSolventEvaporation::Wsolvent_
uniformDimensionedScalarField Wsolvent_
Definition: waxSolventEvaporation.H:73
Foam::regionModels::surfaceFilmModels::waxSolventEvaporation::deltaMin_
const scalar deltaMin_
Definition: waxSolventEvaporation.H:82
Foam::GeometricField
Generic GeometricField class.
Definition: areaFieldsFwd.H:49
Foam::regionModels::surfaceFilmModels::waxSolventEvaporation::Ysolvent_
volScalarField Ysolvent_
Definition: waxSolventEvaporation.H:79
phaseChangeModel.H
Foam::regionModels::surfaceFilmModels::phaseChangeModel
Base class for surface film phase change models.
Definition: phaseChangeModel.H:53