-
Notifications
You must be signed in to change notification settings - Fork 7
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
determine continuous states of an FMU? #76
Comments
That is a good suggestion! It is not possible now but should be fairly easy to add. Would it be sufficient with a function for fetching the value references? Something like this:
|
That would be good, thanks |
After a second thought I came up with a different solution. The information is already available in the ModelStructure element of the model description XML. By fetching all derivative variables, and checking which variables they are the derivative of, a list of continuous states (and of course state derivataives) can easily be obtained:
Would this work for you? Notice that according to the FMI 2.0.4 specification,
If you want to be strict you also need to check the second requirement. This information is also available in the XML and exposed in the API. |
That would work, thanks! |
It can be useful to know the names of the continuous states in a ME FMU. One way to do this using FMPy is described here: https://stackoverflow.com/questions/75730464/how-to-using-fmpy-extract-the-list-of-continuous-time-states. Is there an equivalent method for fmi4c?
What methods would you suggest for parsing the model_description file to extract that information?
The text was updated successfully, but these errors were encountered: