Go to the documentation of this file.
60 int main(
int argc,
char *argv[])
64 "Calculate the equilibrium level of carbon monoxide."
73 Info<<
nl <<
"Reading thermodynamic data IOdictionary" <<
endl;
91 const scalar
T = 3000.0;
94 thermo O2(thermoData.subDict(
"O2")); O2 *= O2.W();
98 thermo H2(thermoData.subDict(
"H2")); H2 *= H2.W();
99 thermo OH(thermoData.subDict(
"OH")); OH *= OH.W();
100 thermo H(thermoData.subDict(
"H"));
H *=
H.W();
101 thermo O(thermoData.subDict(
"O")); O *= O.W();
104 thermo CO2(thermoData.subDict(
"CO2")); CO2 *= CO2.W();
106 thermo CO(thermoData.subDict(
"CO")); CO *= CO.W();
112 new thermo(CO2 == CO + 0.5*O2)
131 for (
const thermo& react : EQreactions)
133 Info<<
"Kc(EQreactions) = " << react.Kc(P,
T) <<
endl;
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
Defines the attributes of an object for which implicit objectRegistry management is supported,...
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
Non-intrusive singly-linked pointer list.
psiReactionThermo & thermo
volScalarField H(IOobject("H", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), mesh, dimensionedScalar(dimLength, Zero))
Thermodynamics mapping class to expose the absolute enthalpy functions.
static void addNote(const string ¬e)
Add extra notes for the usage information.
Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the templa...
Ostream & endl(Ostream &os)
Add newline and flush stream.
scalar W() const
Molecular weight [kg/kmol].
Template class for non-intrusive linked PtrLists.
static void noFunctionObjects(bool addWithOption=false)
Remove '-noFunctionObjects' option and ignore any occurrences.
messageStream Info
Information stream (uses stdout - output is on the master only)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
Istream and Ostream manipulators taking arguments.
static void noParallel()
Remove the parallel options.
const word & constant() const
Return constant name.