Added missing member functions for partial molar quantities
This commit is contained in:
parent
dfbeeb374e
commit
6e40841d94
2 changed files with 25 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue