55 int main(
int argc,
char *argv[])
60 Info<<
nl <<
"Reading thermodynamic data IOdictionary" <<
endl;
78 const scalar T = 3000.0;
81 thermo O2(thermoData.subDict(
"O2")); O2 *= O2.W();
82 thermo N2(thermoData.subDict(
"N2")); N2 *= N2.W();
85 thermo H2(thermoData.subDict(
"H2")); H2 *= H2.W();
86 thermo OH(thermoData.subDict(
"OH")); OH *= OH.W();
87 thermo H(thermoData.subDict(
"H")); H *= H.W();
88 thermo O(thermoData.subDict(
"O")); O *= O.W();
91 thermo CO2(thermoData.subDict(
"CO2")); CO2 *= CO2.W();
92 thermo H2O(thermoData.subDict(
"H2O")); H2O *= H2O.W();
93 thermo CO(thermoData.subDict(
"CO")); CO *= CO.W();
99 new thermo(CO2 == CO + 0.5*O2)
109 new thermo(H2O == H2 + 0.5*O2)
120 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.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
psiReactionThermo & thermo
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
Template class for non-intrusive linked PtrLists.
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.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...