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 auto cstrIter = dictionaryConstructorTablePtr_->cfind(methodTypeName);
55 if (!cstrIter.found())
58 thisCmpts.
append(word::null);
59 thisCmpts.
append(CompType::typeName);
62 basicThermo::splitThermoName(ThermoType::typeName(), 5)
85 : dictionaryConstructorTablePtr_->sortedToc()
90 basicThermo::splitThermoName(validName, 7)
92 const wordList& cmpts = validCmpts.last();
95 for (label i = 1; i < cmpts.size() && isValid; ++i)
97 isValid = isValid && cmpts[i] == thisCmpts[i];
102 validNames.
append(cmpts[0]);
111 *dictionaryConstructorTablePtr_
113 <<
"All " << validCmpts[0][0] <<
'/' << validCmpts[0][1]
114 <<
"/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.
BasicChemistryModel< psiReactionThermo > & chemistry
void append(const T &val)
Append an element at the end of the list.
Ostream & endl(Ostream &os)
Add newline and flush stream.
messageStream Info
Information stream (uses stdout - output is on the master only)
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.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
static autoPtr< chemistryTabulationMethod > New(const IOdictionary &dict, TDACChemistryModel< CompType, ThermoType > &chemistry)