From 02f0e273d91bd37dd3e323862d5932336e958f46 Mon Sep 17 00:00:00 2001 From: "Bryan W. Weber" Date: Fri, 22 Jan 2016 17:23:35 -0500 Subject: [PATCH] Add a note about the state setters to PureFluidPhase --- src/thermo/PureFluidPhase.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/thermo/PureFluidPhase.cpp b/src/thermo/PureFluidPhase.cpp index ccdc110ee..728898a32 100644 --- a/src/thermo/PureFluidPhase.cpp +++ b/src/thermo/PureFluidPhase.cpp @@ -284,6 +284,11 @@ doublereal PureFluidPhase::satTemperature(doublereal p) const return m_sub->Tsat(p); } +/* The next several functions set the state. They run the Substance::Set + * function, followed by setting the state of the ThermoPhase object + * to the newly computed temperature and density of the Substance. + */ + void PureFluidPhase::setState_HP(double h, double p, double tol) { Set(tpx::PropertyPair::HP, h, p);