34template<
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;
99 validCmpts.
append(std::move(cmpts));
110 if (validCmpts.
size() > 1)
113 <<
"All " << validCmpts[0][0] <<
'/' << validCmpts[0][1]
114 <<
"/thermoPhysics combinations:" <<
nl <<
nl;
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
void append(const T &val)
Copy append an element to the end of this list.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
Extends StandardChemistryModel by adding the TDAC method.
bool empty() const noexcept
True if List is empty (ie, size() is zero).
void size(const label n)
Older name for setAddressableSize.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
static wordList splitThermoName(const std::string &thermoName, const int nExpectedCmpts)
Split thermo package name into a list of components names.
static autoPtr< chemistryReductionMethod< CompType, ThermoType > > New(const IOdictionary &dict, TDACChemistryModel< CompType, ThermoType > &chemistry)
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a T. FatalIOError if not found, or if the number of tokens is incorrect.
A class for handling words, derived from Foam::string.
BasicChemistryModel< psiReactionThermo > & chemistry
#define FatalErrorInLookup(lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalError.
List< word > wordList
List of word.
messageStream Info
Information stream (stdout output on master, null elsewhere).
Ostream & endl(Ostream &os)
Add newline and flush stream.
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.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
errorManipArg< error, int > exit(error &err, const int errNo=1)
constexpr char nl
The newline '\n' character (0x0a).