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/>.
27 Calculates the equilibrium level of carbon monoxide
29 \*---------------------------------------------------------------------------*/
33 #include "dictionary.H"
35 #include "OSspecific.H"
38 #include "specieThermo.H"
39 #include "janafThermo.H"
40 #include "perfectGas.H"
41 #include "SLPtrList.H"
45 typedef specieThermo<janafThermo<perfectGas> > thermo;
47 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
50 int main(int argc, char *argv[])
53 # include "setRootCase.H"
54 # include "createTime.H"
56 Info<< nl << "Reading Burcat data IOdictionary" << endl;
65 IOobject::MUST_READ_IF_MODIFIED,
75 SLPtrList<thermo> EQreactions;
81 thermo(CpData.lookup("CO2"))
83 thermo(CpData.lookup("CO"))
84 + 0.5*thermo(CpData.lookup("O2"))
92 thermo(CpData.lookup("O2"))
94 2.0*thermo(CpData.lookup("O"))
102 thermo(CpData.lookup("H2O"))
104 thermo(CpData.lookup("H2"))
105 + 0.5*thermo(CpData.lookup("O2"))
113 thermo(CpData.lookup("H2O"))
115 thermo(CpData.lookup("H"))
116 + thermo(CpData.lookup("OH"))
121 forAllConstIter(SLPtrList<thermo>, EQreactions, iter)
123 Info<< "Kc(EQreactions) = " << iter().Kc(T) << endl;
126 Info<< nl << "end" << endl;
132 // ************************************************************************* //