Skip to content

Commit

Permalink
revert example
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinsulzer committed Oct 10, 2021
1 parent 96b3dcf commit 1a72c32
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions examples/scripts/compare_lithium_ion.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,18 @@

# load models
models = [
pybamm.lithium_ion.SPM({"operating mode": "power"}),
# pybamm.lithium_ion.SPMe(),
# pybamm.lithium_ion.DFN(),
# pybamm.lithium_ion.NewmanTobias(),
pybamm.lithium_ion.SPM(),
pybamm.lithium_ion.SPMe(),
pybamm.lithium_ion.DFN(),
pybamm.lithium_ion.NewmanTobias(),
]

parameter_values = models[0].default_parameter_values
parameter_values.update({"Power function [W]": 2}, check_already_exists=False)

# create and run simulations
sims = []
for model in models:
sim = pybamm.Simulation(model, parameter_values=parameter_values)
sim = pybamm.Simulation(model)
sim.solve([0, 3600])
sims.append(sim)

# plot
pybamm.dynamic_plot(
sims,
[
"X-averaged negative particle concentration",
"X-averaged positive particle concentration",
],
)
pybamm.dynamic_plot(sims)

0 comments on commit 1a72c32

Please sign in to comment.