It seems that forced_spring.py has an example of a piecewise oscillator system. It also shows how to set up a proper hybrid model for such problems. Probably it has what you need.
Documentation says: The point type MX is associated with some type of computational difficulty. It usually represents non-convergence based on our tolerances, but for many different reasons (e.g. initial point is too far from the requested curve type, too close to a homoclinic (large period), ...). As far I understand that's the point where numerics struggle or fail.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Dear all,
Is it possible to analyse a dynamical system with a piecewise function friction model?
I did not see any example or something about it.
Another question is: What is MX point?
Thanks in advance,
Bruno.
Hello!
forced_spring.py
has an example of a piecewise oscillator system. It also shows how to set up a proper hybrid model for such problems. Probably it has what you need.The point type MX is associated with some type of computational difficulty. It usually represents non-convergence based on our tolerances, but for many different reasons (e.g. initial point is too far from the requested curve type, too close to a homoclinic (large period), ...)
. As far I understand that's the point where numerics struggle or fail.Hi, Evgenij,
Thank you very much.
I'll try to implement a piecewise function based on your tip.
=D