将fmus与Mathematica结合使用



有没有办法在Mathematica笔记本中导入和模拟fmus
我有在Modelica中开发的模型,其中一位模型用户精通使用Mathematica笔记本电脑,但对fmus来说是新手。我很好奇Mathematica是否可以导入类似于Python库的fmus,比如fmpy和pyfmi。

如评论中所述,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

最新更新