Skip to content

Commit

Permalink
Add a note about the state setters to PureFluidPhase
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanwweber committed Jan 22, 2016
1 parent 37e488a commit 9714be4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/thermo/PureFluidPhase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9714be4

Please sign in to comment.