Fmu2Jar is a command line utility for converting Functional Mock-up Units (FMUs) into regular Java libraries.
This allows the FMU to be loaded into an application using maven artifacts rather that referring to the location of the FMU in your app.
Furthermore, typesafe getters and setters for each variable is generated and accessiable though the API.
E.g. an fmu with the a ScalaraVariable with name “pid.kp” of type Real will have a getter like so: public double getPid_kp()
Fmu2Jar is apart of the FMI4j suite and is available here: https://github.com/SFI-Mechatronics/fmi4j/releases
FMI4j is a new open-source Kotlin library that allows import and simulation of Model Exchange and Co-simulation FMUs compliant with the FMI 2.0 standard.
As Kotlin is 100% interoperable with Java, its up to the end user which language to use.
As of late 2017, Fmi4j is the only Java library that support Model Exchange 2.0.
Fmi4j don’t just import such FMUs, but can also solve them using the integrators available in Apache Commons Math.
Fmi4j uses the gradle build system, allowing you to easily set it up on your own machine.
FYI: I am the library author
In this guide we are going to install the following:
And it’s dependencies:
Continue reading Installing PyFMI 1.5 on Ubuntu 14.04