43 int main(
int argc,
char *argv[])
59 "read Chemkin thermo file in new format" 72 thermoDict.
add(
"species", cr.species());
77 speciesThermo.
write(os);
79 thermoDict.
merge(speciesThermoDict);
93 const word specieName(iter.key());
96 forAll(cr.specieComposition()[specieName], ei)
100 cr.specieComposition()[specieName][ei].name(),
101 cr.specieComposition()[specieName][ei].nAtoms()
105 thermoDict.
subDict(specieName).
add(
"elements", elementsDict);
void write(Ostream &, const bool subDict=true) const
Write dictionary, normally with sub-dictionary formatting.
#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.
A HashTable specialization for hashing pointers.
void write(Ostream &os) const
Write.
bool add(entry *, bool mergeEntry=false)
Add a new entry.
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
A class for handling words, derived from string.
Extract command arguments and options from the supplied argc and argv parameters. ...
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
A wordList with hashed indices for faster lookup by name.
Input from memory buffer stream.
string str() const
Return the string.
bool merge(const dictionary &)
Merge entries from the given dictionary.
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.