【问题标题】:Using fmus with Mathematica在 Mathematica 中使用 fmus
【发布时间】:2023-01-13 06:14:48
【问题描述】:

有没有办法在 Mathematica 笔记本中导入和模拟 fmus?
我有在 Modelica 中开发的模型,其中一位模型用户精通 Mathematica 笔记本,但对 fmus 不熟悉。我很好奇 Mathematica 是否可以导入类似于 fmpy 和 pyfmi 等 Python 库的 fmus。

【问题讨论】:

  • Wolfram System Modeller 支持 FMI 导入,因此我假设您可以与从 Mathematica 导入的 FMU 进行交互。

标签: wolfram-mathematica fmi


【解决方案1】:

正如在 cmets 中提到的,在 System Modeler 中支持导入 FMU,您可以在这里免费试用,

https://www.wolfram.com/system-modeler/trial/

导入 FMU 后,如此处所示

https://reference.wolfram.com/system-modeler/UserGuide/ModelCenterFMUExportAndImport.html

您可以在 Mathematica 中模拟和访问模型。当具有相同版本的 Mathematica 和 System Modeler 在同一会话中使用时,它们共享一个状态,并且可以在任一工具中修改、模拟、创建模型等。在 Mathematica 中,这是使用系统建模功能完成的,

https://reference.wolfram.com/language/tutorial/GettingStartedWithModelSimulationAndAnalysis.html#47330727

更具体地说,模拟是通过函数 SystemModelSimulate 从根本上完成的

https://reference.wolfram.com/language/ref/SystemModelSimulate.html

【讨论】:

    猜你喜欢
    • 2012-01-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-02-10
    • 2011-09-22
    • 2011-05-06
    • 1970-01-01
    • 2011-03-26
    相关资源
    最近更新 更多