54 int main(
int argc,
char *argv[])
59 Info<<
nl <<
"Reading thermodynamic data IOdictionary" <<
endl;
77 const scalar T = 3000.0;
80 thermo O2(thermoData.subDict(
"O2")); O2 *= O2.W();
81 thermo N2(thermoData.subDict(
"N2")); N2 *= N2.W();
84 thermo H2(thermoData.subDict(
"H2")); H2 *= H2.W();
85 thermo OH(thermoData.subDict(
"OH")); OH *= OH.W();
86 thermo H(thermoData.subDict(
"H")); H *= H.W();
87 thermo O(thermoData.subDict(
"O")); O *= O.W();
90 thermo CO2(thermoData.subDict(
"CO2")); CO2 *= CO2.W();
91 thermo H2O(thermoData.subDict(
"H2O")); H2O *= H2O.W();
92 thermo CO(thermoData.subDict(
"CO")); CO *= CO.W();
98 new thermo(CO2 == CO + 0.5*O2)
108 new thermo(H2O == H2 + 0.5*O2)
119 Info<<
"Kc(EQreactions) = " << iter().Kc(P, T) <<
endl;
Ostream & endl(Ostream &os)
Add newline and flush stream.
Thermodynamics mapping class to expose the absolute enthalpy functions.
rhoReactionThermo & thermo
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
Template class for non-intrusive linked PtrLists.
const word & constant() const
Return constant name.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
Istream and Ostream manipulators taking arguments.
void append(const T * &a)
Add at tail of list.
Non-intrusive singly-linked pointer list.
Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the templa...
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...