How to access OCP data? #3262
Replies: 5 comments 1 reply
-
Does this work? ocp_value = graphite_ocp_Enertech_Ai2020([0.2]) |
Beta Was this translation helpful? Give feedback.
-
Yes, this returns an object <class 'pybamm.expression_tree.interpolant.Interpolant'>, with child equal to 0.2. |
Beta Was this translation helpful? Give feedback.
-
You need to do something like |
Beta Was this translation helpful? Give feedback.
-
Now it works, thank you!! I had no idea that I needed to use pybamm.linspace(). Is that documented anywhere? |
Beta Was this translation helpful? Give feedback.
-
The linspace is documented in the docs (https://docs.pybamm.org/en/latest/source/api/expression_tree/array.html#pybamm.linspace) but there is no example of this. Transferring to a discussion as it might be useful to other users. |
Beta Was this translation helpful? Give feedback.
-
PyBaMM Version
23.5
Python Version
3.10.12
Describe the bug
I am trying to use the OCP curve of graphite as implemented in the "Chen2020_composite" parameter dataset, but when I try to access the data I get a TypeError. OCP curves of silicon and NMC implemented in the same dataset work as expected.
Steps to Reproduce
Relevant log output
Beta Was this translation helpful? Give feedback.
All reactions