48int main(
int argc,
char *argv[])
55 "Convert CHEMKINIII thermodynamics and reaction data files into"
71 "Read Chemkin thermo file in new format"
76 const bool newFormat =
args.found(
"newFormat");
93 reactionsFile.writeEntry(
"elements", cr.elementNames()) <<
nl;
94 reactionsFile.writeEntry(
"species", cr.species()) <<
nl;
96 cr.reactions().write(reactionsFile);
103 cr.speciesThermo().write(
os);
111 const word& speciesName = dEntry.keyword();
116 for (
const specieElement& elem : cr.specieComposition()[speciesName])
118 elemDict.add(elem.name(), elem.nAtoms());
121 speciesDict.
add(
"elements", elemDict);
Input/output from string buffers.
static unsigned int minPrecision(unsigned int prec) noexcept
Set the minimum default precision.
Similar to IStringStream but using an externally managed buffer for its input. This allows the input ...
An OSstream with internal List storage.
Output to file stream as an OSstream, normally using std::ofstream for the actual output.
Extract command arguments and options from the supplied argc and argv parameters.
static void noFunctionObjects(bool addWithOption=false)
Remove '-noFunctionObjects' option and ignore any occurrences.
static void addArgument(const string &argName, const string &usage="")
Append a (mandatory) argument to validArgs.
static void addBoolOption(const word &optName, const string &usage="", bool advanced=false)
Add a bool option to validOptions with usage information.
static void noParallel()
Remove the parallel options.
static void addNote(const string ¬e)
Add extra notes for the usage information.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
entry * add(entry *entryPtr, bool mergeEntry=false)
Add a new entry.
A keyword and a list of tokens is an 'entry'.
A class for handling file names.
A class for handling words, derived from Foam::string.
const dictionary & thermoDict
OBJstream os(runTime.globalPath()/outputName)
messageStream Info
Information stream (stdout output on master, null elsewhere).
hashedWordList speciesTable
A table of species as a hashedWordList.
Ostream & endl(Ostream &os)
Add newline and flush stream.
constexpr char nl
The newline '\n' character (0x0a).
Foam::argList args(argc, argv)