-
-
Notifications
You must be signed in to change notification settings - Fork 549
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CasADi performance bottlenecks overview #3868
Comments
SPMe with differential surface form and power mode fails to converge import pybamm
pybamm.set_logging_level("INFO")
model = pybamm.lithium_ion.SPMe(
{"surface form": "differential", "operating mode": "power"}
)
parameter_values = pybamm.ParameterValues("Chen2020")
parameter_values.update({"Power function [W]": 4}, check_already_exists=False)
sim = pybamm.Simulation(model, parameter_values=parameter_values)
sim.solve([0, 3600]) |
#2173 (it now fails instead of hanging indefinitely) |
An example that takes a long time because it struggles near an event (sharp voltage drop-off) import pybamm
pybamm.set_logging_level("INFO")
model = pybamm.lithium_ion.DFN()
parameter_values = pybamm.ParameterValues("Chen2020")
parameter_values["Positive electrode active material volume fraction"] = 0.1
sim = pybamm.Simulation(model, parameter_values=parameter_values)
sim.solve([0, 3600])
sim.plot(["Voltage [V]"]) |
Linking #1996 , we probably don't want to use vertcat at all, instead store the ys separately |
Linking #1482 which only seems to happen with the casadi solver |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue to add any minimum working examples related to improving the casadi solver
The text was updated successfully, but these errors were encountered: