|
|
|
COxidationDiffusionLimitedRate.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) 2008-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 COxidationDiffusionLimitedRate 00027 00028 Description 00029 Diffusion limited rate surface reaction model for coal parcels. Limited to: 00030 00031 C(s) + Sb*O2 -> CO2 00032 00033 where Sb is the stoichiometry of the reaction 00034 00035 \*---------------------------------------------------------------------------*/ 00036 00037 #ifndef COxidationDiffusionLimitedRate_H 00038 #define COxidationDiffusionLimitedRate_H 00039 00040 #include "SurfaceReactionModel.H" 00041 00042 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00043 00044 // Forward class declarations 00045 template<class CloudType> 00046 class COxidationDiffusionLimitedRate; 00047 00048 namespace Foam 00049 { 00050 /*---------------------------------------------------------------------------*\ 00051 Class COxidationDiffusionLimitedRate Declaration 00052 \*---------------------------------------------------------------------------*/ 00053 00054 template<class CloudType> 00055 class COxidationDiffusionLimitedRate 00056 : 00057 public SurfaceReactionModel<CloudType> 00058 { 00059 // Private data 00060 00061 // Model constants 00062 00063 //- Stoichiometry of reaction 00064 const scalar Sb_; 00065 00066 //- Diffusion coefficient of oxidants [m2/s] 00067 const scalar D_; 00068 00069 00070 // Addressing 00071 00072 //- Cs positions in global/local lists 00073 label CsLocalId_; 00074 00075 //- O2 position in global list 00076 label O2GlobalId_; 00077 00078 //- CO2 positions in global list 00079 label CO2GlobalId_; 00080 00081 00082 // Local copies of thermo properties 00083 00084 //- Molecular weight of C [kg/kmol] 00085 scalar WC_; 00086 00087 //- Molecular weight of O2 [kg/kmol] 00088 scalar WO2_; 00089 00090 //- Chemical enthalpy of CO2 [J/kg] 00091 scalar HcCO2_; 00092 00093 00094 public: 00095 00096 //- Runtime type information 00097 TypeName("COxidationDiffusionLimitedRate"); 00098 00099 00100 // Constructors 00101 00102 //- Construct from dictionary 00103 COxidationDiffusionLimitedRate 00104 ( 00105 const dictionary& dict, 00106 CloudType& owner 00107 ); 00108 00109 00110 //- Destructor 00111 virtual ~COxidationDiffusionLimitedRate(); 00112 00113 00114 // Member Functions 00115 00116 //- Flag to indicate whether model activates surface reaction model 00117 virtual bool active() const; 00118 00119 //- Update surface reactions 00120 virtual scalar calculate 00121 ( 00122 const scalar dt, 00123 const label cellI, 00124 const scalar d, 00125 const scalar T, 00126 const scalar Tc, 00127 const scalar pc, 00128 const scalar rhoc, 00129 const scalar mass, 00130 const scalarField& YGas, 00131 const scalarField& YLiquid, 00132 const scalarField& YSolid, 00133 const scalarField& YMixture, 00134 const scalarField& dMassVolatile, 00135 scalarField& dMassGas, 00136 scalarField& dMassLiquid, 00137 scalarField& dMassSolid, 00138 scalarField& dMassSRCarrier 00139 ) const; 00140 }; 00141 00142 00143 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00144 00145 } // End namespace Foam 00146 00147 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00148 00149 #ifdef NoRepository 00150 #include "COxidationDiffusionLimitedRate.C" 00151 #endif 00152 00153 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00154 00155 #endif 00156 00157 // ************************************************************************* // |