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
54 const auto& cnstrTable = *(dictionaryConstructorTablePtr_);
56 auto* ctorPtr = cnstrTable.lookup(methodTypeName,
nullptr);
60 const wordList names(cnstrTable.sortedToc());
62 constexpr const int nCmpt = 7;
89 for (
const word& validName : names)
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;
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.
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
bool empty() const noexcept
True if the UList 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.
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
A class for handling words, derived from Foam::string.
BasicChemistryModel< psiReactionThermo > & chemistry
#define FatalErrorInLookup(lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalError.
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.
errorManipArg< error, int > exit(error &err, const int errNo=1)
constexpr char nl
The newline '\n' character (0x0a)
static const char *const typeName
The type name used in ensight case files.