PythonPlugin Psychrometric function usage error: Temperature out of range [-100. to 200.] (PsyPsatFnTemp)
I am using PythonEMS to call some of the Psychrometric functions. I got some errors:
* Warning * Temperature out of range [-100. to 200.] (PsyPsatFnTemp) * ~~~ * Routine=PsyTwbFnTdbWPb, Environment=RUN PERIOD 2, at Simulation time=01/29 20:42 - 20:43
* ~~~ * Input Temperature=-389.74
I double checked and carefully add casting to input temperature values to be in the range of [-100, 200]. But i still get this type of error.
Below are all the psychrometric functions i used:
self.psychrometrics = self.api.functional.psychrometrics(state)
H_zone = self.psychrometrics.api.psyHFnTdbW(state,min(200,max(T_zone,-99)),W_zone)
H_inlet = self.psychrometrics.api.psyHFnTdbW(state,min(200,max(T_inlet,-99)), W_zone)
self.psychrometrics.api.psyTdbFnHW(state, H_outlet_desired,W_zone))
self.psychrometrics.api.psyTdbFnHW(state, H_inlet, W_zone))
self.psychrometrics.api.psyHFnTdbW(state,min(200,max(T_outlet_SP,-99)), W_zone)
self.psychrometrics.api.psyHFnTdbW(state,min(200,max(T_outlet_SP,-99)), W_zone)