Skip to content

Problems with current function and initial_soc using Ai2020 parameter set. #2263

Answered by rtimms
HassanSewailem asked this question in Q&A
Discussion options

You must be logged in to vote

It seems to be a problem with the solver using to find the initial conditions. A workaround for now is to discharge and then set the initial conditions based on that solution, e.g. something like

import pybamm

model = pybamm.lithium_ion.DFN()
params = pybamm.ParameterValues("Ai2020")

discharge_exp = pybamm.Experiment(["Discharge at C/10 until 3V"])
discharge_sim = pybamm.Simulation(model, parameter_values=params, experiment=discharge_exp)
discharge_sol = discharge_sim.solve(calc_esoh=False)

# MODEL RE-INITIALIZATION: #############################################################
# Now initialize the model with the solution of the discharge, and then charge 
# We could also do this inpla…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by HassanSewailem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants