RPT With Degradation Experiment #3481
-
Hello - I am having some difficulty plotting an RPT with degradation experiment. I was following the example notebook on RPT with degradation and wrote the following code: import pybamm model = pybamm.lithium_ion.DFN(options = { param = pybamm.ParameterValues("OKane2022") #Simple cycling experiment cccv_experiment = pybamm.Experiment([ charge_experiment = pybamm.Experiment([( rpt_experiment = pybamm.Experiment([( #Run model cccv_sols = [] #Plot Discharge Capacity cccv_cycles = [] I keep getting an error of "list index out of range" for the following line of code: "start_capacity = rpt_sol.cycles[i*(N+2)+j].steps[2]["Discharge capacity [A.h]"].entries[0]". In fact, I downloaded the example notebook and tried plugging M=11 and N=20 and I get the exact same error. I don't get the error when I use the notebook values of M=5 and N=10. Forgive me for the seemingly simplistic nature of this question, but could anyone tell me why I getting the list index out of range error when I simply try to change the values of M and N? My basic purpose here is to plot the discharge capacity over the number of cycles with the rpt portion of my experiment. If there is a simpler way to do this, please do let me know as well. Thank you for your time. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Never mind, I figured it out. Was an error with my code. |
Beta Was this translation helpful? Give feedback.
Never mind, I figured it out. Was an error with my code.