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 COxidationMurphyShaddix
28 Limited to C(s) + O2 -> CO2
30 Loosely based on the reference:
31 Murphy, J. J., Shaddix, C. R., Combustion kinetics of coal chars
32 in oxygen-enriched environments, Combustion and Flame 144,
35 \*---------------------------------------------------------------------------*/
37 #ifndef COxidationMurphyShaddix_H
38 #define COxidationMurphyShaddix_H
40 #include "SurfaceReactionModel.H"
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 // Forward class declarations
48 template<class CloudType>
49 class COxidationMurphyShaddix;
51 /*---------------------------------------------------------------------------*\
52 Class COxidationMurphyShaddix Declaration
53 \*---------------------------------------------------------------------------*/
55 template<class CloudType>
56 class COxidationMurphyShaddix
58 public SurfaceReactionModel<CloudType>
64 //- Reference diffusion constant
67 //- Reference density for reference diffusion constant
70 //- Reference temperature for reference diffusion constant
73 //- Exponent for diffusion equation
76 //- Kinetic rate coefficient
79 //- Kinetic rate activation energy
85 //- Effective molecular weight of gaseous volatiles
91 //- Maximum number of iterations
92 static label maxIters_;
94 //- Tolerance used in inner iterations
95 static scalar tolerance_;
100 //- Cs positions in global/local lists
103 //- O2 position in global list
106 //- CO2 positions in global list
110 // Local copies of thermo properties
112 //- Molecular weight of C [kg/kmol]
115 //- Molecular weight of O2 [kg/kmol]
118 //- Formation enthalpy for CO2 [J/kg]
124 //- Runtime type information
125 TypeName("COxidationMurphyShaddix");
130 //- Construct from dictionary
131 COxidationMurphyShaddix
133 const dictionary& dict,
138 COxidationMurphyShaddix
140 const COxidationMurphyShaddix<CloudType>& srm
143 //- Construct and return a clone
144 virtual autoPtr<SurfaceReactionModel<CloudType> > clone() const
146 return autoPtr<SurfaceReactionModel<CloudType> >
148 new COxidationMurphyShaddix<CloudType>(*this)
154 virtual ~COxidationMurphyShaddix();
159 //- Update surface reactions
160 virtual scalar calculate
170 const scalarField& YGas,
171 const scalarField& YLiquid,
172 const scalarField& YSolid,
173 const scalarField& YMixture,
175 scalarField& dMassGas,
176 scalarField& dMassLiquid,
177 scalarField& dMassSolid,
178 scalarField& dMassSRCarrier
183 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
185 } // End namespace Foam
187 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
190 #include "COxidationMurphyShaddix.C"
193 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
197 // ************************************************************************* //