You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Excuse me, I want to solve a single DOF oscillator with a nonlinear spring, whose nonlinear stiffness is modelled as Piecewise Function. How I define ODE?
I try use sympy.Piecewise. While there were no errors and warnings reported, the results appeared to be wrong.
I appended a picture of the correct result calculated by scipy.solve_ivp. The ODE is
Excuse me, I want to solve a single DOF oscillator with a nonlinear spring, whose nonlinear stiffness is modelled as Piecewise Function. How I define ODE?
I try use sympy.Piecewise. While there were no errors and warnings reported, the results appeared to be wrong.
I appended a picture of the correct result calculated by scipy.solve_ivp. The ODE is
The reslut is correct as follow.
Next is code using sunode, and its reslut.
I need your help, if you understand what's going on. THANKS.
The text was updated successfully, but these errors were encountered: