HX从构建库获取错误但模拟

发布于 2025-01-21 03:02:58 字数 355 浏览 0 评论 0原文

我使用了 Building 库中的热交换器,并将介质更改为 MSL 介质。我收到如图所示的警告。但是,它正在模拟。谁能告诉我这个警告代表什么?如何避免它 在此处输入图像描述

在此处输入图像描述

I used heat exchanger from Building library and changed the media to MSL media. I am getting the warning as mentioned in the figure. But, It is simulating. Can anyone tell me what the warning represents? How to avoid it enter image description here

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

血之狂魔 2025-01-28 03:02:58

警告似乎表明您有一个变量,其中名义属性无法评估为文字。

一个琐碎的模型是:

model M
  Real x(nominal=p);
  parameter Real p=10 annotation(Evaluate=false);
equation 
  der(x)=1-x;
end M;

警告表明,由于无法对其忽略属性,就好像没有设置属性一样。

名义 - 归因于变量的缩放(特定状态),并应指示变量的自然尺度 - 如果变量在比例尺上有很大不同,并且可能接近零,则最重要的是最重要的。因此,在这种情况下似乎有些重要。

@Renejustnielsen的答案表明了可能的原因。

The warning seems to indicate that you have a variable where the nominal-attribute cannot be evaluated to a literal.

A trivial model would be:

model M
  Real x(nominal=p);
  parameter Real p=10 annotation(Evaluate=false);
equation 
  der(x)=1-x;
end M;

The warning indicates that since the attribute couldn't be evaluated it is ignored, as if it hadn't been set.

The nominal-attribute is used for scaling of variables (in particular states), and should indicate the natural scale of the variable - and it is most important if the variable varies on scale substantially different from 1 and may be close to zero; so it seems somewhat important in this case.

The answer by @ReneJustNielsen indicates the likely cause.

撞了怀 2025-01-28 03:02:58

看起来好像您的模型中有一个组件 volume,但您尚未为其分配介质模型(空气),而仅保留默认的 PartialMedium

It looks as if you have a component volume in your model to which you haven't assigned a medium model (air) but only kept the default PartialMedium

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文