48 chemistryDict.
subDict(
"chemistryType")
51 Info<<
"Selecting chemistry type " << chemistryTypeDict <<
endl;
54 const char* cmptNames[nCmpt] =
85 word solidThermoTypeName
87 word(solidThermoTypeDict.lookup(
"transport")) +
'<' 88 +
word(solidThermoTypeDict.lookup(
"thermo")) +
'<' 89 +
word(solidThermoTypeDict.lookup(
"equationOfState")) +
'<' 90 +
word(solidThermoTypeDict.lookup(
"specie")) +
">>," 91 +
word(solidThermoTypeDict.lookup(
"energy")) +
">" 95 word gasThermoTypeName
97 word(gasThermoTypeDict.lookup(
"transport")) +
'<' 98 +
word(gasThermoTypeDict.lookup(
"thermo")) +
'<' 99 +
word(gasThermoTypeDict.lookup(
"equationOfState")) +
'<' 100 +
word(gasThermoTypeDict.lookup(
"specie")) +
">>," 101 +
word(gasThermoTypeDict.lookup(
"energy")) +
">" 105 word chemistryTypeName
107 word(chemistryTypeDict.lookup(
"chemistrySolver")) +
'<' 108 +
word(chemistryTypeDict.lookup(
"chemistryThermo")) +
'<' 110 + solidThermoTypeName +
',' + gasThermoTypeName +
">>" 113 Info<<
"chemistryTypeName " << chemistryTypeName <<
endl;
115 thermoConstructorTable::iterator cstrIter =
116 thermoConstructorTablePtr_->find(chemistryTypeName);
118 if (cstrIter == thermoConstructorTablePtr_->end())
121 <<
"Unknown " << typeName <<
" type " <<
nl 122 <<
"chemistryType" << chemistryTypeDict <<
nl <<
nl 123 <<
"Valid " << typeName <<
" types are:" 129 thermoConstructorTablePtr_->sortedToc()
131 Info<< validChemistryTypeNames <<
endl;
137 validChemistryTypeNames.size() + 1
140 validChemistryTypeNameCmpts[0].
setSize(nCmpt);
141 forAll(validChemistryTypeNameCmpts[0], j)
143 validChemistryTypeNameCmpts[0][j] = cmptNames[j];
147 forAll(validChemistryTypeNames, i)
151 validChemistryTypeNames[i],
#define forAll(list, i)
Loop across all elements in list.
static word phasePropertyName(const word &name, const word &phaseName)
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Foam::solidReactionThermo.
Ostream & endl(Ostream &os)
Add newline and flush stream.
rhoReactionThermo & thermo
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
const word dictName() const
Return the local dictionary name (final part of scoped name)
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
static autoPtr< basicSolidChemistryModel > New(solidReactionThermo &thermo)
Selector.
static wordList splitThermoName(const word &thermoName, const int nCmpt)
Split name of thermo package into a list of the components names.
A class for handling words, derived from string.
const word & constant() const
Return constant name.
void printTable(const List< wordList > &, List< string::size_type > &, Ostream &)
const Time & time() const
Return time.
void setSize(const label)
Reset size of List.
const objectRegistry & db() const
Return the local objectRegistry.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...