fmi - FMU getState/setState for model exchange with PyFMI
问题描述
I'm involved in a project in which I use a model exchange FMU. I'm using PyFMI to interact with it. One of the things that I need to do is get the state of the model at certain time ( get_fmu_state() is the function in PyFMI) and restore it later (set_fmu_state(state)). The flag "canGetAndSetFMUstate" is activated.
The use of these sentences seem to do nothing in my code...is it neccesary to do something more?
I didn't find any example that shows that capability. The FMI specification (https://www.fmi-standard.org) only dedicates a few lines to that feature. Have you ever deal with this feature? Thanks in advance. Regards,
Ignacio.
解决方案
推荐阅读
- laravel - 我的 laravel 5.4 无法识别我添加的新路线
- node.js - Node.js 图像转换承诺,仍然得到损坏的图像
- python-3.x - 我想在一个模板中表示 DetailView 和 ListView。我能做些什么?
- firebase - How can I see and edit the User's Additional information from Firebase consol that was edited programmatically
- javascript - Redux Store:无法读取属性并且存储未定义
- excel - 数以百万计的 Excel 自定义格式
- c# - C# - SQLDataReader by Index vs. SQLDataReader.GetOrdinal(ColumnName)
- javascript - 量角器给出“失败:“值”的值超出范围。使用 sendkeys 上传 pdf 或 xlsx 文件时
- python - U-Net 分割 Keras 的 Hausdorff 损失
- windows - 警告:[次要] ExtractEmbedded 选项可能会在电影数据中找到更多标签