43 int main(
int argc,
char *argv[])
56 "read Chemkin thermo file in new format"
63 "set the write precision"
79 thermoDict.
add(
"species", cr.species());
84 cr.speciesThermo().
write(os);
86 thermoDict.
merge(speciesThermoDict);
100 const word specieName(iter.key());
103 forAll(cr.specieComposition()[specieName], ei)
107 cr.specieComposition()[specieName][ei].name(),
108 cr.specieComposition()[specieName][ei].nAtoms()
112 thermoDict.
subDict(specieName).
add(
"elements", elementsDict);
#define forAll(list, i)
Loop across all elements in list.
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
A HashTable specialisation for hashing pointers.
static unsigned int defaultPrecision()
Return the default precision.
Input from memory buffer stream.
virtual Ostream & write(const char)
Write character.
Output to memory buffer stream.
string str() const
Return the string.
Extract command arguments and options from the supplied argc and argv parameters.
static void addOption(const word &opt, const string ¶m="", const string &usage="")
Add to an option to validOptions with usage information.
static void addBoolOption(const word &opt, const string &usage="")
Add to a bool option to validOptions with usage information.
bool optionFound(const word &opt) const
Return true if the named option is found.
bool optionReadIfPresent(const word &opt, T &) const
Read a value from the named option if present.
static SLList< string > validArgs
A list of valid (mandatory) arguments.
A list of keyword definitions, which are a keyword followed by any number of values (e....
void write(Ostream &, const bool subDict=true) const
Write dictionary, normally with sub-dictionary formatting.
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
bool add(entry *, bool mergeEntry=false)
Add a new entry.
bool merge(const dictionary &)
Merge entries from the given dictionary.
A class for handling words, derived from string.
int main(int argc, char *argv[])
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Foam::argList args(argc, argv)