Python Thermo库中的混合功能
我正在尝试使用Python中的Thermo库,并想计算“石灰牛奶”和水的组成,但是当我在下面运行代码时:
from thermo.chemical import Mixture
mix = Mixture(['water', 'Ca(OH)2'], Vfls=[.6, .4], T=300, P=1E5)
print(mix.Cp)
当我查看Thermo Data时,我会遵循错误的错误
TypeError: unsupported operand type(s) for /: 'float' and 'NoneType'
,这似乎是'CA的某些属性(哦)2'没有,我是否假设水中有问题,而'ca(oh)2'可能是混合物吗?
I am trying the thermo library in python and want to calculate composition of 'milk of lime' and water however when I run the code below:
from thermo.chemical import Mixture
mix = Mixture(['water', 'Ca(OH)2'], Vfls=[.6, .4], T=300, P=1E5)
print(mix.Cp)
I get following error
TypeError: unsupported operand type(s) for /: 'float' and 'NoneType'
When I looked into thermo data it seems like some of the properties for 'Ca(OH)2' is None, am I assuming something wrong in water and 'Ca(OH)2' can be a mixture?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
@Cory Kramer
@Cory Kramer