-
Notifications
You must be signed in to change notification settings - Fork 3
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide simple example #36
Comments
Hey @weberscode; You basically can remove all continuous and discrete states. To be honest, I never tested a non-dynamic simulation model with pure I/O-behavior, but this should work, too. Otherwise feel free to report. Other tutorial are WIP BTW. |
I might add that the bouncing ball example code in the docs seems to be broken at the moment. Seems to be a case of updating the docs. FMU_FCT_INIT only returns a tuple with 5 values rather than 6 which is what fmi2CreateSimple seems to expect. Seems to be xd that is missing in the return (no of discrete events as far as I can discern from the source). By extension, FMU_FCT_OUTPUT and FMU_FCT_EVENT need to accept xd as an argument (FMU_FCT_OUTPUT = function(t, x, ẋ, xd, u, p)...) The jl file in the example folder has corrected this. It seems to be broken in some other way at least when I (perhaps incorrectly) do an include on it to try and run it on an Apple M1 (which I know is not officially supported) or WSL Ubuntu. |
Ok, we check this. There will be a little patch (v0.3.2) anyway within the next two weeks. |
Got the example working in v1.10 on Windows 11. |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Hi all,
is it possible to provide a simple example of a julia generated model exchange fmu that i could include to my Modelica model.
The input should be u and the output y = asin(bu). The values a and b are constant parameters.
kind regards
Simon
The text was updated successfully, but these errors were encountered: