void VPSSMgr::setState_T(doublereal temp) { if (m_tlast != temp) { m_tlast = temp; updateRefStateThermo(); updateStandardStateThermo(); } }
void VPSSMgr::setState_TP(doublereal temp, doublereal pres) { if (m_tlast != temp) { m_tlast = temp; m_plast = pres; updateRefStateThermo(); updateStandardStateThermo(); } else if (m_plast != pres) { m_plast = pres; updateStandardStateThermo(); } }
void VPSSMgr_Water_HKFT::getStandardVolumes_ref(doublereal* vol) const { updateRefStateThermo(); copy(m_V0.begin(), m_V0.end(), vol); }
void VPSSMgr_Water_HKFT::getCp_R_ref(doublereal* cpr) const { updateRefStateThermo(); copy(m_cp0_R.begin(), m_cp0_R.end(), cpr); }
void VPSSMgr_Water_HKFT::getEntropy_R_ref(doublereal* sr) const { updateRefStateThermo(); copy(m_s0_R.begin(), m_s0_R.end(), sr); }
void VPSSMgr_Water_HKFT::getGibbs_RT_ref(doublereal* grt) const { updateRefStateThermo(); copy(m_g0_RT.begin(), m_g0_RT.end(), grt); }
void VPSSMgr_Water_HKFT::getEnthalpy_RT_ref(doublereal* hrt) const { updateRefStateThermo(); copy(m_h0_RT.begin(), m_h0_RT.end(), hrt); }