Defining User Defined Functions Taking Electrode SOC as Input #3488
-
Hello - In an attempt to add the effects of electrode SOC on the solid phase diffusivity, I wanted to input the data from a curve plotting electrode SOC vs. electrode diffusivity. I wish to call on this data by using the electrode SOC as an input and use this to adjust the current electrode diffusivity definition that already contains the Arrhenius relationship (i.e. Electrode diffusivity = Arrhenius correction x SOC correction). I am aware that the O'Regan dataset already has provisions for this but it doesn't have any of the aging parameters I needed for my work. I was wondering if there is a way to perform the requested function with PyBamm using any alternative dataset (I am using OKane2022 for reference). Thank you for your time. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
Hello, Does anyone from the team have any suggestions regarding this request? |
Beta Was this translation helpful? Give feedback.
-
If I understand correctly, you want to define a diffusion coefficient that depends on SoC? You can add this as a parameter, for example you can see how it is done in the ORegan2022 dataset and follow that route. If your values come from data, you can create an interpolant from data and pass that as your parameter. |
Beta Was this translation helpful? Give feedback.
You can do it similarly to the OCPs in
Ai2020.py
:where
lico2_ocp_Ai2020_data
contains the data.Regarding your second post, you need to pass the parameters as