You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
im currenly developing dynamincs model for fixedWing UAV and im utilizing torch, because we plan to utilize some neural network predictions in the model. Is it even possible to create FMU utilizing this project, with dependencies on these libraries ?
My model is currently parametrized in .py files, the neural prediction could be technically be inserted as a parameter too although is quite large torch tensor.
Thanks for reply in advance.
The text was updated successfully, but these errors were encountered:
Yes, you can mix UniFMU with other Python applications. Please be aware that the performance may change, and you need to adapt the functionality to the FMIDoStep calls.
How to proceed:
You can create a UniFMU with Python with the command: ./unifmu generate python your_project_name. Add other flags if needed.
Update the logic in model.py in the resources folder and include your dependencies at the very top. If you have other local Python modules, you can also add them to the resources folder, and import them from model.py.
Please notice that you need to adapt other resources in the FMU, such as the ModelDescription.xml and the attributes in model.py for it to work as a proper FMU and it should be orchestrated from a master FMI co-simulation algorithm like FMPy or Maestro.
Hello,
im currenly developing dynamincs model for fixedWing UAV and im utilizing torch, because we plan to utilize some neural network predictions in the model. Is it even possible to create FMU utilizing this project, with dependencies on these libraries ?
My model is currently parametrized in .py files, the neural prediction could be technically be inserted as a parameter too although is quite large torch tensor.
Thanks for reply in advance.
The text was updated successfully, but these errors were encountered: