Skip to content

Commit

Permalink
[Thermo] Fix errors in entropy calculation in PDSS_IdealGas
Browse files Browse the repository at this point in the history
  • Loading branch information
speth committed Feb 23, 2017
1 parent 35679c2 commit dfb32f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/thermo/PDSS_IdealGas.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ doublereal PDSS_IdealGas::pressure() const

void PDSS_IdealGas::setPressure(doublereal p)
{
m_sss_R = m_s0_R + log(m_pres/m_p0);
m_sss_R = m_s0_R - log(m_pres/m_p0);
m_gss_RT = m_hss_RT - m_sss_R;
m_Vss = GasConstant * m_temp / m_pres;
}
Expand All @@ -133,7 +133,7 @@ void PDSS_IdealGas::setTemperature(doublereal temp)
m_V0 = GasConstant * m_temp / m_p0;
m_hss_RT = m_h0_RT;
m_cpss_R = m_cp0_R;
m_sss_R = m_s0_R + log(m_pres/m_p0);
m_sss_R = m_s0_R - log(m_pres/m_p0);
m_gss_RT = m_hss_RT - m_sss_R;
m_Vss = GasConstant * m_temp / m_pres;
}
Expand Down

0 comments on commit dfb32f0

Please sign in to comment.