Open autoantwort opened 8 months ago
I second this! It would be very helpful to have a FMI 3.0 example, as I can't get sufficient information initializing such a FMU.
Best regards, Konstantin
To get you started, I was able to just make a few simple swaps to my script for FMI2 (based on the custom_input.py
file you mentioned). The items to change were:
fmi2.FMU2Slave
to fmi3.FMU3Slave
fmu.setupExperiment
as that seems to have been removed.setReal
to setFloat64
getReal
to getFloat64
You can find two FMI3 examples here.
First of all, thank you for this awesome project!
I found the example
fmpy/examples/custom_input.py
very helpful, but wanted to use a FMI 3.0 FMU and it seems that the API changed. I propose to add another example that uses a FMI 3.0 FMU.