FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

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