13 #ifndef CT_SINGLESPECIESTP_H
14 #define CT_SINGLESPECIESTP_H
193 err(
"getActivityCoefficients");
329 #ifdef H298MODIFY_CAPABILITY
430 void setState_TPX(doublereal t, doublereal p,
const doublereal* x);
454 void setState_TPX(doublereal t, doublereal p,
const std::string& x);
466 void setState_TPY(doublereal t, doublereal p,
const doublereal* y);
490 void setState_TPY(doublereal t, doublereal p,
const std::string& y);
522 virtual void setState_HP(doublereal h, doublereal p,
523 doublereal tol = 1.e-8);
535 virtual void setState_UV(doublereal u, doublereal v,
536 doublereal tol = 1.e-8);
548 virtual void setState_SP(doublereal s, doublereal p,
549 doublereal tol = 1.e-8);
561 virtual void setState_SV(doublereal s, doublereal v,
562 doublereal tol = 1.e-8);
600 err(
"satTemperature");
685 doublereal
err(
const std::string& msg)
const;
virtual doublereal satPressure(doublereal t)
Return the saturation pressure given the temperature.
std::map< std::string, doublereal > compositionMap
Map connecting a string name with a double.
virtual void setParametersFromXML(const XML_Node &eosdata)
Set equation of state parameter values from XML entries.
doublereal cv_mole() const
Molar heat capacity at constant volume. Units: J/kmol/K.
ThermoPhase * duplMyselfAsThermoPhase() const
Duplication function.
virtual void setState_HP(doublereal h, doublereal p, doublereal tol=1.e-8)
Set the internally stored specific enthalpy (J/kg) and pressure (Pa) of the phase.
virtual doublereal satTemperature(doublereal p) const
Return the saturation temperature given the pressure.
virtual void getEnthalpy_RT_ref(doublereal *hrt) const
doublereal err(const std::string &msg) const
Error return for unhandled cases.
virtual void setState_UV(doublereal u, doublereal v, doublereal tol=1.e-8)
Set the specific internal energy (J/kg) and specific volume (m^3/kg).
virtual void modifyOneHf298SS(const int k, const doublereal Hf298New)
Modify the value of the 298 K Heat of Formation of one species in the phase (J kmol-1) ...
virtual void setParameters(int n, doublereal *const c)
Class XML_Node is a tree-based representation of the contents of an XML file.
void warn_deprecated(const std::string &method, const std::string &extra)
Print a warning indicating that method is deprecated.
virtual void setState_Psat(doublereal p, doublereal x)
Set the state to a saturated system at a particular pressure.
virtual void getEntropy_R_ref(doublereal *er) const
void setState_TPY(doublereal t, doublereal p, const doublereal *y)
Set the internally stored temperature (K), pressure (Pa), and mass fractions of the phase...
void getPartialMolarCp(doublereal *cpbar) const
Get the species partial molar Heat Capacities. Units: J/ kmol /K.
void _updateThermo() const
vector_fp m_s0_R
Dimensionless entropy at the (mtlast, m_p0)
Base class for a phase with thermodynamic properties.
void setState_PY(doublereal p, doublereal *y)
Set the internally stored pressure (Pa) and mass fractions.
void getChemPotentials_RT(doublereal *murt) const
Get the array of non-dimensional species chemical potentials These are partial molar Gibbs free energ...
void getPartialMolarEnthalpies(doublereal *hbar) const
Get the species partial molar enthalpies. Units: J/kmol.
virtual void getActivities(doublereal *a) const
Get the array of non-dimensional activities at the current solution temperature, pressure, and solution concentration.
virtual void getGibbs_RT_ref(doublereal *grt) const
virtual void getCp_R_ref(doublereal *cprt) const
void getPartialMolarEntropies(doublereal *sbar) const
Get the species partial molar entropy. Units: J/kmol K.
virtual int eosType() const
Returns the equation of state type flag.
doublereal enthalpy_mole() const
Molar enthalpy. Units: J/kmol.
void getChemPotentials(doublereal *mu) const
Get the array of chemical potentials.
SingleSpeciesTP & operator=(const SingleSpeciesTP &right)
Assignment operator.
void getElectrochemPotentials(doublereal *mu) const
Get the species electrochemical potentials. Units: J/kmol.
doublereal entropy_mole() const
Molar entropy. Units: J/kmol/K.
vector_fp m_h0_RT
Dimensionless enthalpy at the (mtlast, m_p0)
vector_fp m_cp0_R
Dimensionless heat capacity at the (mtlast, m_p0)
virtual void getGibbs_ref(doublereal *g) const
virtual void initThermo()
void getStandardVolumes(doublereal *vbar) const
Get the molar volumes of each species in their standard states at the current T and P of the solution...
virtual void setState_SP(doublereal s, doublereal p, doublereal tol=1.e-8)
Set the specific entropy (J/kg/K) and pressure (Pa).
doublereal gibbs_mole() const
Molar Gibbs function. Units: J/kmol.
doublereal intEnergy_mole() const
Molar internal energy. Units: J/kmol.
std::vector< double > vector_fp
Turn on the use of stl vectors for the basic array type within cantera Vector of doubles.
virtual void setState_SV(doublereal s, doublereal v, doublereal tol=1.e-8)
Set the specific entropy (J/kg/K) and specific volume (m^3/kg).
void setState_TPX(doublereal t, doublereal p, const doublereal *x)
Set the temperature (K), pressure (Pa), and mole fractions.
virtual void getPartialMolarIntEnergies(doublereal *ubar) const
Get the species partial molar internal energies. Units: J/kmol.
doublereal m_press
The current pressure of the solution (Pa)
doublereal cp_mole() const
Molar heat capacity at constant pressure. Units: J/kmol/K.
doublereal m_tlast
Last temperature used to evaluate the thermodynamic polynomial.
void getPartialMolarVolumes(doublereal *vbar) const
Get the species partial molar volumes. Units: m^3/kmol.
size_t m_kk
Number of species in the phase.
void getPureGibbs(doublereal *gpure) const
Get the dimensional Gibbs functions for the standard state of the species at the current T and P...
virtual void setState_Tsat(doublereal t, doublereal x)
Set the state to a saturated system at a particular temperature.
SingleSpeciesTP()
Base empty constructor.
Header file for class ThermoPhase, the base class for phases with thermodynamic properties, and the text for the Module thermoprops (see Thermodynamic Properties and class ThermoPhase).
virtual void getActivityCoefficients(doublereal *ac) const
Get the array of non-dimensional activity coefficients at the current solution temperature, pressure, and solution concentration.
SpeciesThermo * m_spthermo
Pointer to the calculation manager for species reference-state thermodynamic properties.
void setState_PX(doublereal p, doublereal *x)
Set the pressure (Pa) and mole fractions.
The SingleSpeciesTP class is a filter class for ThermoPhase.
virtual doublereal vaporFraction() const
Return the fraction of vapor at the current conditions.
virtual void getParameters(int &n, doublereal *const c) const