如何在Modelica.Media.Water中更改参考状态?

huangapple go评论56阅读模式
英文:

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

huangapple
  • 本文由 发表于 2023年5月25日 02:13:12
  • 转载请务必保留本文链接:https://go.coder-hub.com/76326366.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定