Modelica - PMSM 上的电压控制器和 PWM?

发布于 2025-01-20 15:20:53 字数 551 浏览 0 评论 0原文

我正在尝试在 OpenModelica 中使用VoltageController 和 PWM 来模拟 SMPM。在查找有关该主题的旧线程后,我发现了这个: PI-Controller 在 Modelica 中没有达到逆变器和 PMSM 的参考值

基本上,这正是我正在寻找的。但是,在复制 @marco 的代码并将其粘贴到 Modelica 中后,出现错误,如附图所示。

此处未显示 PWM 模块。并且VoltageToDutyCycle 块缺少连接。

有人可以帮我看看那里发生了什么,甚至可以给我发送一个可执行版本吗?

也许我做错了什么,因为我还是 Modelica 的初学者,所以我不想排除这一点;)

 PWM_Block_missing

I'm trying to simulate a SMPM with a VoltageController and a PWM in OpenModelica. After looking for old threads on the subject I found this one: PI-Controller doesn't reach reference value with inverter and PMSM in Modelica

Basically, that's exactly what I'm looking for. However, after copying @marco 's code and pasting it into Modelica, I have an error as seen in the attached image.

The PWM block is not displayed here. and the VoltageToDutyCycle block is missing a connection.

Can someone help me what's going on there, or even send me an executable version?

Maybe I'm doing something wrong, since I'm still a beginner at Modelica I don't want to rule that out ;)

PWM_Block_missing

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

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

发布评论

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

评论(1

凉墨 2025-01-27 15:20:53

我更正了答案现在应该起作用。
请记住,该代码是用Modelica Standard Library(MSL)3.2.3编写的。当前版本为4.0.0。要么使用旧的MSL或
转换为新版本。

缺少mySignalPWM块只是来自MSL的原始块。类路径现在已修复。

关于连接:没有什么丢失。第三个布尔值输入被禁用,但OpenModelica仍显示它。其他Modelica工具更聪明,并且不显示残疾人连接器。该组件中心的热端口也不可见。

I corrected the answer, it should work now.
Keep in mind, that this code was written with Modelica Standard Library (MSL) 3.2.3. The current version is 4.0.0. Either use the old MSL or
convert to the new version.

The missing MySignalPWM block was just the original block from the MSL. The class path is fixed now.

Regarding the connection: there is nothing missing. The third boolean input is disabled, but OpenModelica still displays it. Other Modelica tools are smarter and do not show disabled connectors. The thermal port in the center of this component should also not be visible.

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