Modelica-Dymola Python界面:将输出格式设置为文本 [英] Modelica - Dymola Python interface: Set output format to textual

查看:370
本文介绍了Modelica-Dymola Python界面:将输出格式设置为文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在通过Dymola Python界面使用Dymola运行Modelica仿真.我的目标是将结果文件写入文本输出(即到.txt文件).即使我的模型包含注释__Dymola_experimentSetupOutput(textual=true, events=false),输出也会写入.mat文件.不幸的是,当我在Dymola命令行中键入find()时,找不到适合通过dymola.ExecuteCommand()设置输出格式的标志.

I am running Modelica simulations with Dymola via the Dymola Python interface. My aim is to have the result file written to textual output (i.e. to a .txt file). Even though my model contains the annotation __Dymola_experimentSetupOutput(textual=true, events=false), the output is written to a .mat file. Unfortunately, when I type find() into the Dymola command line, I cannot find a suitable flag for setting the output format via dymola.ExecuteCommand().

是否可以通过Python界面将输出格式设置为文本格式?谢谢!

Is there a possibility to set the output format to textual via the Python interface? Thanks!

推荐答案

您可以使用

dymola.experimentSetupOutput(textual=True)

这篇关于Modelica-Dymola Python界面:将输出格式设置为文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆