From 1c40966e0a837443cad03c8d20515cef2c55c0d1 Mon Sep 17 00:00:00 2001 From: Robert Timms Date: Mon, 18 Jan 2021 14:50:01 +0000 Subject: [PATCH] #1318 changelog --- CHANGELOG.md | 2 ++ test.py | 28 ---------------------------- 2 files changed, 2 insertions(+), 28 deletions(-) delete mode 100644 test.py diff --git a/CHANGELOG.md b/CHANGELOG.md index 2038322381..b44c1051b5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## Features + +- Updated the way events are handled in `CasadiSolver` for more accurate event location ([#1328](https://github.com/pybamm-team/PyBaMM/pull/1328)) - Added error message if initial conditions are outside the bounds of a variable ([#1326](https://github.com/pybamm-team/PyBaMM/pull/1326)) - Added temperature dependence to density, heat capacity and thermal conductivity ([#1323](https://github.com/pybamm-team/PyBaMM/pull/1323)) - Updated solvers' method `solve()` so it can take a list of inputs dictionaries as the `inputs` keyword argument. In this case the model is solved for each input set in the list, and a list of solutions mapping the set of inputs to the solutions is returned. Note that `solve()` can still take a single dictionary as the `inputs` keyword argument. In this case the behaviour is unchanged compared to previous versions. diff --git a/test.py b/test.py deleted file mode 100644 index c1241cd425..0000000000 --- a/test.py +++ /dev/null @@ -1,28 +0,0 @@ -import matplotlib.pyplot as plt -import pybamm - -options = {"sei": "solvent-diffusion limited"} -model = pybamm.lithium_ion.DFN(options=options) - -params = pybamm.ParameterValues(chemistry=pybamm.parameter_sets.Chen2020) -params.update({"Reference temperature [K]": 278.15}) -params.update({"Ambient temperature [K]": 278.15}) -params.update({"Initial temperature [K]": 278.15}) -params.update({"Upper voltage cut-off [V]": 4.21}) - -periods = [10, 60] -markers = ["x", "o"] -for period, marker in zip(periods, markers): - exp = pybamm.Experiment( - ["Hold at 4.2V until C/100", "Rest for 4 hours (3 minute period)"] - + [f"Discharge at 1C until 2.5V ({period} second period)"] - ) - sim = pybamm.Simulation(model=model, parameter_values=params, experiment=exp) - sim.solve() - time = sim.solution.t - voltage = sim.solution["Terminal voltage [V]"].entries - plt.plot( - time, voltage, linestyle="-", marker=marker, label=f"({period} second period" - ) -plt.legend() -plt.show()