diff --git a/include/cantera/thermo/StoichSubstance.h b/include/cantera/thermo/StoichSubstance.h index 61ca930e8..a1c986308 100644 --- a/include/cantera/thermo/StoichSubstance.h +++ b/include/cantera/thermo/StoichSubstance.h @@ -224,6 +224,21 @@ public: */ virtual void getPartialMolarEntropies(doublereal* sbar) const; + //! Get the species partial molar enthalpies. Units: J/kmol. + /*! + * @param ubar Output vector of species partial molar internal energies. + * Length = m_kk. units are J/kmol. + */ + virtual void getPartialMolarIntEnergies(doublereal* ubar) const; + + //! Get the partial molar heat capacities Units: J/kmol/K + /*! + * @param cpbar Output vector of species partial molar heat capacities + * at constant pressure. + * Length = m_kk. units are J/kmol/K. + */ + virtual void getPartialMolarCp(doublereal* cpbar) const; + /** * returns an array of partial molar volumes of the species * in the solution. Units: m^3 kmol-1. diff --git a/src/thermo/StoichSubstance.cpp b/src/thermo/StoichSubstance.cpp index d5c443967..14e9d002f 100644 --- a/src/thermo/StoichSubstance.cpp +++ b/src/thermo/StoichSubstance.cpp @@ -169,6 +169,16 @@ void StoichSubstance::getPartialMolarEntropies(doublereal* sbar) const sbar[0] = entropy_mole(); } +void StoichSubstance::getPartialMolarIntEnergies(doublereal* ubar) const +{ + ubar[0] = intEnergy_mole(); +} + +void StoichSubstance::getPartialMolarCp(doublereal *cpbar) const +{ + cpbar[0] = cp_mole(); +} + void StoichSubstance::getPartialMolarVolumes(doublereal* vbar) const { vbar[0] = 1.0 / molarDensity();