OpenFOAM logo
Open Source CFD Toolkit

RutlandFlashBoil.H

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------------*\
00002   =========                 |
00003   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
00004    \\    /   O peration     |
00005     \\  /    A nd           | Copyright (C) 1991-2005 OpenCFD Ltd.
00006      \\/     M anipulation  |
00007 -------------------------------------------------------------------------------
00008 License
00009     This file is part of OpenFOAM.
00010 
00011     OpenFOAM is free software; you can redistribute it and/or modify it
00012     under the terms of the GNU General Public License as published by the
00013     Free Software Foundation; either version 2 of the License, or (at your
00014     option) any later version.
00015 
00016     OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
00017     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00018     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00019     for more details.
00020 
00021     You should have received a copy of the GNU General Public License
00022     along with OpenFOAM; if not, write to the Free Software Foundation,
00023     Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
00024 
00025 Class
00026     RutlandFlashBoil
00027 
00028 Description
00029     standard evaporation model based on the logarithmic expression
00030     of the ration of pressure differences.
00031 
00032 \*---------------------------------------------------------------------------*/
00033 
00034 #ifndef RutlandFlashBoil_H
00035 #define RutlandFlashBoil_H
00036 
00037 #include "evaporationModel.H"
00038 
00039 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00040 
00041 namespace Foam
00042 {
00043 
00044 /*---------------------------------------------------------------------------*\
00045                            Class RutlandFlashBoil Declaration
00046 \*---------------------------------------------------------------------------*/
00047 
00048 class RutlandFlashBoil
00049 :
00050     public evaporationModel
00051 {
00052 
00053 private:
00054 
00055     // Private data
00056 
00057         dictionary evapDict_;
00058         scalar preReScFactor_;
00059         scalar ReExponent_;
00060         scalar ScExponent_;
00061     
00062         word evaporationScheme_;
00063         label nEvapIter_;
00064 
00065 
00066 public:
00067 
00068     //- Runtime type information
00069         TypeName("RutlandFlashBoil");
00070 
00071 
00072     // Constructors
00073 
00074         //- Construct from dictionary
00075         RutlandFlashBoil
00076         (
00077             const dictionary& dict
00078         );
00079 
00080 
00081     // Destructor
00082 
00083         ~RutlandFlashBoil();
00084 
00085 
00086     // Member Functions
00087 
00088         bool evaporation() const;
00089 
00090        //- Correlation for the Sherwood Number
00091         scalar Sh
00092         (
00093             const scalar ReynoldsNumber,
00094             const scalar SchmidtNumber
00095         ) const;
00096 
00097         //- Return the evaporation relaxation time
00098         scalar relaxationTime
00099         (
00100             const scalar diameter,
00101             const scalar liquidDensity,
00102             const scalar rhoFuelVapor,
00103             const scalar massDiffusionCoefficient,
00104             const scalar ReynoldsNumber,
00105             const scalar SchmidtNumber,
00106             const scalar Xs,
00107             const scalar Xf,
00108             const scalar m0,
00109             const scalar dm,
00110             const scalar dt
00111         ) const;
00112 
00113         scalar boilingTime
00114         (
00115             const scalar liquidDensity,
00116             const scalar cpFuel,
00117             const scalar heatOfVapour,
00118             const scalar kappa,
00119             const scalar Nusselt,
00120             const scalar deltaTemp,
00121             const scalar diameter,
00122             const scalar liquidCore,
00123             const scalar time,
00124             const scalar tDrop,
00125             const scalar tBoilingSurface,
00126             const scalar vapourSurfaceEnthalpy,
00127             const scalar vapourFarEnthalpy,
00128             const scalar cpGas,
00129             const scalar Xs,
00130             const scalar Xf,    
00131             const scalar temperature,
00132             const scalar kLiquid
00133         ) const;
00134 
00135         inline label nEvapIter() const;
00136 };
00137 
00138 
00139 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00140 
00141 } // End namespace Foam
00142 
00143 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00144 
00145 #endif
00146 
00147 // ************************************************************************* //
For further information go to www.openfoam.org