mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-04-23 03:00:17 -04:00
Add warning about T > Tmax for HS inputs; closes #1181
This commit is contained in:
@@ -1897,6 +1897,9 @@ void FlashRoutines::HS_flash(HelmholtzEOSMixtureBackend &HEOS)
|
||||
}
|
||||
}
|
||||
while(!good_Tmax);
|
||||
if (rmin*rmax > 0 && std::abs(rmax) < std::abs(rmin)){
|
||||
throw CoolProp::ValueError(format("HS inputs correspond to temperature above maximum temperature of EOS [%g K]",HEOS.Tmax()));
|
||||
}
|
||||
Brent(resid, Tmin, Tmax, DBL_EPSILON, 1e-10, 100);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user