CATIA-Systems / FMPy

Simulate Functional Mockup Units (FMUs) in Python
Other
429 stars 118 forks source link

fmpy/examples/custom_input.py with FMI3 #640

Open autoantwort opened 8 months ago

autoantwort commented 8 months ago

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.

wredsen commented 6 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

greenwoodms06 commented 4 months ago

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:

You can find two FMI3 examples here.