Skip to content

Commit 9d5f5a1

Browse files
Merge pull request #2740 from pybamm-team/other-useful-variables
Other useful variables
2 parents 1404074 + 6a3c26c commit 9d5f5a1

File tree

142 files changed

+6231
-5721
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

142 files changed

+6231
-5721
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,20 @@
11
# [Unreleased](https://github.com/pybamm-team/PyBaMM/)
22

3+
## Features
4+
5+
- Renamed "Terminal voltage [V]" to just "Voltage [V]". "Terminal voltage [V]" can still be used and will return the same value as "Voltage [V]".
6+
- Added "Negative electrode surface potential difference at separator interface [V]", which is the value of the surface potential difference (`phi_s - phi_e`) at the anode/separator interface, commonly controlled in fast-charging algorithms to avoid plating. Also added "Positive electrode surface potential difference at separator interface [V]". ([#2740](https://github.com/pybamm-team/PyBaMM/pull/2740))
7+
- Added "Open-circuit voltage [V]", which is the open-circuit voltage as calculated from the bulk particle concentrations. The old variable "Measured open circuit voltage [V]", which referred to the open-circuit potential as calculated from the surface particle concentrations, has been renamed to "Surface open-circuit voltage [V]". ([#2740](https://github.com/pybamm-team/PyBaMM/pull/2740))
8+
- Added an example for `plot_voltage_components`, explaining what the different voltage components are. ([#2740](https://github.com/pybamm-team/PyBaMM/pull/2740))
9+
10+
## Bug fixes
11+
12+
- Fixed `plot_voltage_components` so that the sum of overpotentials is now equal to the voltage ([#2740](https://github.com/pybamm-team/PyBaMM/pull/2740))
13+
314
## Breaking changes
415

16+
- Renamed "Measured open circuit voltage [V]" to "Surface open-circuit voltage [V]". This variable was calculated from surface particle concentrations, and hence "hid" the overpotential from particle gradients. The new variable "Open-circuit voltage [V]" is calculated from bulk particle concentrations instead. ([#2740](https://github.com/pybamm-team/PyBaMM/pull/2740))
17+
- Renamed all references to "open circuit" to be "open-circuit" instead. ([#2740](https://github.com/pybamm-team/PyBaMM/pull/2740))
518
- All PyBaMM models are now dimensional. This has been benchmarked against dimensionless models and found to give around the same solve time. Implementing dimensional models greatly reduces the barrier to entry for adding new models. However, this comes with several breaking changes: (i) the `timescale` and `length_scales` attributes of a model have been removed (they are no longer needed) (ii) several dimensionless variables are no longer defined, but the corresponding dimensional variables can still be accessed by adding the units to the name (iii) some parameters used only for non-dimensionalization, such as "Typical current [A]", have been removed ([#2419](https://github.com/pybamm-team/PyBaMM/pull/2419))
619

720
# [v23.2](https://github.com/pybamm-team/PyBaMM/tree/v23.2) - 2023-02-28

docs/source/api/models/submodels/interface/open_circuit_potential.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Open circuit potential models
1+
Open-circuit potential models
22
=============================
33

44
.. autoclass:: pybamm.open_circuit_potential.BaseOpenCircuitPotential

docs/source/api/models/submodels/particle/base_particle.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ Particle Base Model
44
.. autoclass:: pybamm.particle.BaseParticle
55
:members:
66

7+
.. autoclass:: pybamm.particle.TotalConcentration
8+
:members:

docs/source/api/models/submodels/particle/fickian_diffusion.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,3 @@ Fickian Diffusion
33

44
.. autoclass:: pybamm.particle.FickianDiffusion
55
:members:
6-
7-

examples/notebooks/Creating Models/5-half-cell-model.ipynb

Lines changed: 661 additions & 661 deletions
Large diffs are not rendered by default.

examples/notebooks/Getting Started/Tutorial 3 - Basic plotting.ipynb

Lines changed: 899 additions & 899 deletions
Large diffs are not rendered by default.

examples/notebooks/Getting Started/Tutorial 4 - Setting parameter values.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@
434434
"model = pybamm.lithium_ion.SPMe()\n",
435435
"sim = pybamm.Simulation(model, parameter_values=parameter_values)\n",
436436
"sim.solve()\n",
437-
"sim.plot([\"Current [A]\", \"Terminal voltage [V]\"])"
437+
"sim.plot([\"Current [A]\", \"Voltage [V]\"])"
438438
]
439439
},
440440
{
@@ -507,7 +507,7 @@
507507
"sim = pybamm.Simulation(model, parameter_values=parameter_values)\n",
508508
"t_eval = np.arange(0, 121, 1)\n",
509509
"sim.solve(t_eval=t_eval)\n",
510-
"sim.plot([\"Current [A]\", \"Terminal voltage [V]\"])"
510+
"sim.plot([\"Current [A]\", \"Voltage [V]\"])"
511511
]
512512
},
513513
{

examples/notebooks/Getting Started/Tutorial 6 - Managing simulation outputs.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
"outputs": [],
8585
"source": [
8686
"t = solution[\"Time [s]\"]\n",
87-
"V = solution[\"Terminal voltage [V]\"]"
87+
"V = solution[\"Voltage [V]\"]"
8888
]
8989
},
9090
{
@@ -353,7 +353,7 @@
353353
"metadata": {},
354354
"outputs": [],
355355
"source": [
356-
"sol.save_data(\"sol_data.pkl\", [\"Current [A]\", \"Terminal voltage [V]\"])"
356+
"sol.save_data(\"sol_data.pkl\", [\"Current [A]\", \"Voltage [V]\"])"
357357
]
358358
},
359359
{
@@ -369,10 +369,10 @@
369369
"metadata": {},
370370
"outputs": [],
371371
"source": [
372-
"sol.save_data(\"sol_data.csv\", [\"Current [A]\", \"Terminal voltage [V]\"], to_format=\"csv\")\n",
372+
"sol.save_data(\"sol_data.csv\", [\"Current [A]\", \"Voltage [V]\"], to_format=\"csv\")\n",
373373
"# matlab needs names without spaces\n",
374-
"sol.save_data(\"sol_data.mat\", [\"Current [A]\", \"Terminal voltage [V]\"], to_format=\"matlab\",\n",
375-
" short_names={\"Current [A]\": \"I\", \"Terminal voltage [V]\": \"V\"})"
374+
"sol.save_data(\"sol_data.mat\", [\"Current [A]\", \"Voltage [V]\"], to_format=\"matlab\",\n",
375+
" short_names={\"Current [A]\": \"I\", \"Voltage [V]\": \"V\"})"
376376
]
377377
},
378378
{

examples/notebooks/Getting Started/Tutorial 7 - Model options.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
}
106106
],
107107
"source": [
108-
"sim.plot([\"Cell temperature [K]\", \"Total heating [W.m-3]\", \"Current [A]\", \"Terminal voltage [V]\"])"
108+
"sim.plot([\"Cell temperature [K]\", \"Total heating [W.m-3]\", \"Current [A]\", \"Voltage [V]\"])"
109109
]
110110
},
111111
{

examples/notebooks/Getting Started/Tutorial 9 - Changing the mesh.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@
235235
"cell_type": "markdown",
236236
"metadata": {},
237237
"source": [
238-
"We can now pass our list of solutions to the dynamic plot method, allowing use to see the influence of the mesh on the computed terminal voltage. We pass our list of points using the `labels` keyword so that the plots are labeled with the number of points used in the simulation"
238+
"We can now pass our list of solutions to the dynamic plot method, allowing use to see the influence of the mesh on the computed voltage. We pass our list of points using the `labels` keyword so that the plots are labeled with the number of points used in the simulation"
239239
]
240240
},
241241
{
@@ -269,7 +269,7 @@
269269
}
270270
],
271271
"source": [
272-
"pybamm.dynamic_plot(solutions, [\"Terminal voltage [V]\"], time_unit=\"seconds\", labels=npts) "
272+
"pybamm.dynamic_plot(solutions, [\"Voltage [V]\"], time_unit=\"seconds\", labels=npts) "
273273
]
274274
},
275275
{

0 commit comments

Comments
 (0)