Go to the documentation of this file.
34 template<
class CompType,
class ThermoType>
44 const word methodName(reductionDict.
get<
word>(
"method"));
46 Info<<
"Selecting chemistry reduction method " << methodName <<
endl;
48 const word methodTypeName
51 +
'<' + CompType::typeName +
',' + ThermoType::typeName() +
'>'
54 const auto& cnstrTable = *(dictionaryConstructorTablePtr_);
56 auto* ctorPtr = cnstrTable.lookup(methodTypeName,
nullptr);
62 constexpr
const int nCmpt = 7;
91 wordList cmpts(basicThermo::splitThermoName(validName, nCmpt));
99 validCmpts.
append(std::move(cmpts));
110 if (validCmpts.size() > 1)
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...
static autoPtr< chemistryReductionMethod< CompType, ThermoType > > New(const IOdictionary &dict, TDACChemistryModel< CompType, ThermoType > &chemistry)
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)
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
DynamicList< T, SizeMin > & append(const T &val)
Ostream & printTable(const UList< wordList > &tbl, List< std::string::size_type > &columnWidths, Ostream &os, bool headerSeparator=true)
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
#define FatalErrorInLookup(lookupTag, lookupName, lookupTable)
errorManipArg< error, int > exit(error &err, const int errNo=1)
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
List< word > names(const UPtrList< T > &list, const UnaryMatchPredicate &matcher)