-
Hi All, I have tried to obtain EIS using PyBaMM-EIS for the coupled-degradation model proposed here by @DrSOKane . The code for the said scenario is mentioned below. And it gives the following error: SolverError: Cannot use ODE solver 'Scipy solver (BDF)' to solve DAE model Can someone guide me in this regard please? import pbeis Set upoptions = { model = pybamm.lithium_ion.DFN(options,name="DFN",) frequencies = np.logspace(-4, 2, 30) Time domainI = 50 * 1e-3 def current_function(t): param["Current function [A]"] = current_function start_time = timer.time() sim = pybamm.Simulation(model, parameter_values=param,solver=pybamm.ScipySolver()) impedances_time = [] end_time = timer.time() Frequency domainmethods = ["direct"] Compare_, ax = plt.subplots() |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 10 replies
-
Try removing the solver=pybamm.ScipySolver() from the Simulation. It should default to Casadi and that can solve DFN model |
Beta Was this translation helpful? Give feedback.
OKane2022
is the only ready-made parameter set that works with all degradation options. It was designed for that purpose.Fortunately, you can add degradation parameters to any parameter set by making a copy of the parameter file and copy-pasting the degradation parameters you need from
OKane2022
. You can then load the parameters using