Awesome
BLAST-Lite
Battery Lifetime Analysis and Simulation Toolsuite (BLAST) provides a library of battery lifetime and degradation models for various commercial lithium-ion batteries from recent years. Degradation models are indentified from publically available lab-based aging data using NREL's battery life model identification toolkit. The battery life models predicted the expected lifetime of batteries used in mobile or stationary applications as functions of their temperature and use (state-of-charge, depth-of-discharge, and charge/discharge rates). Model implementation is in both Python and MATLAB programming languages. The MATLAB code also provides example applications (stationary storage and EV), climate data, and simple thermal management options. For more information on battery health diagnostics, prediction, and optimization, see NREL's Battery Lifespan webpage.
Installation
Set up and activate a Python environment:
conda create -n blast-lite python=3.12
conda activate blast-lite
Install BLAST-Lite via PyPI.
In the environment created and activate above, run pip install blast-lite
.
Note: Fetching temperature data from NSRDB
The blast.utils.get_nsrdb_temperature_data()
function uses an API key to access the NREL NSRDB for climate data for any requested location. If making many requests, please get your own API key and replace the existing API key with yours in the 'examples.hscfg' file. This configuration file is assumed by default to be in your 'home' folder, that is, the same folder as the code that is being run.
If using a Windows machine, you may need to additionally run the following:
$ python -m pip install python-certifi-win32
.
import certifi
import ssl
import geopy
ctx = ssl.create_default_context(cafile=certifi.where())
geopy.geocoders.options.default_ssl_context = ctx
Quickstart
Once the package is installed, you can generate an example usage dataset by running:
from blast import utils
data = utils.generate_example_data()
To see a list of available battery models, run:
from blast import models
models.available_models()
Select a model, instantiate a cell, and run the simulation:
cell = models.Lfp_Gr_250AhPrismatic()
cell.simulate_battery_life(data)
Caveats
These battery models predict 'expected life', that is, battery life under nominal conditions. Many types of battery failure will not be predicted by these models:
- Overcharge or overdischarge
- Impact of physical damage, vibration, or humidity
- Operating outside of manufacturer performance and environmental limits, such as voltage, temperature, and charge/discharge rate limits
- Pack performance loss due to cell-to-cell inbalance
Aging models are generally trained on a limited amount of data, that is, there is not enough information to estimate cell-to-cell variability in degradation rates. Battery 'warranty life' is generally much more conservative than 'expected life'. These models are estimating cell level degradation, there will be additional performance penalties and caveats for estimating lifetime of battery packs. A good rule-of-thumb is to assume that pack lifetime is 20-30% less than cell lifetime, but please support model simulations with data if you have it.
Citations
- Sony Murata LFP-Gr battery aging data and model
- Nissan Leaf LMO-Gr (2nd life cells) battery aging data
- Panasonic NCA-Gr battery aging data
- Sony Murata NCA-GrSi battery aging data
- Additional research by TUM on mechanistic cycling and mechanistic calendar aging models is not replicated here
- Commercial NMC-LTO battery aging data source
- Kokam NMC111-Gr battery aging data source
- Sanyo NMC111-Gr battery aging model source
- LG MJ1 NMC811-GrSi battery aging data source
- Models of commercially produced (> 1 GWh / yr manufacturers), large format Li-ion cells from a 2023 Journal of Energy Storage paper
- 250 Ah LFP-Gr (high energy density, very low power)
- 75 Ah NMC-Gr 'A' (relatively high power, suitable for fast charging)
- 50 Ah NMC-GR 'B1' (relatively high power, suitable for fast charging)
- 50 Ah NMC-Gr 'B2' (higher energy density than B1 but lower power, questionable performance and durability under fast charging demands)
- Stationary storage battery use profiles are provided open-source by Kucevic et al
- Electric vehicle battery use profiles were generated using NREL's FASTSim tool.
Authors
Paul Gasper, Nina Prakash, Kandler Smith
NREL SWR-22-69