Adding New interpolator to pybamm.Interpolant class. #4589
Unanswered
MartinFuentetaja
asked this question in
Q&A
Replies: 2 comments 1 reply
-
This is possible, the main piece of work would be to implement the pchip interpolant in the file |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hello @MartinFuentetaja could you please share the code block you used as a interpolation function also how you updated in the parameter values. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone! I am trying to use Akima1D interpolator to interpolate the OCPs of gr/LFP cell. I have tried to use pchip instead of cubic spline (due to the flatness of the OCP of LFP). However, the following error arises:
NotImplementedError: The interpolator 'pchip' is not supported by CasAdi. Use 'linear' or 'cubic' instead. Alternatively, set 'model.convert_to_format = 'python'' and use a non-CasADi solver.
Therefore, I have also tried to implement Akima1D interpolator from scratch. However, I did not success.
I have to mention that it works with linear interpolator, however I would prefer to use another one.
Beta Was this translation helpful? Give feedback.
All reactions