54 int main(
int argc,
char *argv[])
59 Info<<
nl <<
"Reading thermodynamic data IOdictionary" <<
endl;
77 const scalar
T = 3000.0;
80 thermo O2(
"O2", thermoData.subDict(
"O2")); O2 *= O2.W();
84 thermo H2(
"H2", thermoData.subDict(
"H2")); H2 *= H2.W();
85 thermo OH(
"OH", thermoData.subDict(
"OH")); OH *= OH.W();
86 thermo H(
"H", thermoData.subDict(
"H")); H *= H.W();
87 thermo O(
"O", thermoData.subDict(
"O")); O *= O.W();
90 thermo CO2(
"CO2", thermoData.subDict(
"CO2")); CO2 *= CO2.W();
92 thermo CO(
"CO", thermoData.subDict(
"CO")); CO *= CO.W();
98 new thermo(CO2 == CO + 0.5*O2)
119 Info<<
"Kc(EQreactions) = " << iter().Kc(P,
T) <<
endl;
Istream and Ostream manipulators taking arguments.
Non-intrusive singly-linked pointer list.
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
void append(const T &a)
Add at tail of list.
Template class for non-intrusive linked PtrLists.
Thermodynamics mapping class to expose the absolute enthalpy functions.
Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the templa...
scalar W() const
Molecular weight [kg/kmol].
int main(int argc, char *argv[])
Ostream & endl(Ostream &os)
Add newline and flush stream.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
fluidMulticomponentThermo & thermo