43 int main(
int argc,
char *argv[])
59 "read Chemkin thermo file in new format" 71 writeEntry(reactionsFile,
"elements", cr.elementNames());
73 writeEntry(reactionsFile,
"species", cr.species());
75 cr.reactions().write(reactionsFile);
81 cr.speciesThermo().
write(os);
84 wordList speciesList(thermoDict.toc());
90 forAll(cr.specieComposition()[speciesList[si]], ei)
94 cr.specieComposition()[speciesList[si]][ei].name(),
95 cr.specieComposition()[speciesList[si]][ei].nAtoms()
99 thermoDict.subDict(speciesList[si]).add(
"elements", elementsDict);
#define forAll(list, i)
Loop across all elements in list.
A list of keyword definitions, which are a keyword followed by any number of values (e...
static unsigned int defaultPrecision()
Return the default precision.
Ostream & endl(Ostream &os)
Add newline and flush stream.
bool optionFound(const word &opt) const
Return true if the named option is found.
static SLList< string > validArgs
A list of valid (mandatory) arguments.
Simple extension of ReactionThermo to handle reaction kinetics in addition to the equilibrium thermod...
Extract command arguments and options from the supplied argc and argv parameters. ...
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
virtual Ostream & write(const token &)
Write next token to stream.
A wordList with hashed indices for faster lookup by name.
Input from memory buffer stream.
string str() const
Return the string.
static void addBoolOption(const word &opt, const string &usage="")
Add to a bool option to validOptions with usage information.
Foam::argList args(argc, argv)
Output to memory buffer stream.