1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2008-2009 OpenCFD Ltd.
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
11 OpenFOAM is free software; you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by the
13 Free Software Foundation; either version 2 of the License, or (at your
14 option) any later version.
16 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 You should have received a copy of the GNU General Public License
22 along with OpenFOAM; if not, write to the Free Software Foundation,
23 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26 COxidationKineticDiffusionLimitedRate
29 Kinetic/diffusion limited rate surface reaction model for coal parcels.
34 where Sb is the stoichiometry of the reaction
36 \*---------------------------------------------------------------------------*/
38 #ifndef COxidationKineticDiffusionLimitedRate_H
39 #define COxidationKineticDiffusionLimitedRate_H
41 #include "SurfaceReactionModel.H"
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
48 // Forward class declarations
49 template<class CloudType>
50 class COxidationKineticDiffusionLimitedRate;
52 /*---------------------------------------------------------------------------*\
53 Class COxidationKineticDiffusionLimitedRate Declaration
54 \*---------------------------------------------------------------------------*/
56 template<class CloudType>
57 class COxidationKineticDiffusionLimitedRate
59 public SurfaceReactionModel<CloudType>
65 //- Stoichiometry of reaction
68 //- Mass diffusion limited rate constant, C1
71 //- Kinetics limited rate pre-exponential constant, C2
74 //- Kinetics limited rate activation energy
80 //- Cs positions in global/local lists
83 //- O2 position in global list
86 //- CO2 positions in global list
90 // Local copies of thermo properties
92 //- Molecular weight of C [kg/kmol]
95 //- Molecular weight of O2 [kg/kmol]
98 //- Chemical enthalpy of CO2 [J/kg]
104 //- Runtime type information
105 TypeName("COxidationKineticDiffusionLimitedRate");
110 //- Construct from dictionary
111 COxidationKineticDiffusionLimitedRate
113 const dictionary& dict,
119 virtual ~COxidationKineticDiffusionLimitedRate();
124 //- Flag to indicate whether model activates surface reaction model
125 virtual bool active() const;
127 //- Update surface reactions
128 virtual scalar calculate
138 const scalarField& YGas,
139 const scalarField& YLiquid,
140 const scalarField& YSolid,
141 const scalarField& YMixture,
142 const scalarField& dMassVolatile,
143 scalarField& dMassGas,
144 scalarField& dMassLiquid,
145 scalarField& dMassSolid,
146 scalarField& dMassSRCarrier
151 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
153 } // End namespace Foam
155 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
158 #include "COxidationKineticDiffusionLimitedRate.C"
161 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
165 // ************************************************************************* //