1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
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
13 the Free Software Foundation, either version 3 of the License, or
14 (at your 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, see <http://www.gnu.org/licenses/>.
25 COxidationKineticDiffusionLimitedRate
28 Kinetic/diffusion limited rate surface reaction model for coal parcels.
33 where Sb is the stoichiometry of the reaction
35 \*---------------------------------------------------------------------------*/
37 #ifndef COxidationKineticDiffusionLimitedRate_H
38 #define COxidationKineticDiffusionLimitedRate_H
40 #include "SurfaceReactionModel.H"
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 // Forward class declarations
48 template<class CloudType>
49 class COxidationKineticDiffusionLimitedRate;
51 /*---------------------------------------------------------------------------*\
52 Class COxidationKineticDiffusionLimitedRate Declaration
53 \*---------------------------------------------------------------------------*/
55 template<class CloudType>
56 class COxidationKineticDiffusionLimitedRate
58 public SurfaceReactionModel<CloudType>
64 //- Stoichiometry of reaction
67 //- Mass diffusion limited rate constant, C1
70 //- Kinetics limited rate pre-exponential constant, C2
73 //- Kinetics limited rate activation energy
79 //- Cs positions in global/local lists
82 //- O2 position in global list
85 //- CO2 positions in global list
89 // Local copies of thermo properties
91 //- Molecular weight of C [kg/kmol]
94 //- Molecular weight of O2 [kg/kmol]
97 //- Formation enthalpy for CO2 [J/kg]
103 //- Runtime type information
104 TypeName("COxidationKineticDiffusionLimitedRate");
109 //- Construct from dictionary
110 COxidationKineticDiffusionLimitedRate
112 const dictionary& dict,
117 COxidationKineticDiffusionLimitedRate
119 const COxidationKineticDiffusionLimitedRate<CloudType>& srm
122 //- Construct and return a clone
123 virtual autoPtr<SurfaceReactionModel<CloudType> > clone() const
125 return autoPtr<SurfaceReactionModel<CloudType> >
127 new COxidationKineticDiffusionLimitedRate<CloudType>(*this)
133 virtual ~COxidationKineticDiffusionLimitedRate();
138 //- Update surface reactions
139 virtual scalar calculate
149 const scalarField& YGas,
150 const scalarField& YLiquid,
151 const scalarField& YSolid,
152 const scalarField& YMixture,
154 scalarField& dMassGas,
155 scalarField& dMassLiquid,
156 scalarField& dMassSolid,
157 scalarField& dMassSRCarrier
162 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
164 } // End namespace Foam
166 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
169 #include "COxidationKineticDiffusionLimitedRate.C"
172 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
176 // ************************************************************************* //