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 COxidationDiffusionLimitedRate
28 Diffusion limited rate surface reaction model for coal parcels. Limited to:
32 where Sb is the stoichiometry of the reaction
34 \*---------------------------------------------------------------------------*/
36 #ifndef COxidationDiffusionLimitedRate_H
37 #define COxidationDiffusionLimitedRate_H
39 #include "SurfaceReactionModel.H"
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 // Forward class declarations
44 template<class CloudType>
45 class COxidationDiffusionLimitedRate;
49 /*---------------------------------------------------------------------------*\
50 Class COxidationDiffusionLimitedRate Declaration
51 \*---------------------------------------------------------------------------*/
53 template<class CloudType>
54 class COxidationDiffusionLimitedRate
56 public SurfaceReactionModel<CloudType>
62 //- Stoichiometry of reaction
65 //- Diffusion coefficient of oxidants [m2/s]
71 //- Cs positions in global/local lists
74 //- O2 position in global list
77 //- CO2 positions in global list
81 // Local copies of thermo properties
83 //- Molecular weight of C [kg/kmol]
86 //- Molecular weight of O2 [kg/kmol]
89 //- Formation enthalpy for CO2 [J/kg]
95 //- Runtime type information
96 TypeName("COxidationDiffusionLimitedRate");
101 //- Construct from dictionary
102 COxidationDiffusionLimitedRate
104 const dictionary& dict,
109 COxidationDiffusionLimitedRate
111 const COxidationDiffusionLimitedRate<CloudType>& srm
114 //- Construct and return a clone
115 virtual autoPtr<SurfaceReactionModel<CloudType> > clone() const
117 return autoPtr<SurfaceReactionModel<CloudType> >
119 new COxidationDiffusionLimitedRate<CloudType>(*this)
125 virtual ~COxidationDiffusionLimitedRate();
130 //- Update surface reactions
131 virtual scalar calculate
141 const scalarField& YGas,
142 const scalarField& YLiquid,
143 const scalarField& YSolid,
144 const scalarField& YMixture,
146 scalarField& dMassGas,
147 scalarField& dMassLiquid,
148 scalarField& dMassSolid,
149 scalarField& dMassSRCarrier
154 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
156 } // End namespace Foam
158 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
161 #include "COxidationDiffusionLimitedRate.C"
164 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
168 // ************************************************************************* //