-
Notifications
You must be signed in to change notification settings - Fork 95
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
Create Hybrid Systems #14
Comments
|
Yeap that was exactly what I was looking at when I wrote this issue. The bouncy ball. One would most likely make a new type, subtype of The this would allow pretty clear and straight forward communication with DiffEq, since to establish this the only thing necessary is to have a |
Or you just add a callback keyword to your |
So that the field |
It handles nothing by using no callbacks. That's the default. |
Yeap. Awesome, this seems like the best idea! To add an extra field to But wait a moment. This does not allow the motion to turn fully discrete until another second callback, right? I mean, a problem becoming fully discrete, then after some condition becomes continuous again? |
This issue was moved to JuliaDynamics/DynamicalSystemsBase.jl#5 |
Hybrid systems are a special type of dynamical system that switches between being continuous and discrete. An example could be the bouncing ball.
It will probably be a tiny bit tricky to implement them, but it has to be made as general as possible.
One need to have 2 equations of motion, one for continuous and one for discrete. Then a callback type function has to be created that will stop the ODE solving of
DifferentialEquations
and switch to discrete evolution (until some other kind of callback stops or for a specified amount of steps... implementation will show the best way...).The text was updated successfully, but these errors were encountered: