Go to the documentation of this file.
34 template<
class CompType,
class ThermoType>
44 const word methodName(tabulationDict.
get<
word>(
"method"));
46 Info<<
"Selecting chemistry tabulation method " << methodName <<
endl;
47 const word methodTypeName
50 +
'<' + CompType::typeName +
',' + ThermoType::typeName() +
'>'
53 const auto& cnstrTable = *(dictionaryConstructorTablePtr_);
55 auto* ctorPtr = cnstrTable.lookup(methodTypeName,
nullptr);
61 constexpr
const int nCmpt = 7;
89 wordList cmpts(basicThermo::splitThermoName(validName, nCmpt));
97 validCmpts.
append(std::move(cmpts));
109 if (validCmpts.size() > 1)
112 <<
"All " << validCmpts[0][0] <<
'/' << validCmpts[0][1]
113 <<
"/thermoPhysics combinations:" <<
nl <<
nl;
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
A class for handling words, derived from Foam::string.
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
BasicChemistryModel< psiReactionThermo > & chemistry
Ostream & endl(Ostream &os)
Add newline and flush stream.
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
messageStream Info
Information stream (stdout output on master, null elsewhere)
DynamicList< T, SizeMin > & append(const T &val)
Append an element to the end of this list.
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.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
#define FatalErrorInLookup(lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
List< word > names(const UPtrList< T > &list, const UnaryMatchPredicate &matcher)
static autoPtr< chemistryTabulationMethod > New(const IOdictionary &dict, TDACChemistryModel< CompType, ThermoType > &chemistry)