First of all, great work guys!
I am not a thermodynamics expert, so please forgive me if I write something stupid in the lines below...
When calling the Props or Props functions, in Python, at the critical point (Tcrit,pcrit) for a substance I get the following error:
ValueError: CoolProp error: Number of steps in density_TP has exceeded 30 with inputs T=469.7,p=5.245e+006,rho_guess=194614 for fluid n-Pentane :: inputs were:"D","P",5.2450000000000000e+06,"T",4.6969999999999999e+02,"Pentane"
Could you possibly add a "safe guard" to see if the function is being called at the critical point and then use a more robust method of some sort. E.g. interpolate between "safe" points close the critical point..? Alternatively, hard code the properties at the critical point.
Furthermore, the specific heat constant 'C' seems to give "crazy high" results at the critical point, it looks like a division by zero issue or something similar. Whereas, the other properties seems to be behaving nice around the critical point. Can you confirm that 'C' is acting weird close to (Tcrit,pcrit) or is supposed to behave like that?
Best regards,
Lars
First of all, great work guys!
I am not a thermodynamics expert, so please forgive me if I write something stupid in the lines below...
When calling the Props or Props functions, in Python, at the critical point (Tcrit,pcrit) for a substance I get the following error:
ValueError: CoolProp error: Number of steps in density_TP has exceeded 30 with inputs T=469.7,p=5.245e+006,rho_guess=194614 for fluid n-Pentane :: inputs were:"D","P",5.2450000000000000e+06,"T",4.6969999999999999e+02,"Pentane"
Could you possibly add a "safe guard" to see if the function is being called at the critical point and then use a more robust method of some sort. E.g. interpolate between "safe" points close the critical point..? Alternatively, hard code the properties at the critical point.
Furthermore, the specific heat constant 'C' seems to give "crazy high" results at the critical point, it looks like a division by zero issue or something similar. Whereas, the other properties seems to be behaving nice around the critical point. Can you confirm that 'C' is acting weird close to (Tcrit,pcrit) or is supposed to behave like that?
Best regards,
Lars