|
|
|
LiquidEvaporation.HGo 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) 2009-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::LiquidEvaporation 00027 00028 Description 00029 Liquid evaporation model 00030 - uses ideal gas assumption 00031 00032 \*---------------------------------------------------------------------------*/ 00033 00034 #ifndef LiquidEvaporation_H 00035 #define LiquidEvaporation_H 00036 00037 #include "PhaseChangeModel.H" 00038 #include "liquidMixture.H" 00039 00040 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00041 00042 namespace Foam 00043 { 00044 /*---------------------------------------------------------------------------*\ 00045 Class LiquidEvaporation Declaration 00046 \*---------------------------------------------------------------------------*/ 00047 00048 template<class CloudType> 00049 class LiquidEvaporation 00050 : 00051 public PhaseChangeModel<CloudType> 00052 { 00053 protected: 00054 00055 // Protected data 00056 00057 //- Global liquid properties data 00058 autoPtr<liquidMixture> liquids_; 00059 00060 //- List of active liquid names 00061 List<word> activeLiquids_; 00062 00063 //- Mapping between liquid and carrier species 00064 List<label> liqToCarrierMap_; 00065 00066 //- Mapping between local and global liquid species 00067 List<label> liqToLiqMap_; 00068 00069 00070 // Protected member functions 00071 00072 //- Sherwood number as a function of Reynolds and Schmidt numbers 00073 scalar Sh(const scalar Re, const scalar Sc) const; 00074 00075 //- Calculate the carrier phase component volume fractions at cellI 00076 scalarField calcXc(const label cellI) const; 00077 00078 00079 public: 00080 00081 //- Runtime type information 00082 TypeName("LiquidEvaporation"); 00083 00084 00085 // Constructors 00086 00087 //- Construct from dictionary 00088 LiquidEvaporation 00089 ( 00090 const dictionary& dict, 00091 CloudType& cloud 00092 ); 00093 00094 00095 //- Destructor 00096 virtual ~LiquidEvaporation(); 00097 00098 00099 // Member Functions 00100 00101 //- Flag to indicate whether model activates phase change model 00102 virtual bool active() const; 00103 00104 //- Update model 00105 virtual void calculate 00106 ( 00107 const scalar dt, 00108 const label cellI, 00109 const scalar d, 00110 const scalar T, 00111 const scalar pc, 00112 const scalar Tc, 00113 const scalar nuc, 00114 const vector& Ur, 00115 scalarField& dMassPC 00116 ) const; 00117 }; 00118 00119 00120 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00121 00122 } // End namespace Foam 00123 00124 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00125 00126 #ifdef NoRepository 00127 # include "LiquidEvaporation.C" 00128 #endif 00129 00130 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00131 00132 #endif 00133 00134 // ************************************************************************* // |