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

saturateEvaporationModel.C

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 \*---------------------------------------------------------------------------*/
00026 
00027 #include "error.H"
00028 
00029 #include "saturateEvaporationModel.H"
00030 #include "addToRunTimeSelectionTable.H"
00031 
00032 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00033 
00034 namespace Foam
00035 {
00036 
00037 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
00038 
00039 defineTypeNameAndDebug(saturateEvaporationModel, 0);
00040 
00041 addToRunTimeSelectionTable
00042 (
00043     evaporationModel,
00044     saturateEvaporationModel,
00045     dictionary
00046 );
00047 
00048 
00049 // * * * * * * * * * * * * * * * * Constructors  * * * * * * * * * * * * * * //
00050 
00051 // Construct from dictionary
00052 saturateEvaporationModel::saturateEvaporationModel
00053 (
00054     const dictionary& dict
00055 )
00056 :
00057     evaporationModel(dict)
00058 {}
00059 
00060 
00061 // * * * * * * * * * * * * * * * * Destructor  * * * * * * * * * * * * * * * //
00062 
00063 saturateEvaporationModel::~saturateEvaporationModel()
00064 {}
00065 
00066 
00067 // * * * * * * * * * * * * * * * Member Functions  * * * * * * * * * * * * * //
00068 
00069 bool saturateEvaporationModel::evaporation() const
00070 {
00071     return true;
00072 }
00073 
00074 // Correlation for the Sherwood Number
00075 scalar saturateEvaporationModel::Sh
00076 (
00077     const scalar ReynoldsNumber,
00078     const scalar SchmidtNumber
00079 ) const
00080 {
00081     return 0.0;
00082 }
00083 
00084 scalar saturateEvaporationModel::relaxationTime
00085 (
00086     const scalar diameter,
00087     const scalar liquidDensity,
00088     const scalar rhoFuelVapor,
00089     const scalar massDiffusionCoefficient,
00090     const scalar ReynoldsNumber,
00091     const scalar SchmidtNumber,
00092     const scalar Xs,
00093     const scalar Xf,
00094     const scalar m0,
00095     const scalar dm,
00096     const scalar dt
00097 ) const
00098 {
00099     return max(SMALL,dt*(m0/dm - 1.0));
00100 }
00101 
00102 
00103 scalar saturateEvaporationModel::boilingTime
00104 (
00105     const scalar liquidDensity,
00106     const scalar cpFuel,
00107     const scalar heatOfVapour,
00108     const scalar kappa,
00109     const scalar Nusselt,
00110     const scalar deltaTemp,
00111     const scalar diameter,
00112     const scalar, 
00113     const scalar, 
00114     const scalar, 
00115     const scalar, 
00116     const scalar, 
00117     const scalar, 
00118     const scalar, 
00119     const scalar, 
00120     const scalar 
00121 ) const
00122 {
00123     scalar time = GREAT;
00124 
00125     // the deltaTemperature is limited to not go below .5 deg K
00126     // for numerical reasons.
00127     // This is probably not important, since it results in an upper
00128     // limit for the boiling time... which we have anyway.
00129     scalar deltaT = max(0.5, deltaTemp);
00130 
00131     time = liquidDensity*cpFuel*sqr(diameter)/
00132     (
00133         6.0 * kappa * Nusselt * log(1.0 + cpFuel * deltaT/max(SMALL, heatOfVapour))
00134     );
00135 
00136     time = max(VSMALL, time);
00137 
00138     return time;
00139 }
00140 
00141 inline label saturateEvaporationModel::nEvapIter() const
00142 {
00143     return 1;
00144 }
00145 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00146 
00147 } // End namespace Foam
00148 
00149 // ************************************************************************* //
Copyright © 2000-2009 OpenCFD Ltd