fabridamicelli/kuramoto

solving with solve_ivp

MohammadJavadNouhi opened this issue · 4 comments

Hi,
sorry I want to make some events with this code and I know that this code use ODEINT for solving differential equations.
So , I tried to change the code and solve with solve-ivp but , I'm not successful !

Can you help me that how I must change the code?
Sincerely yours,
MohammadJavad.

Hi,
can you please provide the code that you tried and didn't work? Having a concrete example at hand makes it much easier to figure out a solution. Thanks.

F

If your goal is just to run the simulation setting a stop threshold you can simply run smaller time windows and check after each interval if the criterion is met. I just put together this example notebook for quick demonstration of the idea.
I hope that (or something pretty similar) makes the job and keeps things simple. Let me know if that works.

@MohammadJavadNouhi I assume the proposed solution is OK, so I am closing this issue.