mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-02-09 05:15:45 -05:00
Phase envelope should only be able to build for pure fluids; closes #410
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
This commit is contained in:
@@ -11,6 +11,7 @@ namespace CoolProp{
|
||||
|
||||
void PhaseEnvelopeRoutines::build(HelmholtzEOSMixtureBackend &HEOS)
|
||||
{
|
||||
if (HEOS.get_mole_fractions_ref().size() < 2){throw ValueError("Cannot build phase envelope for pure fluid");}
|
||||
std::size_t failure_count = 0;
|
||||
// Set some imput options
|
||||
SaturationSolvers::mixture_VLE_IO io;
|
||||
|
||||
Reference in New Issue
Block a user