Skip to content

"Rest" ignored in experiment #1531

Answered by brosaplanella
sklein-ise asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Siri! I think the issue is that you processed the model with the parameters. Try instead running this:

import pybamm
import matplotlib.pyplot as plt

experiment = pybamm.Experiment(
[("Rest for 50 minutes")] * 1,
)

model = pybamm.lithium_ion.DFN()

param = model.default_parameter_values

sim = pybamm.Simulation(model, parameter_values=param, experiment=experiment)
sim.solve()

solution = sim.solution

Note that because you are using the default parameter values you could just not define them and run the simulation as

sim = pybamm.Simulation(model, experiment=experiment)

(if not specified it uses the default parameters).

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by brosaplanella
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants