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-------------------------------------------------------------------------------
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::waxSolventEvaporation
28
29Description
30 Wax solvent mixture evaporation model.
31
32SourceFiles
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
46namespace Foam
47{
48namespace regionModels
49{
50namespace surfaceFilmModels
51{
52
53/*---------------------------------------------------------------------------*\
54 Class waxSolventEvaporation Declaration
55\*---------------------------------------------------------------------------*/
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
70protected:
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
119public:
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// ************************************************************************* //
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition: autoPtr.H:66
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.
autoPtr< Function1< scalar > > activityCoeff_
Activity coefficient as a function of solvent mole fraction.
TypeName("waxSolventEvaporation")
Runtime type information.
uniformDimensionedScalarField Wsolvent_
Molecular weight of liquid [kg/kmol].
void correctModel(const scalar dt, scalarField &availableMass, scalarField &dMass, scalarField &dEnergy, YInfType YInf)
uniformDimensionedScalarField Wwax_
Molecular weight of wax [kg/kmol].
uniformDimensionedScalarField Ysolvent0_
Initial solvent mass-fraction.
const scalar deltaMin_
Minimum film height for model to be active.
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