31 template<
class CompType,
class ThermoType>
43 "thermophysicalProperties",
46 IOobject::MUST_READ_IF_MODIFIED,
54 if (thermoDict.
isDict(
"thermoType"))
58 word(thermoTypeDict.lookup(
"transport")) +
'<' 59 +
word(thermoTypeDict.lookup(
"thermo")) +
'<' 60 +
word(thermoTypeDict.lookup(
"equationOfState")) +
'<' 61 +
word(thermoTypeDict.lookup(
"specie")) +
">>," 62 +
word(thermoTypeDict.lookup(
"energy")) +
">";
67 <<
"thermoType is in the old format and must be upgraded" 73 word chemistryTabulationMethodName =
74 word(tabdict.lookup(
"method")) +
'<' 76 + thermoTypeName +
'>';
78 typename dictionaryConstructorTable::iterator cstrIter =
79 dictionaryConstructorTablePtr_->find(chemistryTabulationMethodName);
81 if (cstrIter == dictionaryConstructorTablePtr_->end())
84 <<
"Unknown chemistryTabulationMethodType type " 85 << chemistryTabulationMethodName
87 <<
"Valid chemistryTabulationMethodType types are :" <<
endl 88 << dictionaryConstructorTablePtr_->toc()
Extends chemistryModel by adding the TDAC method.
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.
Ostream & endl(Ostream &os)
Add newline and flush stream.
bool isDict(const word &) const
Check if entry is a sub-dictionary.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
A class for handling words, derived from string.
const word & constant() const
Return constant name.
const Time & time() const
Return time.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
psiChemistryModel & chemistry
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
const objectRegistry & db() const
Return the local objectRegistry.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
static autoPtr< chemistryTabulationMethod > New(const IOdictionary &dict, TDACChemistryModel< CompType, ThermoType > &chemistry)
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.