You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have tried a simple example with both IDAKLU and Casadi solvers, with version 23.3. While Casadi works well with Experiment class, IDAKLU is giving a false error described below.
Example:
import pybamm
model = pybamm.lithium_ion.DFN()
exp = pybamm.Experiment(["Discharge at 0.1C until 3.2V","Charge at 0.1C until 4.0V"]*2)
safe_solver = pybamm.CasadiSolver(mode="safe",)
sim = pybamm.Simulation(model,solver=idasolver,experiment=exp)
sim.solve()
sim.plot()
The simulation failed at the beginning of 2nd cycle with the following error for IDA:
Experiment is infeasible: 'event: Maximum voltage' was triggered during 'Discharge at 0.1C until 3.2V'. The returned solution only contains up to step 1 of cycle 3.
Interestingly, it worked fine with Casadi.
Can one of you please look at it and let me know how to address this?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Dear PyBaMM community,
I have tried a simple example with both IDAKLU and Casadi solvers, with version 23.3. While Casadi works well with Experiment class, IDAKLU is giving a false error described below.
Example:
import pybamm
model = pybamm.lithium_ion.DFN()
exp = pybamm.Experiment(["Discharge at 0.1C until 3.2V","Charge at 0.1C until 4.0V"]*2)
safe_solver = pybamm.CasadiSolver(mode="safe",)
sim = pybamm.Simulation(model,solver=idasolver,experiment=exp)
sim.solve()
sim.plot()
The simulation failed at the beginning of 2nd cycle with the following error for IDA:
2023-04-21 13:08:31.277 - [WARNING] callbacks.on_experiment_infeasible(233):
Interestingly, it worked fine with Casadi.
Can one of you please look at it and let me know how to address this?
Thanks.
Ganesh
Beta Was this translation helpful? Give feedback.
All reactions