Skip to main content

Tool to model lifetime and degradation for commercial lithium-ion batteries.

Project description

BLAST-Lite

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.

A wide variety of battery degradation models are provided for simulating batteries of different chemistries, manufacturers, formats, and capacities. All current examples are Lithium-ion batteries.

Example battery life predictions

Simplistic assumptions related to battery control can be easily selected. Given a state-of-charge timeseries, there are two straightforward ways this state-of-charge profile can evolve over time:

  • Conserve energy throughput, that is, increase the size of state-of-charge swings as the battery ages. Basically, as the battery degrades, the depth-of-discharge (and average state-of-charge) will decrease as the battery needs to discharge to a lower SOC to provide the same amount of energy for every discharge/charge event.
  • Maintain constant state-of-charge limits, which effectively decreases the energy-throughput per cycle as the battery ages. This is not a very common strategy, as you'd be getting less use out of the battery (it's like driving an electric vehicle fewer miles each trip as the battery degraded), but does tend to extend battery lifetime.

These assumptions are highly simplistic. The BLAST degradation modeling framework could be coupled with a more realistic battery performance model and simulated battery controllers to result in more accurate simulations, but obviously at increased computational cost and effort.

Example battery control strategies

Simple time- or capacity-based thresholds can be used to easily run simulations to specific endpoints.

Example simulation thresholds

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

Authors

Paul Gasper, Nina Prakash, Kandler Smith

NREL SWR-22-69

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

blast_lite-1.0.9.tar.gz (39.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

blast_lite-1.0.9-py3-none-any.whl (65.5 kB view details)

Uploaded Python 3

File details

Details for the file blast_lite-1.0.9.tar.gz.

File metadata

  • Download URL: blast_lite-1.0.9.tar.gz
  • Upload date:
  • Size: 39.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for blast_lite-1.0.9.tar.gz
Algorithm Hash digest
SHA256 b169ee30f4e769833b7b4c9212964f68803784458b9af4446118dbbf06370c02
MD5 66a1a037d1b9ff55093d0c05bd97c48c
BLAKE2b-256 02cafa7183c417b01566516bda28bd566e8400b5775b7bd9aec5f037d802721a

See more details on using hashes here.

File details

Details for the file blast_lite-1.0.9-py3-none-any.whl.

File metadata

  • Download URL: blast_lite-1.0.9-py3-none-any.whl
  • Upload date:
  • Size: 65.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for blast_lite-1.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 8dabb9c1966437ef215d4eddad19e54e7b321e30e851e1c99b9f3f2bd31e7982
MD5 03d6101211d68f29517dc2e0eb6cc8bc
BLAKE2b-256 3fd2486894f90994c33c8b887a60d70ab35d8b043de446696c7aebec724e56c0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page