使用 Coolprop 6.4.1 生成 p-h 图时的 warnings.warn

问题描述

运行脚本时显示

using PyCall
pyimport("sys").executable
@pyimport CoolProp.CoolProp as CP
@pyimport CoolProp.Plots as CPP 
#=UNIT_SYstemS = {'EUR': <CoolProp.Plots.Common.EURunits object>,'KSI': <CoolProp.Plots.Common.KSIunits object>,'SI'
=#

plot = CPP.PropertyPlot("R410A","ph",unit_system="KSI")
plot.title("R410A log p-h Diagramm")
plot.set_axis_limits([90,550,15000])
plot.xlabel("h kJ/kg]")
plot.ylabel("P [kPa]")
plot.calc_isolines(num=15)
plot.show()

我收到了很多警报;其中一些示例:

       ...
C:\Users\hermesr\AppData\Local\Programs\Python\python38\lib\site-packages\CoolProp\Plots\Common.py:596: UserWarning: An error occurred for inputs 0.928571,264.413011 with index (111,): For pseudo-pure fluid,quality must be equal to 0 or 1.  Two-phase quality is not defined
  warnings.warn(
C:\Users\hermesr\AppData\Local\Programs\Python\python38\lib\site-packages\CoolProp\Plots\Common.py:596: UserWarning: An error occurred for inputs 0.928571,264.993308 with index (112,265.573604 with index (113,266.153901 with index (114,quality must be equal to 0 or 1.  Two-phase quality is not defined
 ...

你能告诉我为什么这个警报到期以及如何解决这个问题吗?

warnings.warn

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)