-
Notifications
You must be signed in to change notification settings - Fork 85
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
Define zero-crossing surfaces as variables #587
Comments
Regular webmeeting: Torsten S.: "zero crossing" is a term from Simulink, we typically use event indicator. We should use it consistentently. |
For cross-reference: see #7 |
@KarlWernersson : What is your opinion on this? |
For the sake of simplicity, I do the necessary changes on an FMI-2.0 example. Here is the bouncingBall example, taken from FMUSDK. numberOfEventIndicators is removed and EventIndicators subsection has been added to the ModelStructure. Please see attached XML file. fmi2Status GetEventIndicators(fmi2Component c, fmi2Real eventIndicators[], size_t ni) { |
I would like to add a few points - and I'm hesitant to add this feature.
|
Regular Design Webmeeing: Decision: not do this in FMI 3.0 |
FMI Design Meeting: What could/should we clean up
Bigger Change:
Poll: Shall we realize this issue #587 in FMI 3.0?
-Poll |
Poll: Shall we realize this issue #587 in FMI 3.0? @friedrichatgc : will create a PR |
We then have value references for everything. Question: Shall we use fmi3GetXXX and fmi3SetXXX functions instead of the special functions Discussion: Poll: |
The current FMI 3.0 has a well defined variable (including a valueReference) for all types of values, including states, state derivatives and the independent variable (time), but not for event indicators. This commit fixes this. Event indicators are listed now in ModelStructure and have therefore a corresponding variable with a valueReference. Event indicators can be of causality local and output (as states). The c-API function for getting event indicators keep the same but fmi3GetFloat64 can now also be used.
and remove "numberOfEventIndicators" attribute solves #842
fixed with #842 |
Instead of a using two APIs to retrieve zero-crossing surfaces and their number, individual zero-crossing surfaces can be defined as variables in FMI-3. Defining zero-crossing surfaces in this way presents several advantages:
Designation of the variables that take part in the zero-crossing vector:
In the ModelStructure the subsection can be defined. This allows indicating the reference of variables that make the zero-crossing vector as well as the dependency of zero-crossing surfaces on other variables.
The text was updated successfully, but these errors were encountered: