41 IOobject::groupName(
"chemistryProperties", phaseName),
52 chemistryDict.
subDict(
"chemistryType")
55 Info<<
"Selecting chemistry type " << chemistryTypeDict <<
endl;
58 const char* cmptNames[nCmpt] =
82 IOobject::MUST_READ_IF_MODIFIED,
89 word solidThermoTypeName
91 word(solidThermoTypeDict.lookup(
"transport")) +
'<' 92 +
word(solidThermoTypeDict.lookup(
"thermo")) +
'<' 93 +
word(solidThermoTypeDict.lookup(
"equationOfState")) +
'<' 94 +
word(solidThermoTypeDict.lookup(
"specie")) +
">>," 95 +
word(solidThermoTypeDict.lookup(
"energy")) +
">" 99 word gasThermoTypeName
101 word(gasThermoTypeDict.lookup(
"transport")) +
'<' 102 +
word(gasThermoTypeDict.lookup(
"thermo")) +
'<' 103 +
word(gasThermoTypeDict.lookup(
"equationOfState")) +
'<' 104 +
word(gasThermoTypeDict.lookup(
"specie")) +
">>," 105 +
word(gasThermoTypeDict.lookup(
"energy")) +
">" 109 word chemistryTypeName
111 word(chemistryTypeDict.lookup(
"chemistrySolver")) +
'<' 112 +
word(chemistryTypeDict.lookup(
"chemistryThermo")) +
'<' 114 + solidThermoTypeName +
',' + gasThermoTypeName +
">>" 117 Info<<
"chemistryTypeName " << chemistryTypeName <<
endl;
119 fvMeshConstructorTable::iterator cstrIter =
120 fvMeshConstructorTablePtr_->find(chemistryTypeName);
122 if (cstrIter == fvMeshConstructorTablePtr_->end())
125 <<
"Unknown " << typeName <<
" type " <<
nl 126 <<
"chemistryType" << chemistryTypeDict <<
nl <<
nl 127 <<
"Valid " << typeName <<
" types are:" 133 fvMeshConstructorTablePtr_->sortedToc()
135 Info<< validChemistryTypeNames <<
endl;
141 validChemistryTypeNames.size() + 1
144 validChemistryTypeNameCmpts[0].
setSize(nCmpt);
145 forAll(validChemistryTypeNameCmpts[0], j)
147 validChemistryTypeNameCmpts[0][j] = cmptNames[j];
151 forAll(validChemistryTypeNames, i)
153 validChemistryTypeNameCmpts[i+1] = basicThermo::splitThermoName
155 validChemistryTypeNames[i],
#define forAll(list, i)
Loop across all elements in list.
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.
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
static autoPtr< basicSolidChemistryModel > New(const fvMesh &mesh, const word &phaseName=word::null)
Selector.
Ostream & endl(Ostream &os)
Add newline and flush stream.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
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 &)
void setSize(const label)
Reset size of List.
word dictName("noiseDict")
Mesh data needed to do the Finite Volume discretisation.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
const Time & time() const
Return the top-level database.