OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

evaporationModel.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-2009 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     Foam::evaporationModel
00027 
00028 Description
00029     Base class for selecting an evaporation model
00030 
00031 \*---------------------------------------------------------------------------*/
00032 
00033 #ifndef evaporationModel_H
00034 #define evaporationModel_H
00035 
00036 #include "IOdictionary.H"
00037 #include "autoPtr.H"
00038 #include "runTimeSelectionTables.H"
00039 
00040 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00041 
00042 namespace Foam
00043 {
00044 
00045 /*---------------------------------------------------------------------------*\
00046                            Class evaporationModel Declaration
00047 \*---------------------------------------------------------------------------*/
00048 
00049 class evaporationModel
00050 {
00051 protected:
00052 
00053     // Protected data
00054 
00055         const dictionary& dict_;
00056 
00057 public:
00058 
00059     //- Runtime type information
00060         TypeName("evaporationModel");
00061 
00062     //- Evaluate the gaseous properties Tand Y (implicit/explicit)
00063     //word gasPropertyEvaluation_;
00064     //label nEvapIter_;
00065 
00066 
00067     // Declare runtime constructor selection table
00068 
00069         declareRunTimeSelectionTable
00070         (
00071             autoPtr,
00072             evaporationModel,
00073             dictionary,
00074             (
00075                 const dictionary& dict
00076             ),
00077             (dict)
00078         );
00079 
00080 
00081     // Constructors
00082 
00083         //- Construct from components
00084         evaporationModel
00085         (
00086             const dictionary& dict
00087         );
00088 
00089 
00090     // Destructor
00091 
00092         virtual ~evaporationModel();
00093 
00094 
00095     // Selector
00096 
00097         static autoPtr<evaporationModel> New
00098         (
00099             const dictionary& dict
00100         );
00101 
00102 
00103     // Member Functions
00104 
00105     //- evaporation on/off
00106         virtual bool evaporation() const = 0;
00107 
00108         //- The Sherwood number
00109         virtual scalar Sh
00110         (
00111             const scalar ReynoldsNumber,
00112             const scalar SchmidtNumber
00113         ) const = 0;
00114 
00115         virtual scalar relaxationTime
00116         (
00117             const scalar diameter,
00118             const scalar liquidDensity,
00119             const scalar rhoFuelVapor,
00120             const scalar massDiffusionCoefficient,
00121             const scalar ReynoldsNumber,
00122             const scalar SchmidtNumber,
00123             const scalar Xs,
00124             const scalar Xf,
00125             const scalar m0,
00126             const scalar dm,
00127             const scalar dt
00128         ) const = 0;
00129 
00130         virtual scalar boilingTime
00131         (
00132             const scalar liquidDensity,
00133             const scalar cpFuel,
00134             const scalar heatOfVapour,
00135             const scalar kappa,
00136             const scalar Nusselt,
00137             const scalar deltaTemp,
00138             const scalar diameter,
00139             const scalar liquidCore,
00140             const scalar time,
00141             const scalar tDrop,
00142             const scalar tBoilingSurface,
00143             const scalar vapourSurfaceEnthalpy,
00144             const scalar vapourFarEnthalpy,
00145             const scalar cpGas,
00146             const scalar temperature,
00147             const scalar kLiq
00148         ) const = 0;
00149 
00150         virtual label nEvapIter() const = 0;
00151 };
00152 
00153 
00154 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00155 
00156 } // End namespace Foam
00157 
00158 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00159 
00160 #endif
00161 
00162 // ************************************************************************* //
Copyright © 2000-2009 OpenCFD Ltd