BUG: UListIO: byteSize overflowing on really big faceLists
[OpenFOAM-2.0.x.git] / src / lagrangian / dieselSpray / spraySubModels / evaporationModel / RutlandFlashBoil / RutlandFlashBoil.H
blobb45d423e998e9613889ddbe7dd1a72eb85f8a7b8
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright (C) 2011 OpenFOAM Foundation
6      \\/     M anipulation  |
7 -------------------------------------------------------------------------------
8 License
9     This file is part of OpenFOAM.
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.
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.
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/>.
24 Class
25     Foam::RutlandFlashBoil
27 Description
28     Evaporation model with flash boiling.
30     Evaporation model that takes into account of:
31       - flash boiling of the liquid core and droplets
32       - superheated vaporization of a boiling droplet
34     Accurated description in
35     \verbatim
36     B. Zuo, A.M. Gomes, C.J. Rutland
37     "Modeling Superheated Fuel Spray Vaporization"
38     Int. Journal of Engine Research, 2000. Vol. 1, pp. 321-326
39     \endverbatim
40 \*---------------------------------------------------------------------------*/
42 #ifndef RutlandFlashBoil_H
43 #define RutlandFlashBoil_H
45 #include "evaporationModel.H"
47 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
49 namespace Foam
52 /*---------------------------------------------------------------------------*\
53                       Class RutlandFlashBoil Declaration
54 \*---------------------------------------------------------------------------*/
56 class RutlandFlashBoil
58     public evaporationModel
61 private:
63     // Private data
65         dictionary evapDict_;
66         scalar preReScFactor_;
67         scalar ReExponent_;
68         scalar ScExponent_;
70         word evaporationScheme_;
71         label nEvapIter_;
74 public:
76     //- Runtime type information
77     TypeName("RutlandFlashBoil");
80     // Constructors
82         //- Construct from dictionary
83         RutlandFlashBoil(const dictionary& dict);
86     //- Destructor
87     virtual ~RutlandFlashBoil();
90     // Member Functions
92         bool evaporation() const;
94        //- Correlation for the Sherwood Number
95         scalar Sh
96         (
97             const scalar ReynoldsNumber,
98             const scalar SchmidtNumber
99         ) const;
101         //- Return the evaporation relaxation time
102         scalar relaxationTime
103         (
104             const scalar diameter,
105             const scalar liquidDensity,
106             const scalar rhoFuelVapor,
107             const scalar massDiffusionCoefficient,
108             const scalar ReynoldsNumber,
109             const scalar SchmidtNumber,
110             const scalar Xs,
111             const scalar Xf,
112             const scalar m0,
113             const scalar dm,
114             const scalar dt
115         ) const;
117         scalar boilingTime
118         (
119             const scalar liquidDensity,
120             const scalar cpFuel,
121             const scalar heatOfVapour,
122             const scalar kappa,
123             const scalar Nusselt,
124             const scalar deltaTemp,
125             const scalar diameter,
126             const scalar liquidCore,
127             const scalar time,
128             const scalar tDrop,
129             const scalar tBoilingSurface,
130             const scalar vapourSurfaceEnthalpy,
131             const scalar vapourFarEnthalpy,
132             const scalar cpGas,
133             const scalar temperature,
134             const scalar kLiquid
135         ) const;
137         inline label nEvapIter() const
138         {
139             return nEvapIter_;
140         }
145 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
147 } // End namespace Foam
149 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
151 #endif
153 // ************************************************************************* //