Published November 21, 2024
| Version v24.11.0
Software
Open
Python Battery Mathematical Modelling (PyBaMM)
Authors/Creators
Description
Features
- Added
CoupledVariablewhich provides a placeholder variable whose equation can be elsewhere in the model. (#4556) - Adds support to
pybamm.Experimentfor theoutput_variablesoption in theIDAKLUSolver. (#4534) - Adds an option "voltage as a state" that can be "false" (default) or "true". If "true" adds an explicit algebraic equation for the voltage. (#4507)
- Improved
QuickPlotaccuracy for simulations with Hermite interpolation. (#4483) - Added Hermite interpolation to the (
IDAKLUSolver) that improves the accuracy and performance of post-processing variables. (#4464) - Added basic telemetry to record which functions are being run. See Telemetry section in the User Guide for more information. (#4441)
- Added
BasicDFNmodel for sodium-ion batteries (#4451) - Added sensitivity calculation support for
pybamm.Simulationandpybamm.Experiment(#4415) - Added OpenMP parallelization to IDAKLU solver for lists of input parameters (#4449)
- Added phase-dependent particle options to LAM (#4369)
- Added a lithium ion equivalent circuit model with split open circuit voltages for each electrode (
SplitOCVR). (#4330) - Added the
pybamm.DiscreteTimeSumexpression node to sum an expression over a sequence of data times, and accompanyingpybamm.DiscreteTimeDataclass to store the data times and values (#4501)
Optimizations
- Performance refactor of JAX BDF Solver with default Jax method set to
"BDF". (#4456) - Improved performance of initialization and reinitialization of ODEs in the (
IDAKLUSolver). (#4453) - Removed the
start_step_offsetsetting and disabled minimumdtwarnings for drive cycles with the (IDAKLUSolver). (#4416)
Bug Fixes
- Added error for binary operators on two concatenations with different numbers of children. Previously, the extra children were dropped. Also fixed bug where Q_rxn was dropped from the total heating term in half-cell models. (#4562)
- Fixed bug where Q_rxn was set to 0 for the negative electrode in half-cell models. (#4557)
- Fixed bug in post-processing solutions with infeasible experiments using the (
IDAKLUSolver). (#4541) - Disabled IREE on MacOS due to compatibility issues and added the CasADI path to the environment to resolve issues on MacOS and Linux. Windows users may still experience issues with interpolation. (#4528)
- Added
_from_json()functionality toSignwhich was erroneously omitted previously. (#4517) - Fixed bug where IDAKLU solver failed when
output variableswere specified and an extrapolation event is present. (#4440)
Breaking changes
- Deprecated
pybamm.Simulation.set_parametersandpybamm.Simulation. set_up_and_parameterise_experimentfunctions inpybamm.simulation.py. (#3752) - Removed all instances of
param = self.paramand now directly accessself.paramacross the codebase. This change simplifies parameter references and enhances readability. (#4484) - Removed the deprecation warning for the chemistry argument in ParameterValues (#4466)
- The parameters "... electrode OCP entropic change [V.K-1]" and "... electrode volume change" are now expected to be functions of stoichiometry only instead of functions of both stoichiometry and maximum concentration (#4427)
- Renamed
set_eventsfunction toadd_events_fromto better reflect its purpose. (#4421)
Notes
Files
pybamm-team/PyBaMM-v24.11.0.zip
Files
(8.5 MB)
| Name | Size | Download all |
|---|---|---|
|
md5:5632a9ba2829a637616903ec85786d23
|
8.5 MB | Preview Download |
Additional details
Related works
- Is supplement to
- Software: https://github.com/pybamm-team/PyBaMM/tree/v24.11.0 (URL)