英文:
How can I change the reference state in Modelica.Media.Water?
问题
Modelica.Media.Water中提供的水介质模型是基于273.15K和1bar的参考状态定义的。据我所知,似乎没有改变参考状态的方法,例如更改为298.15K和1bar。另一方面,对于气体模型,我们可以设置excludeEnthalpyOfFormation=false和referenceChoice=Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.ZeroAt25C来进行更改。我不得不编辑Modelica.Media.Water的源代码来解决这个问题,但这是一个混乱的解决方案,应该有更好的解决方案。我认为Modelica.Media.Water介质模型也应该具有更改参考状态的可能性。有何想法?
英文:
Water media models given in Modelica.Media.Water are defined based on the reference at 273.15K and 1bar. As far as I can see there is no way of changing the reference state, for example, to 298.15K and 1bar. On the other hand this is possible for gas models; for gas media models we can set to excludeEnthalpyOfFormation=false and referenceChoice=Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.ZeroAt25C. I had to edit the source code of Modelica.Media.Water to fix this issue and this is a messy solution, there are must be better solution. I think Modelica.Media.Water media models should also have the possibility of changing the reference state. Any thoughts?
答案1
得分: 4
我建议在MSL GitHub上创建一个问题以讨论此事:
https://github.com/modelica/ModelicaStandardLibrary/issues
英文:
I suggest to create an issue in the MSL github in order to discuss that:
https://github.com/modelica/ModelicaStandardLibrary/issues
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论