1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | foam-extend: Open Source CFD
4 \\ / O peration | Version: 3.2
5 \\ / A nd | Web: http://www.foam-extend.org
6 \\/ M anipulation | For copyright notice see file Copyright
7 -------------------------------------------------------------------------------
9 This file is part of foam-extend.
11 foam-extend 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 3 of the License, or (at your
14 option) any later version.
16 foam-extend is distributed in the hope that it will be useful, but
17 WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 General Public License for more details.
21 You should have received a copy of the GNU General Public License
22 along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
27 Calculates the equilibrium level of carbon monoxide
29 \*---------------------------------------------------------------------------*/
32 #include "objectRegistry.H"
34 #include "dictionary.H"
36 #include "OSspecific.H"
39 #include "specieThermo.H"
40 #include "janafThermo.H"
41 #include "perfectGas.H"
42 #include "SLPtrList.H"
46 typedef specieThermo<janafThermo<perfectGas> > thermo;
48 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
51 int main(int argc, char *argv[])
54 # include "setRootCase.H"
56 # include "createTime.H"
58 Info<< nl << "Reading Burcat data IOdictionary" << endl;
77 SLPtrList<thermo> EQreactions;
83 thermo(CpData.lookup("CO2"))
85 thermo(CpData.lookup("CO"))
86 + 0.5*thermo(CpData.lookup("O2"))
94 thermo(CpData.lookup("O2"))
96 2.0*thermo(CpData.lookup("O"))
104 thermo(CpData.lookup("H2O"))
106 thermo(CpData.lookup("H2"))
107 + 0.5*thermo(CpData.lookup("O2"))
115 thermo(CpData.lookup("H2O"))
117 thermo(CpData.lookup("H"))
118 + thermo(CpData.lookup("OH"))
125 SLPtrList<thermo>::iterator EQreactionsIter = EQreactions.begin();
126 EQreactionsIter != EQreactions.end();
130 Info<< "Kc(EQreactions) = " << EQreactionsIter().Kc(T) << endl;
134 Info<< nl << "end" << endl;
140 // ************************************************************************* //