Loading...
Searching...
No Matches
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 Foam_waxSolventEvaporation_H
38#define Foam_waxSolventEvaporation_H
39
40#include "phaseChangeModel.H"
42#include "Function1.H"
43
44// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45
46namespace Foam
47{
48namespace regionModels
49{
50namespace surfaceFilmModels
51{
53/*---------------------------------------------------------------------------*\
54 Class waxSolventEvaporation Declaration
55\*---------------------------------------------------------------------------*/
56
58:
59 public phaseChangeModel
60{
61protected:
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
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
89
90 //- Activity coefficient as a function of solvent mole fraction
92
93
94 // Protected Member Functions
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
116public:
117
118 //- Runtime type information
119 TypeName("waxSolventEvaporation");
120
121
122 // Constructors
123
124 //- Construct from surface film model
126 (
129 );
130
131
132 //- Destructor
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// ************************************************************************* //
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition autoPtr.H:65
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition dictionary.H:133
const surfaceFilmRegionModel & film() const
Return const access to the film surface film model.
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 operator=(const waxSolventEvaporation &)=delete
No copy assignment.
waxSolventEvaporation(const waxSolventEvaporation &)=delete
No copy construct.
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.
void correctModel(const scalar dt, scalarField &availableMass, scalarField &dMass, scalarField &dEnergy, const YInfType &YInf)
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.
Namespace for OpenFOAM.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
UniformDimensionedField< scalar > uniformDimensionedScalarField
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
scalarField Re(const UList< complex > &cmplx)
Extract real component.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition typeInfo.H:68
Various UniformDimensionedField types.