GMLC-TDC / HELICS-Examples

Examples for using HELICS with a variety of the supported programming languages
BSD 3-Clause "New" or "Revised" License
21 stars 19 forks source link

Fmu example #91

Closed eranschweitzer closed 1 year ago

eranschweitzer commented 1 year ago

Summary

If merged this pull request will create an example for how HELICS can use FMI/FMUs as federates using HELIC-FMI

Proposed changes

Notes

FMUs are compiled for a specific platform. The FMU included with the code (SimpleBattery.fmu) was compiled on a Windows machine and may (likely) not work on Mac or Linux. Partially for this reason the OpenModelica version of the model (SimpleBattery.mo) is also included. With the free and open-source OpenModelica Connection Editor, it should be possible to open the modelica file, compile for a different operating system, and replace the fmu so that the example could still be run.