Non-sampled and derivative-free detection of signal extrema by means of FMI #4381
beutlich
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is to demonstrate both a non-sampled and derivative-free detection of signal extrema - aka the online-minimum.
Let's start from the two corresponding PRs:
Based on LastLib and its demonstrator MinimumTest (available in the same repository) an FMI-based approach can be used to detect the signal extrema. This approach neither results in time events nor requires approximated time derivatives, but solely depends on the solver step size. The adapted example model Modelica.Blocks.Examples.DemonstrateSignalExtrema now looks like:
There is one drawback, too: LastLib is not tool-agnostic and requires a tool-specific redeclaration of
LastLib.Last
for the imported FMU. In the example above, it is redeclared for usage on Dymola for Windows.Beta Was this translation helpful? Give feedback.
All reactions