Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在 python 中运行 modelica(Dymola) 参数研究。
我的代码:
output = dymola.simulateExtendedModel(models, starttime (=0), endtime(=31536000=, timeInterval(=120),...);
我设置:我期望每个变量有 262800 个值——但我只得到每小时值(8761)。当我直接在 Dymola 中导出值时,我得到 262800。
我没有新的 python 接口,但根据 dymola-script 的文档命令:
模拟ExtendedModel: Real finalValues[size(finalNames, 1)] "端点值";
所以我希望每个变量只得到一个值——终点的值。如果需要轨迹,请尝试使用“simulateModel”命令或“simulateMultiResultsModel”。