定义新媒体模型时遇到的问题 (Modelica.Media)
我正在尝试在 Modelica.Media 的基础上建立一个新的媒体模型。我的模型是从 PartialMixtureMedium 扩展而来的。当模拟开放式容器(取自 Modelica.Fluid)时,该容器既没有进料也没有排水,而是从外部加热,因此无法满足质量平衡。虽然 der(m) 保持为零,但 m 大幅增加。
有人给我提示吗?
提前感
谢蒂莫。
I'm trying to set up a new medium model on the basis of Modelica.Media. My model extends from PartialMixtureMedium. When simulating an open vessel (taken from Modelica.Fluid), which has neither feed nor drain but is heated from the outside, the mass balance is not fulfilled. While der(m) remains zero, m increases heavily.
Does anybody have a hint for me?
Thanks in advance
TIMO.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不确定您的问题是否出在中等型号上。如果关于成分或密度的偏导数是错误的(并在模型中使用),则介质模型可能会导致问题,但如果没有更多信息,我无法确定这一点。可能还有其他原因,开放容器仅对液体有效,如果您的流体模型处于沸腾状态或处于两相区域,则可能会超出容器模型的有效区域。
休伯特斯
I am not sure that your problem is with the medium model. If partial derivatives with respect to composition or density are wrong (and used in the model), it is possible that the medium model causes the problem, but without more information I cannot determine this. There can be other reasons, the open vessel is only valid for liquids, and if your fluid model would be boiling or in the two phase region, it may be outside the validity region of the vessel model.
Hubertus