Filled out 2 missing functions to this ThermoPhase object:

getIntEnergy_RT() and getIntEnergy_RT_ref().
This commit is contained in:
Harry Moffat 2005-10-21 22:25:53 +00:00
parent 18ffa552d1
commit c431590dad
2 changed files with 37 additions and 0 deletions

View file

@ -148,6 +148,18 @@ namespace Cantera {
}
}
/**
* Returns the vector of nondimensional
* internal Energies of the standard state at the current temperature
* and pressure of the solution for each species.
*/
void IdealGasPhase::getIntEnergy_RT(doublereal *urt) const {
const array_fp& _h = enthalpy_RT_ref();
for (int k = 0; k < m_kk; k++) {
urt[k] = _h[k] - 1.0;
}
}
/**
* Get the nondimensional heat capacity at constant pressure
* function for the species
@ -202,6 +214,18 @@ namespace Cantera {
copy(_s.begin(), _s.end(), er);
}
/**
* Returns the vector of nondimensional
* internal Energies of the reference state at the current temperature
* of the solution and the reference pressure for each species.
*/
void IdealGasPhase::getIntEnergy_RT_ref(doublereal *urt) const {
const array_fp& _h = enthalpy_RT_ref();
for (int k = 0; k < m_kk; k++) {
urt[k] = _h[k] - 1.0;
}
}
/**
* Returns the vector of nondimensional
* constant pressure heat capacities of the reference state

View file

@ -318,6 +318,13 @@ namespace Cantera {
*/
virtual void getPureGibbs(doublereal* gpure) const;
/**
* Returns the vector of nondimensional
* internal Energies of the standard state at the current temperature
* and pressure of the solution for each species.
*/
virtual void getIntEnergy_RT(doublereal *urt) const;
/**
* Get the nondimensional heat capacity at constant pressure
* function for the species
@ -357,6 +364,12 @@ namespace Cantera {
*/
virtual void getEntropy_R_ref(doublereal *er) const;
/**
* Returns the vector of nondimensional
* internal Energies of the reference state at the current temperature
* of the solution and the reference pressure for each species.
*/
virtual void getIntEnergy_RT_ref(doublereal *urt) const;
/**
* Returns the vector of nondimensional
* constant pressure heat capacities of the reference state