27                                         shared_ptr<SpeciesThermoInterpType> stit_ptr)
    34             "MultiSpeciesThermo::install_STIT",
    35             "Index position isn't null, duplication of assignment: {}", index);
    36     int type = stit_ptr->reportType();
    38     m_sp[type].emplace_back(index, stit_ptr);
    39     if (
m_sp[type].size() == 1) {
    40         m_tpoly[type].resize(stit_ptr->temperaturePolySize());
    50                                          shared_ptr<SpeciesThermoInterpType> spthermo)
    58                            "Species with this index not previously added: {}",
    61     int type = spthermo->reportType();
    64                            "Type of parameterization changed: {} != {}", type,
    69             "Cannot increase minimum temperature for phase from {} to {}",
    74             "Cannot increase minimum temperature for phase from {} to {}",
    82                                       doublereal* h_RT, doublereal* s_R)
 const    85                     "Use update_single instead. To be removed after Cantera 2.4");
    93                                        double* h_RT, 
double* s_R)
 const   102                                   doublereal* h_RT, doublereal* s_R)
 const   104     auto iter = 
m_sp.begin();
   106     for (; iter != 
m_sp.end(); iter++, jter++) {
   107         const std::vector<index_STIT>& species = iter->second;
   108         double* tpoly = &jter->second[0];
   109         species[0].second->updateTemperaturePoly(t, tpoly);
   110         for (
size_t k = 0; k < species.size(); k++) {
   111             size_t i = species[k].first;
   112             species[k].second->updateProperties(tpoly, cp_R+i, h_RT+i, s_R+i);
   127         doublereal* 
const c, doublereal& minTemp_, doublereal& maxTemp_,
   128         doublereal& refPressure_)
 const   177         return m_sp.at(loc.first)[loc.second].second.get();
   178     } 
catch (std::out_of_range&) {
   187         return m_sp.at(loc.first)[loc.second].second.get();
   188     } 
catch (std::out_of_range&) {
   223     for (
size_t k = 0; k < nSpecies; k++) {
 Header for a general species thermodynamic property manager for a phase (see MultiSpeciesThermo). 
 
virtual doublereal maxTemp(size_t k=npos) const
Maximum temperature. 
 
Abstract Base class for the thermodynamic manager for an individual species' reference state...
 
virtual void reportParams(size_t index, int &type, doublereal *const c, doublereal &minTemp, doublereal &maxTemp, doublereal &refPressure) const
This utility function reports back the type of parameterization and all of the parameters for the spe...
 
virtual doublereal reportHf298(doublereal *const h298=0) const
Report the 298 K Heat of Formation of the standard state of one species (J kmol-1) ...
 
const doublereal OneAtm
One atmosphere [Pa]. 
 
bool ready(size_t nSpecies)
Check if data for all species (0 through nSpecies-1) has been installed. 
 
virtual doublereal minTemp() const
Returns the minimum temperature that the thermo parameterization is valid. 
 
virtual void resetHf298(const size_t k)
Restore the original heat of formation of one or more species. 
 
Various templated functions that carry out common vector operations (see Templated Utility Functions)...
 
virtual void modifySpecies(size_t index, shared_ptr< SpeciesThermoInterpType > spec)
Modify the species thermodynamic property parameterization for a species. 
 
virtual void update(doublereal T, doublereal *cp_R, doublereal *h_RT, doublereal *s_R) const
Compute the reference-state properties for all species. 
 
virtual void modifyOneHf298(const size_t k, const doublereal Hf298New)
Modify the value of the 298 K Heat of Formation of the standard state of one species in the phase (J ...
 
const size_t npos
index returned by functions to indicate "no position" 
 
void warn_deprecated(const std::string &method, const std::string &extra)
Print a warning indicating that method is deprecated. 
 
virtual doublereal refPressure(size_t k=npos) const
The reference-state pressure for species k. 
 
virtual void modifyOneHf298(const size_t k, const doublereal Hf298New)
Modify the value of the 298 K Heat of Formation of one species in the phase (J kmol-1) ...
 
doublereal m_p0
reference pressure (Pa) 
 
virtual int reportType() const =0
Returns an integer representing the type of parameterization. 
 
std::map< size_t, std::pair< int, size_t > > m_speciesLoc
Map from species index to location within m_sp, such that m_sp[m_speciesLoc[k].first][m_speciesLoc[k]...
 
virtual int reportType(size_t index) const
This utility function reports the type of parameterization used for the species with index number ind...
 
doublereal m_tlow_max
Maximum value of the lowest temperature. 
 
virtual void reportParameters(size_t &index, int &type, doublereal &minTemp, doublereal &maxTemp, doublereal &refPressure, doublereal *const coeffs) const =0
This utility function reports back the type of parameterization and all of the parameters for the spe...
 
void markInstalled(size_t k)
Mark species k as having its thermodynamic data installed. 
 
SpeciesThermoInterpType * provideSTIT(size_t k)
Provide the SpeciesthermoInterpType object. 
 
Base class for exceptions thrown by Cantera classes. 
 
STIT_map m_sp
This is the main data structure, which contains the SpeciesThermoInterpType objects, sorted by the parameterization type. 
 
doublereal m_thigh_min
Minimum value of the highest temperature. 
 
virtual doublereal minTemp(size_t k=npos) const
Minimum temperature. 
 
virtual doublereal refPressure() const
Returns the reference pressure (Pa) 
 
#define AssertThrowMsg(expr, procedure,...)
Assertion must be true or an error is thrown. 
 
Header for factory functions to build instances of classes that manage the standard-state thermodynam...
 
virtual void updatePropertiesTemp(const doublereal temp, doublereal *cp_R, doublereal *h_RT, doublereal *s_R) const =0
Compute the reference-state property of one species. 
 
Contains declarations for string manipulation functions within Cantera. 
 
virtual void update_one(size_t k, doublereal T, doublereal *cp_R, doublereal *h_RT, doublereal *s_R) const
Like update(), but only updates the single species k. 
 
virtual doublereal reportOneHf298(const size_t k) const
Report the 298 K Heat of Formation of the standard state of one species (J kmol-1) ...
 
virtual doublereal maxTemp() const
Returns the maximum temperature that the thermo parameterization is valid. 
 
virtual void resetHf298()
Restore the original heat of formation for this species. 
 
virtual void install_STIT(size_t index, shared_ptr< SpeciesThermoInterpType > stit)
Install a new species thermodynamic property parameterization for one species. 
 
Namespace for the Cantera kernel. 
 
virtual void update_single(size_t k, double T, double *cp_R, double *h_RT, double *s_R) const
Like update_one, but without applying offsets to the output pointers. 
 
tpoly_map m_tpoly
Temperature polynomials for each thermo parameterization. 
 
Definitions for the classes that are thrown when Cantera experiences an error condition (also contain...
 
MultiSpeciesThermo()
Constructor. 
 
std::vector< bool > m_installed
indicates if data for species has been installed