If merged this pull request will create an example for how HELICS can use FMI/FMUs as federates using HELIC-FMI
Proposed changes
Duplicate the fundamental default example but with an FMU replacing the Battery Federate.
Show how helics-fmi can be called
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.
Summary
If merged this pull request will create an example for how HELICS can use FMI/FMUs as federates using HELIC-FMI
Proposed changes
helics-fmi
can be calledNotes
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.