Open wwwy10310 opened 3 months ago
Hello, @wwwy10310 – could you please try running the notebook from the "stable" branch of the documentation, i.e., this link: https://docs.pybamm.org/en/stable/source/examples/notebooks/models/coupled-degradation.html and see if that works for you?
Hi @agriyakhetarpal. Thank you for your response. I followed your advice and reran the notebook using the original file downloaded from the "stable" branch. However, I encountered the same error: Additionally, the plot confirms that the simulation did not complete (it was set for 3000 cycles). As you know, even when running the default 10 cycles from the original file, there are always accompanying warnings. I understand that some warnings may not interrupt the simulation process: Could you please offer further advice on this error? Thank you.
PyBaMM Version
24.1
Python Version
3.11.3
Describe the bug
Here I just run the code for the cycling aging experiment as provided in the PyBaMM example, the link:https://docs.pybamm.org/en/latest/source/examples/notebooks/models/coupled-degradation.html. And the code is wrting as below:
"However, the processing result indicates an error : [ERROR] callbacks.on_experiment_error(224): Simulation error: Error in Function::call for 'F' [IdasInterface] at .../casadi/core/function.cpp:1432: Error in Function::call for 'F' [IdasInterface] at .../casadi/core/function.cpp:361: .../casadi/interfaces/sundials/idas_interface.cpp:596: IDASolve returned "IDA_CONV_FAIL". Consult IDAS documentation.
This error message I have encountered many times. I can list what I have already done to try to fix this error: 1, Playing around conbinations with casadisolver: solver = pybamm.CasadiSolver( mode="safe", rtol=1e-6, 1e-5, 1e-4, 1e-3,... atol=1e-6, 1e-5, 1e-4, 1e-3,... dt_max=100, 10,1, 1e-1, 1e-2, 1e-3,...
)
2, Adding the some rest time: [ ( "Discharge at 1C until 2.5 V", # ageing cycles, "Rest for 5,15, 30,...minutes", "Charge at 0.3C until 4.2 V (5 minute period)", "Hold at 4.2 V until C/100 (5 minute period)", "Rest for 5,15, 30,... minutes", ) ]* cycle_number
3, Charging the discharging current with rate variations in experiment design: "Discharge at 0.1C, 0.2C, 0.5C, 1C, ... until 2.5 V", # ageing cycles
4, Even I changed the mesh: var_pts = { "x_n": 5, 15, 20 # negative electrode "x_s": 5, 15, 20# separator "x_p": 5, 15, 20 # positive electrode "r_n": 30, 40, 45 # negative particle "r_p": 30, 40, 45# positive particle }
5, Simulatio mode SPM: fast, fast with events. SPMe: fast fast with events.
Unfortunately, none of above can solve this error, So here, my concern about the parameter set "OKane2022" potentially causing error/issues in the battery cycling aging experiment is invalid. Is it possible that some components or parameters may not be appropriately set for long-term cycling experiments? Is there anyone simulated this Modelling coupled degradation example with long-term secussefuly before? If yes, please give me some advices to modify this code to solve this error, Thank you.
Steps to Reproduce
Relevant log output