10#ifndef CT_MULTISPECIESTHERMO_H
11#define CT_MULTISPECIESTHERMO_H
65 shared_ptr<SpeciesThermoInterpType> stit);
73 shared_ptr<SpeciesThermoInterpType> spec);
84 double& h_RT,
double& s_R)
const;
97 virtual void update(
double T, span<double> cp_R, span<double> h_RT,
98 span<double> s_R)
const;
143 virtual void reportParams(
size_t index,
int& type, span<double> c,
170 virtual void modifyOneHf298(
const size_t k,
const double Hf298New);
180 bool ready(
size_t nSpecies);
195 typedef pair<size_t, shared_ptr<SpeciesThermoInterpType>> index_STIT;
196 typedef map<int, vector<index_STIT>> STIT_map;
197 typedef map<int, vector<double>> tpoly_map;
Pure Virtual Base class for individual species reference state thermodynamic managers and text for th...
A species thermodynamic property manager for a phase.
bool ready(size_t nSpecies)
Check if data for all species (0 through nSpecies-1) has been installed.
MultiSpeciesThermo()=default
Constructor.
STIT_map m_sp
This is the main data structure, which contains the SpeciesThermoInterpType objects,...
SpeciesThermoInterpType * provideSTIT(size_t k)
Provide the SpeciesThermoInterpType object.
double m_p0
reference pressure (Pa)
virtual void install_STIT(size_t index, shared_ptr< SpeciesThermoInterpType > stit)
Install a new species thermodynamic property parameterization for one species.
void markInstalled(size_t k)
Mark species k as having its thermodynamic data installed.
virtual double refPressure() const
The reference-state pressure (Pa) for all species.
double m_tlow_max
Maximum value of the lowest temperature.
virtual void update_single(size_t k, double T, double &cp_R, double &h_RT, double &s_R) const
Get reference-state properties for a single species.
virtual void modifySpecies(size_t index, shared_ptr< SpeciesThermoInterpType > spec)
Modify the species thermodynamic property parameterization for a species.
virtual int reportType(size_t index) const
This utility function reports the type of parameterization used for the species with index number ind...
virtual void update(double T, span< double > cp_R, span< double > h_RT, span< double > s_R) const
Compute the reference-state properties for all species.
virtual double minTemp(size_t k=npos) const
Minimum temperature.
virtual void reportParams(size_t index, int &type, span< double > c, double &minTemp, double &maxTemp, double &refPressure) const
This utility function reports back the type of parameterization and all of the parameters for the spe...
tpoly_map m_tpoly
Temperature polynomials for each thermo parameterization.
double m_thigh_min
Minimum value of the highest temperature.
virtual double maxTemp(size_t k=npos) const
Maximum temperature.
map< size_t, 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]...
vector< bool > m_installed
indicates if data for species has been installed
virtual void modifyOneHf298(const size_t k, const double Hf298New)
Modify the value of the 298 K Heat of Formation of the standard state of one species in the phase (J ...
virtual void resetHf298(const size_t k)
Restore the original heat of formation of one or more species.
virtual double reportOneHf298(const size_t k) const
Report the 298 K Heat of Formation of the standard state of one species (J kmol-1)
Abstract Base class for the thermodynamic manager for an individual species' reference state.
Namespace for the Cantera kernel.
const size_t npos
index returned by functions to indicate "no position"