9 #ifndef CT_SPECIESTHERMO_H
10 #define CT_SPECIESTHERMO_H
13 #include "cantera/base/smart_ptr.h"
17 class SpeciesThermoInterpType;
196 virtual void install(
const std::string& name,
size_t index,
int type,
209 shared_ptr<SpeciesThermoInterpType> stit) = 0;
222 virtual void update(doublereal T, doublereal* cp_R,
223 doublereal* h_RT, doublereal* s_R)
const=0;
239 doublereal* s_R)
const {
240 update(T, cp_R, h_RT, s_R);
252 virtual doublereal
minTemp(
size_t k=
npos)
const =0;
263 virtual doublereal
maxTemp(
size_t k=
npos)
const =0;
321 virtual void modifyOneHf298(
const size_t k,
const doublereal Hf298New) = 0;
324 bool ready(
size_t nSpecies);
331 std::vector<bool> m_installed;
const size_t npos
index returned by functions to indicate "no position"
virtual doublereal maxTemp(size_t k=npos) const =0
Maximum temperature.
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 void install(const std::string &name, size_t index, int type, const doublereal *c, doublereal minTemp, doublereal maxTemp, doublereal refPressure)=0
Install a new species thermodynamic property parameterization for one species.
virtual void install_STIT(size_t index, shared_ptr< SpeciesThermoInterpType > stit)=0
Install a new species thermodynamic property parameterization for one species.
This file contains definitions of terms that are used in internal routines and are unlikely to need m...
Pure Virtual base class for the species thermo manager classes.
virtual int reportType(size_t index=npos) const =0
This utility function reports the type of parameterization used for the species with index number ind...
bool ready(size_t nSpecies)
Check if data for all species (0 through nSpecies-1) has been installed.
virtual SpeciesThermo * duplMyselfAsSpeciesThermo() const =0
Duplication routine for objects derived from SpeciesThermo.
void markInstalled(size_t k)
Mark species k as having its thermodynamic data installed.
virtual ~SpeciesThermo()
Destructor.
virtual doublereal refPressure(size_t k=npos) const =0
The reference-state pressure for species k.
virtual doublereal minTemp(size_t k=npos) const =0
Minimum temperature.
virtual void modifyOneHf298(const size_t k, const doublereal Hf298New)=0
Modify the value of the 298 K Heat of Formation of the standard state of one species in the phase (J ...
SpeciesThermo()
Constructor.
virtual void reportParams(size_t index, int &type, doublereal *const c, doublereal &minTemp, doublereal &maxTemp, doublereal &refPressure) const =0
This utility function reports back the type of parameterization and all of the parameters for the spe...
virtual void update(doublereal T, doublereal *cp_R, doublereal *h_RT, doublereal *s_R) const =0
Compute the reference-state properties for all species.
virtual doublereal reportOneHf298(const size_t k) const =0
Report the 298 K Heat of Formation of the standard state of one species (J kmol-1) ...