Error - Variable time step in ['Current function [A]'] #2140
-
Hello together, running into the following problem:
If I replace the csv time values with constant intervals It converges just fine. Even if I play around with the time intervals from [ms] to [h], I still get a solution. Now I am wondering what is the problem with variable time intervals in the current function? (root finding, the error occurs at the first time step of my current input data) Cheers. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Have you tried creating a finer mesh?
and than add |
Beta Was this translation helpful? Give feedback.
-
You might want to try pre-processing a new drive cycle with more evenly spaced points (especially including more points between 0 and 85000) e.g. using new_t = np.arange(0,t[-1])
new_I = interp1d(t,I)(new_t) |
Beta Was this translation helpful? Give feedback.
You might want to try pre-processing a new drive cycle with more evenly spaced points (especially including more points between 0 and 85000) e.g. using
interp1d
. The interpolant can sometimes be weird if the spacing is unevene.g. something like