changing electrode causes error when running experiments #2302
Unanswered
Brushnie33
asked this question in
Q&A
Replies: 1 comment 2 replies
-
You need to be careful when mixing parameter sets and changing initial conditions. At least run https://github.com/pybamm-team/PyBaMM/blob/develop/examples/notebooks/models/electrode-state-of-health.ipynb to make sure the resulting capacity is what you expect |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
While I was running the lithium-plating model from the example, the codes were executed successfully. And when I changed the negative electrode to graphite_Ecker2015 along with Initial concentration in negative electrode to 12630.8, and ran the exact same experiment, I received errors.
The following are the codes that I have modified:
chemistry = pybamm.parameter_sets.OKane2022
chemistry["negative electrode"] = "graphite_Ecker2015"
param_update = pybamm.ParameterValues(chemistry = chemistry)
param_update.update({"Initial concentration in negative electrode [mol.m-3]": 12630.8})
And this is the error that I've received:
At t = 0.0209104 and h = 4.34678e-014, the corrector convergence failed repeatedly or with |h| = hmin.
At t = 0.0209089 and h = 1.34603e-013, the corrector convergence failed repeatedly or with |h| = hmin.
At t = 0.00705044 and h = 5.80127e-014, the corrector convergence failed repeatedly or with |h| = hmin.
The linesearch algorithm failed with too small a step.
The linesearch algorithm failed with too small a step.
The linesearch algorithm failed with too small a step.
2022-09-14 14:46:42.833 - [ERROR] callbacks.on_experiment_error(226): Simulation error: .../casadi/interfaces/sundials/idas_interface.cpp:591: IDACalcIC returned "IDA_LINESEARCH_FAIL". Consult IDAS documentation.
Output exceeds the size limit. Open the full output data in a text editor
RuntimeError Traceback (most recent call last)
File c:\apps\opentoolsuite\runtime\dos\python\3.9.7\lib\site-packages\pybamm\solvers\casadi_solver.py:690, in CasadiSolver._run_integrator(self, model, y0, inputs_dict, inputs, t_eval, use_grid, extract_sensitivities_in_solution)
689 pybamm.logger.debug("Calling casadi integrator")
--> 690 casadi_sol = integrator(
691 x0=y0_diff, z0=y0_alg, p=inputs_with_tmin, **self.extra_options_call
692 )
693 pybamm.logger.debug("Finished casadi integrator")
File c:\apps\opentoolsuite\runtime\dos\python\3.9.7\lib\site-packages\casadi\casadi.py:13453, in Function.call(self, *args, **kwargs)
13451 else:
13452 # Named inputs -> return dictionary
File c:\apps\opentoolsuite\runtime\dos\python\3.9.7\lib\site-packages\casadi\casadi.py:12324, in Function.call(self, *args)
12257 """
12258 Generate a Jacobian function of output oind with respect to input iind.
12259
(...)
12322
12323 """
RuntimeError: .../casadi/interfaces/sundials/idas_interface.cpp:591: IDACalcIC returned "IDA_LINESEARCH_FAIL". Consult IDAS documentation.
...
741 except RuntimeError as e:
742 # If it doesn't work raise error
--> 743 raise pybamm.SolverError(e.args[0])
SolverError: .../casadi/interfaces/sundials/idas_interface.cpp:591: IDACalcIC returned "IDA_LINESEARCH_FAIL". Consult IDAS documentation.
Beta Was this translation helpful? Give feedback.
All reactions