FreeFOAM The Cross-Platform CFD Toolkit
evaporationModel.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 | Copyright (C) 1991-2010 OpenCFD Ltd.
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::evaporationModel
26 
27 Description
28  Base class for selecting an evaporation model
29 
30 \*---------------------------------------------------------------------------*/
31 
32 #ifndef evaporationModel_H
33 #define evaporationModel_H
34 
35 #include <OpenFOAM/IOdictionary.H>
36 #include <OpenFOAM/autoPtr.H>
38 
39 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
40 
41 namespace Foam
42 {
43 
44 /*---------------------------------------------------------------------------*\
45  Class evaporationModel Declaration
46 \*---------------------------------------------------------------------------*/
47 
49 {
50 protected:
51 
52  // Protected data
53 
54  const dictionary& dict_;
55 
56 public:
57 
58  //- Runtime type information
59  TypeName("evaporationModel");
60 
61  //- Evaluate the gaseous properties Tand Y (implicit/explicit)
62  //word gasPropertyEvaluation_;
63  //label nEvapIter_;
64 
65 
66  // Declare runtime constructor selection table
67 
69  (
70  autoPtr,
72  dictionary,
73  (
74  const dictionary& dict
75  ),
76  (dict)
77  );
78 
79 
80  // Constructors
81 
82  //- Construct from components
84  (
85  const dictionary& dict
86  );
87 
88 
89  // Destructor
90 
91  virtual ~evaporationModel();
92 
93 
94  // Selector
95 
97  (
98  const dictionary& dict
99  );
100 
101 
102  // Member Functions
103 
104  //- evaporation on/off
105  virtual bool evaporation() const = 0;
106 
107  //- The Sherwood number
108  virtual scalar Sh
109  (
110  const scalar ReynoldsNumber,
111  const scalar SchmidtNumber
112  ) const = 0;
113 
114  virtual scalar relaxationTime
115  (
116  const scalar diameter,
117  const scalar liquidDensity,
118  const scalar rhoFuelVapor,
119  const scalar massDiffusionCoefficient,
120  const scalar ReynoldsNumber,
121  const scalar SchmidtNumber,
122  const scalar Xs,
123  const scalar Xf,
124  const scalar m0,
125  const scalar dm,
126  const scalar dt
127  ) const = 0;
128 
129  virtual scalar boilingTime
130  (
131  const scalar liquidDensity,
132  const scalar cpFuel,
133  const scalar heatOfVapour,
134  const scalar kappa,
135  const scalar Nusselt,
136  const scalar deltaTemp,
137  const scalar diameter,
138  const scalar liquidCore,
139  const scalar time,
140  const scalar tDrop,
141  const scalar tBoilingSurface,
142  const scalar vapourSurfaceEnthalpy,
143  const scalar vapourFarEnthalpy,
144  const scalar cpGas,
145  const scalar temperature,
146  const scalar kLiq
147  ) const = 0;
148 
149  virtual label nEvapIter() const = 0;
150 };
151 
152 
153 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
154 
155 } // End namespace Foam
156 
157 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
158 
159 #endif
160 
161 // ************************ vim: set sw=4 sts=4 et: ************************ //