1
/*---------------------------------------------------------------------------*\
3
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5
\\ / A nd | Copyright (C) 2013-2014 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
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
COxidationIntrinsicRate
28
Intrinsic char surface reaction mndel
32
where Sb is the stoichiometry of the reaction
34
\*---------------------------------------------------------------------------*/
36
#ifndef COxidationIntrinsicRate_H
37
#define COxidationIntrinsicRate_H
39
#include "SurfaceReactionModel.H"
41
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43
// Forward class declarations
44
template<class CloudType>
45
class COxidationIntrinsicRate;
49
/*---------------------------------------------------------------------------*\
50
Class COxidationIntrinsicRate Declaration
51
\*---------------------------------------------------------------------------*/
53
template<class CloudType>
54
class COxidationIntrinsicRate
56
public SurfaceReactionModel<CloudType>
62
//- Stoichiometry of reaction []
65
//- Mass diffusion limited rate constant
68
//- Mean pore radius [m]
71
//- Char porosity [] = 1 - rho_apparent/rho_true
74
//- Pre-exponential factor
80
//- Char specific internal area [m2/kg]
83
//- Pore tortuosity []; default to sqrt(2)
89
//- Cs positions in global/local lists
92
//- O2 position in global list
95
//- CO2 positions in global list
99
// Local copies of thermo properties
101
//- Molecular weight of C [kg/kmol]
104
//- Molecular weight of O2 [kg/kmol]
107
//- Formation enthalpy for CO2 [J/kg]
113
//- Runtime type information
114
TypeName("COxidationIntrinsicRate");
119
//- Construct from dictionary
120
COxidationIntrinsicRate
122
const dictionary& dict,
127
COxidationIntrinsicRate
129
const COxidationIntrinsicRate<CloudType>& srm
132
//- Construct and return a clone
133
virtual autoPtr<SurfaceReactionModel<CloudType> > clone() const
135
return autoPtr<SurfaceReactionModel<CloudType> >
137
new COxidationIntrinsicRate<CloudType>(*this)
143
virtual ~COxidationIntrinsicRate();
148
//- Update surface reactions
149
virtual scalar calculate
159
const scalarField& YGas,
160
const scalarField& YLiquid,
161
const scalarField& YSolid,
162
const scalarField& YMixture,
164
scalarField& dMassGas,
165
scalarField& dMassLiquid,
166
scalarField& dMassSolid,
167
scalarField& dMassSRCarrier
172
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
174
} // End namespace Foam
176
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
179
#include "COxidationIntrinsicRate.C"
182
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
186
// ************************************************************************* //