when wet bulb is given and dry air, decrease max temperature in solver; closes #727

This commit is contained in:
Ian Bell
2015-07-20 19:28:59 -06:00
parent 4580cc6391
commit 0b9cbadf04

View File

@@ -1522,6 +1522,10 @@ void _HAPropsSI_inputs(double p, const std::vector<givens> &input_keys, const st
if (MainInputKey == GIVEN_RH){
if (MainInputValue < 1e-10){
T_max = 1000;
// For wetbulb, has to be below critical temp
if (SecondaryInputKey == GIVEN_TWB){
T_max = 600;
}
}
else{
T_max = CoolProp::PropsSI("T","P",p,"Q",0,"Water") - 1;