Go to the documentation of this file.
40 thermo.phasePropertyName(
"chemistryProperties"),
41 thermo.db().time().constant(),
50 chemistryDict.
subDict(
"chemistryType");
52 Info<<
"Selecting chemistry type " << chemistryTypeDict <<
endl;
54 std::initializer_list<const char*> cmptNames
76 thermo.db().time().constant(),
85 const word solidThermoTypeName
87 solidThermoTypeDict.
get<
word>(
"transport") +
'<'
88 + solidThermoTypeDict.
get<
word>(
"thermo") +
'<'
89 + solidThermoTypeDict.
get<
word>(
"equationOfState") +
'<'
90 + solidThermoTypeDict.
get<
word>(
"specie") +
">>,"
91 + solidThermoTypeDict.
get<
word>(
"energy") +
">"
95 const word gasThermoTypeName
97 gasThermoTypeDict.
get<
word>(
"transport") +
'<'
98 + gasThermoTypeDict.
get<
word>(
"thermo") +
'<'
99 + gasThermoTypeDict.
get<
word>(
"equationOfState") +
'<'
100 + gasThermoTypeDict.
get<
word>(
"specie") +
">>,"
101 + gasThermoTypeDict.
get<
word>(
"energy") +
">"
105 const word chemistryTypeName
107 chemistryTypeDict.
get<
word>(
"chemistrySolver") +
'<'
108 + chemistryTypeDict.
get<
word>(
"chemistryThermo") +
'<'
110 + solidThermoTypeName +
',' + gasThermoTypeName +
">>"
113 Info<<
"chemistryTypeName " << chemistryTypeName <<
endl;
115 auto cstrIter = thermoConstructorTablePtr_->cfind(chemistryTypeName);
117 if (!cstrIter.found())
119 const int nCmpt = cmptNames.size();
126 validCmpts[0].
resize(nCmpt);
127 std::copy(cmptNames.begin(), cmptNames.end(), validCmpts[0].begin());
130 for (
const word& validName : thermoConstructorTablePtr_->sortedToc())
134 if (validCmpts[rowi].size())
139 validCmpts.resize(rowi);
147 *thermoConstructorTablePtr_
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,...
Foam::solidReactionThermo.
A class for handling words, derived from Foam::string.
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.
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
#define FatalIOErrorInLookup(ios, lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalIOError.
messageStream Info
Information stream (uses stdout - output is on the master only)
const dictionary & subDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a sub-dictionary.
Ostream & printTable(const UList< wordList > &tbl, List< std::string::size_type > &columnWidths, Ostream &os, bool headerSeparator=true)
Print a List of wordList as a table.
static wordList splitThermoName(const word &thermoName, const int nCmpt)
Split name of thermo package into a list of the components names.
void resize(const label newSize)
Adjust allocated size of list.
word dictName() const
The local dictionary name (final part of scoped name)
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
errorManipArg< error, int > exit(error &err, const int errNo=1)
static autoPtr< basicSolidChemistryModel > New(solidReactionThermo &thermo)
Selector.
const dictionary & thermoDict
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
static const word null
An empty word.