1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-2009 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 the
13 Free Software Foundation; either version 2 of the License, or (at your
14 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, write to the Free Software Foundation,
23 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
28 Calculates the equilibrium level of carbon monoxide
30 \*---------------------------------------------------------------------------*/
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 // ************************************************************************* //