Skip to content

Commit

Permalink
Fix p-dependence in IdealSolidSolnPhase::getPartialMolarEnthalpies
Browse files Browse the repository at this point in the history
Addresses Cantera#1080
  • Loading branch information
decaluwe committed Aug 19, 2021
1 parent 38dd37a commit 6892199
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/thermo/IdealSolidSolnPhase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,11 @@ void IdealSolidSolnPhase::getChemPotentials_RT(doublereal* mu) const
void IdealSolidSolnPhase::getPartialMolarEnthalpies(doublereal* hbar) const
{
const vector_fp& _h = enthalpy_RT_ref();
scale(_h.begin(), _h.end(), hbar, RT());
double delta_p = m_Pcurrent - m_Pref;
for (size_t k = 0; k < m_kk; k++) {
hbar[k] = _h[k]*RT() + delta_p * m_speciesMolarVolume[k];
}
// scale(_h.begin(), _h.end(), hbar, RT());
}

void IdealSolidSolnPhase::getPartialMolarEntropies(doublereal* sbar) const
Expand Down

0 comments on commit 6892199

Please sign in to comment.