BLAST-Lite 1.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- blast_lite-1.0.0/BLAST_Lite.egg-info/PKG-INFO +153 -0
- blast_lite-1.0.0/BLAST_Lite.egg-info/SOURCES.txt +29 -0
- blast_lite-1.0.0/BLAST_Lite.egg-info/dependency_links.txt +1 -0
- blast_lite-1.0.0/BLAST_Lite.egg-info/requires.txt +14 -0
- blast_lite-1.0.0/BLAST_Lite.egg-info/top_level.txt +1 -0
- blast_lite-1.0.0/LICENSE +27 -0
- blast_lite-1.0.0/NOTICE +5 -0
- blast_lite-1.0.0/PKG-INFO +153 -0
- blast_lite-1.0.0/README.md +98 -0
- blast_lite-1.0.0/blast/__init__.py +4 -0
- blast_lite-1.0.0/blast/models/__init__.py +17 -0
- blast_lite-1.0.0/blast/models/_available_models.py +9 -0
- blast_lite-1.0.0/blast/models/degradation_model.py +536 -0
- blast_lite-1.0.0/blast/models/lfp_gr_250AhPrismatic_2019.py +188 -0
- blast_lite-1.0.0/blast/models/lfp_gr_SonyMurata3Ah_2018.py +291 -0
- blast_lite-1.0.0/blast/models/lmo_gr_NissanLeaf66Ah_2ndLife_2020.py +174 -0
- blast_lite-1.0.0/blast/models/nca_gr_Panasonic3Ah_2018.py +190 -0
- blast_lite-1.0.0/blast/models/nca_grsi_SonyMurata2p5Ah_2023.py +333 -0
- blast_lite-1.0.0/blast/models/nmc111_gr_Kokam75Ah_2017.py +225 -0
- blast_lite-1.0.0/blast/models/nmc111_gr_Sanyo2Ah_2014.py +235 -0
- blast_lite-1.0.0/blast/models/nmc811_grSi_LGMJ1_4Ah_2020.py +181 -0
- blast_lite-1.0.0/blast/models/nmc_gr_50Ah_B1_2020.py +182 -0
- blast_lite-1.0.0/blast/models/nmc_gr_50Ah_B2_2020.py +186 -0
- blast_lite-1.0.0/blast/models/nmc_gr_75Ah_A_2019.py +182 -0
- blast_lite-1.0.0/blast/models/nmc_lto_10Ah_2020.py +189 -0
- blast_lite-1.0.0/blast/utils/__init__.py +2 -0
- blast_lite-1.0.0/blast/utils/demo.py +136 -0
- blast_lite-1.0.0/blast/utils/functions.py +198 -0
- blast_lite-1.0.0/blast/utils/rainflow.py +166 -0
- blast_lite-1.0.0/pyproject.toml +49 -0
- blast_lite-1.0.0/setup.cfg +4 -0
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: BLAST-Lite
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Tool to model lifetime and degradation for commercial lithium-ion batteries.
|
|
5
|
+
Author-email: Paul Gasper <Paul.Gasper@nrel.gov>, Kandler Smith <Kandler.Smith@nrel.gov>
|
|
6
|
+
License: Copyright (c) 2023, Alliance for Sustainable Energy, LLC
|
|
7
|
+
All rights reserved.
|
|
8
|
+
|
|
9
|
+
Redistribution and use in source and binary forms, with or without
|
|
10
|
+
modification, are permitted provided that the following conditions are met:
|
|
11
|
+
|
|
12
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
|
13
|
+
list of conditions and the following disclaimer.
|
|
14
|
+
|
|
15
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
16
|
+
this list of conditions and the following disclaimer in the documentation
|
|
17
|
+
and/or other materials provided with the distribution.
|
|
18
|
+
|
|
19
|
+
3. Neither the name of the copyright holder nor the names of its
|
|
20
|
+
contributors may be used to endorse or promote products derived from
|
|
21
|
+
this software without specific prior written permission.
|
|
22
|
+
|
|
23
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
24
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
25
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
26
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
27
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
28
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
29
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
30
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
31
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
32
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
33
|
+
|
|
34
|
+
Project-URL: Homepage, https://github.com/NREL/BLAST-Lite
|
|
35
|
+
Classifier: Programming Language :: Python :: 3
|
|
36
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
37
|
+
Classifier: Operating System :: OS Independent
|
|
38
|
+
Requires-Python: <=3.12.4,>=3.8
|
|
39
|
+
Description-Content-Type: text/markdown
|
|
40
|
+
License-File: LICENSE
|
|
41
|
+
License-File: NOTICE
|
|
42
|
+
Requires-Dist: h5pyd
|
|
43
|
+
Requires-Dist: numpy
|
|
44
|
+
Requires-Dist: pandas
|
|
45
|
+
Requires-Dist: matplotlib
|
|
46
|
+
Requires-Dist: scipy
|
|
47
|
+
Requires-Dist: nrel-rex
|
|
48
|
+
Requires-Dist: geopy
|
|
49
|
+
Provides-Extra: dev
|
|
50
|
+
Requires-Dist: sphinx; extra == "dev"
|
|
51
|
+
Requires-Dist: myst-parser; extra == "dev"
|
|
52
|
+
Requires-Dist: sphinx-copybutton; extra == "dev"
|
|
53
|
+
Requires-Dist: pydata-sphinx-theme; extra == "dev"
|
|
54
|
+
Requires-Dist: ipykernel; extra == "dev"
|
|
55
|
+
|
|
56
|
+

|
|
57
|
+
|
|
58
|
+
# BLAST-Lite
|
|
59
|
+
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](https://www.nrel.gov/transportation/battery-lifespan.html) webpage.
|
|
60
|
+
|
|
61
|
+

|
|
62
|
+
|
|
63
|
+
### Installation
|
|
64
|
+
|
|
65
|
+
Set up and activate a Python environment (anything between Python 3.8 and 3.12):
|
|
66
|
+
|
|
67
|
+
```
|
|
68
|
+
conda create -n blast-lite python=3.12
|
|
69
|
+
conda activate blast-lite
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Install BLAST-Lite via PyPI.
|
|
73
|
+
In the environment created and activate above, run `pip install blast-lite`.
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
#### Note: Fetching temperature data from NSRDB
|
|
77
|
+
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](https://developer.nrel.gov/signup) 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.
|
|
78
|
+
|
|
79
|
+
If using a Windows machine, you may need to additionally run the following:
|
|
80
|
+
|
|
81
|
+
`$ python -m pip install python-certifi-win32`.
|
|
82
|
+
|
|
83
|
+
```python
|
|
84
|
+
import certifi
|
|
85
|
+
import ssl
|
|
86
|
+
import geopy
|
|
87
|
+
|
|
88
|
+
ctx = ssl.create_default_context(cafile=certifi.where())
|
|
89
|
+
geopy.geocoders.options.default_ssl_context = ctx
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
### Quickstart
|
|
94
|
+
Once the package is installed, you can generate an example usage dataset by running:
|
|
95
|
+
|
|
96
|
+
```python
|
|
97
|
+
from blast import utils
|
|
98
|
+
data = utils.generate_example_data()
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
To see a list of available battery models, run:
|
|
102
|
+
```python
|
|
103
|
+
from blast import models
|
|
104
|
+
models.available_models()
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
Select a model, instantiate a cell, and run the simulation:
|
|
108
|
+
```python
|
|
109
|
+
cell = models.Lfp_Gr_250AhPrismatic()
|
|
110
|
+
cell.simulate_battery_life(data)
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
### Caveats
|
|
114
|
+
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:
|
|
115
|
+
- Overcharge or overdischarge
|
|
116
|
+
- Impact of physical damage, vibration, or humidity
|
|
117
|
+
- Operating outside of manufacturer performance and environmental limits, such as voltage, temperature, and charge/discharge rate limits
|
|
118
|
+
- Pack performance loss due to cell-to-cell inbalance
|
|
119
|
+
|
|
120
|
+
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.
|
|
121
|
+
Battery 'warranty life' is generally much more conservative than 'expected life'.
|
|
122
|
+
These models are estimating cell level degradation, there will be additional performance penalties and caveats for estimating lifetime of battery packs.
|
|
123
|
+
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.
|
|
124
|
+
|
|
125
|
+
### Citations
|
|
126
|
+
- Sony Murata LFP-Gr battery aging data and model
|
|
127
|
+
- [Calendar aging data source](https://doi.org/10.1016/j.est.2018.01.019)
|
|
128
|
+
- [Cycle aging data source](https://doi.org/10.1016/j.jpowsour.2019.227666)
|
|
129
|
+
- [Model identification source](https://doi.org/10.1149/1945-7111/ac86a8)
|
|
130
|
+
- Nissan Leaf LMO-Gr (2nd life cells) battery aging data
|
|
131
|
+
- [Calendar aging data source](https://doi.org/10.1109/EEEIC/ICPSEUROPE54979.2022.9854784)
|
|
132
|
+
- [Cycle aging data source](https://doi.org/10.1016/j.est.2020.101695)
|
|
133
|
+
- Panasonic NCA-Gr battery aging data
|
|
134
|
+
- [Calendar aging data source](https://dx.doi.org/10.1149/2.0411609jes)
|
|
135
|
+
- [Cycle aging data source](https://doi.org/10.1149/1945-7111/abae37)
|
|
136
|
+
- [Sony Murata NCA-GrSi battery aging data](https://doi.org/10.1016/j.jpowsour.2022.232498)
|
|
137
|
+
- Additional research by TUM on [mechanistic cycling](https://doi.org/10.1016/j.jpowsour.2023.233947) and [mechanistic calendar aging](https://doi.org/10.1016/j.jpowsour.2023.233208) models is not replicated here
|
|
138
|
+
- [Commercial NMC-LTO battery aging data source](https://doi.org/10.1016/j.jpowsour.2020.228566)
|
|
139
|
+
- [Kokam NMC111-Gr battery aging data source](https://ieeexplore.ieee.org/iel7/7951530/7962914/07963578.pdf)
|
|
140
|
+
- [Sanyo NMC111-Gr battery aging model source](http://dx.doi.org/10.1016/j.jpowsour.2014.02.012)
|
|
141
|
+
- [LG MJ1 NMC811-GrSi battery aging data source](https://everlasting-project.eu/wp-content/uploads/2020/03/EVERLASTING_D2.3_final_20200228.pdf)
|
|
142
|
+
- Models of commercially produced (> 1 GWh / yr manufacturers), large format Li-ion cells from a [2023 Journal of Energy Storage paper](https://doi.org/10.1016/j.est.2023.109042)
|
|
143
|
+
- 250 Ah LFP-Gr (high energy density, very low power)
|
|
144
|
+
- 75 Ah NMC-Gr 'A' (relatively high power, suitable for fast charging)
|
|
145
|
+
- 50 Ah NMC-GR 'B1' (relatively high power, suitable for fast charging)
|
|
146
|
+
- 50 Ah NMC-Gr 'B2' (higher energy density than B1 but lower power, questionable performance and durability under fast charging demands)
|
|
147
|
+
- Stationary storage battery use profiles are [provided open-source](https://dataserv.ub.tum.de/index.php/s/m1510254) by [Kucevic et al](https://www.sciencedirect.com/science/article/pii/S2352152X19309016)
|
|
148
|
+
- Electric vehicle battery use profiles were generated using NREL's [FASTSim tool](https://www.nrel.gov/transportation/fastsim.html).
|
|
149
|
+
|
|
150
|
+
### Authors
|
|
151
|
+
Paul Gasper, Kandler Smith
|
|
152
|
+
|
|
153
|
+
NREL SWR-22-69
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
LICENSE
|
|
2
|
+
NOTICE
|
|
3
|
+
README.md
|
|
4
|
+
pyproject.toml
|
|
5
|
+
BLAST_Lite.egg-info/PKG-INFO
|
|
6
|
+
BLAST_Lite.egg-info/SOURCES.txt
|
|
7
|
+
BLAST_Lite.egg-info/dependency_links.txt
|
|
8
|
+
BLAST_Lite.egg-info/requires.txt
|
|
9
|
+
BLAST_Lite.egg-info/top_level.txt
|
|
10
|
+
blast/__init__.py
|
|
11
|
+
blast/models/__init__.py
|
|
12
|
+
blast/models/_available_models.py
|
|
13
|
+
blast/models/degradation_model.py
|
|
14
|
+
blast/models/lfp_gr_250AhPrismatic_2019.py
|
|
15
|
+
blast/models/lfp_gr_SonyMurata3Ah_2018.py
|
|
16
|
+
blast/models/lmo_gr_NissanLeaf66Ah_2ndLife_2020.py
|
|
17
|
+
blast/models/nca_gr_Panasonic3Ah_2018.py
|
|
18
|
+
blast/models/nca_grsi_SonyMurata2p5Ah_2023.py
|
|
19
|
+
blast/models/nmc111_gr_Kokam75Ah_2017.py
|
|
20
|
+
blast/models/nmc111_gr_Sanyo2Ah_2014.py
|
|
21
|
+
blast/models/nmc811_grSi_LGMJ1_4Ah_2020.py
|
|
22
|
+
blast/models/nmc_gr_50Ah_B1_2020.py
|
|
23
|
+
blast/models/nmc_gr_50Ah_B2_2020.py
|
|
24
|
+
blast/models/nmc_gr_75Ah_A_2019.py
|
|
25
|
+
blast/models/nmc_lto_10Ah_2020.py
|
|
26
|
+
blast/utils/__init__.py
|
|
27
|
+
blast/utils/demo.py
|
|
28
|
+
blast/utils/functions.py
|
|
29
|
+
blast/utils/rainflow.py
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
blast
|
blast_lite-1.0.0/LICENSE
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
Copyright (c) 2023, Alliance for Sustainable Energy, LLC
|
|
2
|
+
All rights reserved.
|
|
3
|
+
|
|
4
|
+
Redistribution and use in source and binary forms, with or without
|
|
5
|
+
modification, are permitted provided that the following conditions are met:
|
|
6
|
+
|
|
7
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
|
8
|
+
list of conditions and the following disclaimer.
|
|
9
|
+
|
|
10
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
11
|
+
this list of conditions and the following disclaimer in the documentation
|
|
12
|
+
and/or other materials provided with the distribution.
|
|
13
|
+
|
|
14
|
+
3. Neither the name of the copyright holder nor the names of its
|
|
15
|
+
contributors may be used to endorse or promote products derived from
|
|
16
|
+
this software without specific prior written permission.
|
|
17
|
+
|
|
18
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
19
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
20
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
21
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
22
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
23
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
24
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
25
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
26
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
27
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
blast_lite-1.0.0/NOTICE
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
NOTICE
|
|
2
|
+
|
|
3
|
+
BLAST-Python Copyright ©2022 Alliance for Sustainable Energy, LLC
|
|
4
|
+
|
|
5
|
+
These data were produced by the Alliance for Sustainable Energy, LLC (Contractor) under Contract No. DE-AC36-08GO28308 with the U.S. Department of Energy (DOE). During the period of commercialization or such other time period specified by the DOE, the Government is granted for itself and others acting on its behalf a nonexclusive, paid-up, irrevocable worldwide license in this data to reproduce, prepare derivative works, and perform publicly and display publicly, by or on behalf of the Government. Subsequent to that period the Government is granted for itself and others acting on its behalf a nonexclusive, paid-up, irrevocable worldwide license in this data to reproduce, prepare derivative works, distribute copies to the public, perform publicly and display publicly, and to permit others to do so. The specific term of the license can be identified by inquiry made to the Contractor or DOE. NEITHER CONTRACTOR, THE UNITED STATES, NOR THE UNITED STATES DEPARTMENT OF ENERGY, NOR ANY OF THEIR EMPLOYEES, MAKES ANY WARRANTY, EXPRESS OR IMPLIED, OR ASSUMES ANY LEGAL LIABILITY OR RESPONSIBILITY FOR THE ACCURACY, COMPLETENESS, OR USEFULNESS OF ANY DATA, APPARATUS, PRODUCT, OR PROCESS DISCLOSED, OR REPRESENTS THAT ITS USE WOULD NOT INFRINGE PRIVATELY OWNED RIGHTS.
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: BLAST-Lite
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Tool to model lifetime and degradation for commercial lithium-ion batteries.
|
|
5
|
+
Author-email: Paul Gasper <Paul.Gasper@nrel.gov>, Kandler Smith <Kandler.Smith@nrel.gov>
|
|
6
|
+
License: Copyright (c) 2023, Alliance for Sustainable Energy, LLC
|
|
7
|
+
All rights reserved.
|
|
8
|
+
|
|
9
|
+
Redistribution and use in source and binary forms, with or without
|
|
10
|
+
modification, are permitted provided that the following conditions are met:
|
|
11
|
+
|
|
12
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
|
13
|
+
list of conditions and the following disclaimer.
|
|
14
|
+
|
|
15
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
16
|
+
this list of conditions and the following disclaimer in the documentation
|
|
17
|
+
and/or other materials provided with the distribution.
|
|
18
|
+
|
|
19
|
+
3. Neither the name of the copyright holder nor the names of its
|
|
20
|
+
contributors may be used to endorse or promote products derived from
|
|
21
|
+
this software without specific prior written permission.
|
|
22
|
+
|
|
23
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
24
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
25
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
26
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
27
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
28
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
29
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
30
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
31
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
32
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
33
|
+
|
|
34
|
+
Project-URL: Homepage, https://github.com/NREL/BLAST-Lite
|
|
35
|
+
Classifier: Programming Language :: Python :: 3
|
|
36
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
37
|
+
Classifier: Operating System :: OS Independent
|
|
38
|
+
Requires-Python: <=3.12.4,>=3.8
|
|
39
|
+
Description-Content-Type: text/markdown
|
|
40
|
+
License-File: LICENSE
|
|
41
|
+
License-File: NOTICE
|
|
42
|
+
Requires-Dist: h5pyd
|
|
43
|
+
Requires-Dist: numpy
|
|
44
|
+
Requires-Dist: pandas
|
|
45
|
+
Requires-Dist: matplotlib
|
|
46
|
+
Requires-Dist: scipy
|
|
47
|
+
Requires-Dist: nrel-rex
|
|
48
|
+
Requires-Dist: geopy
|
|
49
|
+
Provides-Extra: dev
|
|
50
|
+
Requires-Dist: sphinx; extra == "dev"
|
|
51
|
+
Requires-Dist: myst-parser; extra == "dev"
|
|
52
|
+
Requires-Dist: sphinx-copybutton; extra == "dev"
|
|
53
|
+
Requires-Dist: pydata-sphinx-theme; extra == "dev"
|
|
54
|
+
Requires-Dist: ipykernel; extra == "dev"
|
|
55
|
+
|
|
56
|
+

|
|
57
|
+
|
|
58
|
+
# BLAST-Lite
|
|
59
|
+
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](https://www.nrel.gov/transportation/battery-lifespan.html) webpage.
|
|
60
|
+
|
|
61
|
+

|
|
62
|
+
|
|
63
|
+
### Installation
|
|
64
|
+
|
|
65
|
+
Set up and activate a Python environment (anything between Python 3.8 and 3.12):
|
|
66
|
+
|
|
67
|
+
```
|
|
68
|
+
conda create -n blast-lite python=3.12
|
|
69
|
+
conda activate blast-lite
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Install BLAST-Lite via PyPI.
|
|
73
|
+
In the environment created and activate above, run `pip install blast-lite`.
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
#### Note: Fetching temperature data from NSRDB
|
|
77
|
+
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](https://developer.nrel.gov/signup) 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.
|
|
78
|
+
|
|
79
|
+
If using a Windows machine, you may need to additionally run the following:
|
|
80
|
+
|
|
81
|
+
`$ python -m pip install python-certifi-win32`.
|
|
82
|
+
|
|
83
|
+
```python
|
|
84
|
+
import certifi
|
|
85
|
+
import ssl
|
|
86
|
+
import geopy
|
|
87
|
+
|
|
88
|
+
ctx = ssl.create_default_context(cafile=certifi.where())
|
|
89
|
+
geopy.geocoders.options.default_ssl_context = ctx
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
### Quickstart
|
|
94
|
+
Once the package is installed, you can generate an example usage dataset by running:
|
|
95
|
+
|
|
96
|
+
```python
|
|
97
|
+
from blast import utils
|
|
98
|
+
data = utils.generate_example_data()
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
To see a list of available battery models, run:
|
|
102
|
+
```python
|
|
103
|
+
from blast import models
|
|
104
|
+
models.available_models()
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
Select a model, instantiate a cell, and run the simulation:
|
|
108
|
+
```python
|
|
109
|
+
cell = models.Lfp_Gr_250AhPrismatic()
|
|
110
|
+
cell.simulate_battery_life(data)
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
### Caveats
|
|
114
|
+
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:
|
|
115
|
+
- Overcharge or overdischarge
|
|
116
|
+
- Impact of physical damage, vibration, or humidity
|
|
117
|
+
- Operating outside of manufacturer performance and environmental limits, such as voltage, temperature, and charge/discharge rate limits
|
|
118
|
+
- Pack performance loss due to cell-to-cell inbalance
|
|
119
|
+
|
|
120
|
+
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.
|
|
121
|
+
Battery 'warranty life' is generally much more conservative than 'expected life'.
|
|
122
|
+
These models are estimating cell level degradation, there will be additional performance penalties and caveats for estimating lifetime of battery packs.
|
|
123
|
+
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.
|
|
124
|
+
|
|
125
|
+
### Citations
|
|
126
|
+
- Sony Murata LFP-Gr battery aging data and model
|
|
127
|
+
- [Calendar aging data source](https://doi.org/10.1016/j.est.2018.01.019)
|
|
128
|
+
- [Cycle aging data source](https://doi.org/10.1016/j.jpowsour.2019.227666)
|
|
129
|
+
- [Model identification source](https://doi.org/10.1149/1945-7111/ac86a8)
|
|
130
|
+
- Nissan Leaf LMO-Gr (2nd life cells) battery aging data
|
|
131
|
+
- [Calendar aging data source](https://doi.org/10.1109/EEEIC/ICPSEUROPE54979.2022.9854784)
|
|
132
|
+
- [Cycle aging data source](https://doi.org/10.1016/j.est.2020.101695)
|
|
133
|
+
- Panasonic NCA-Gr battery aging data
|
|
134
|
+
- [Calendar aging data source](https://dx.doi.org/10.1149/2.0411609jes)
|
|
135
|
+
- [Cycle aging data source](https://doi.org/10.1149/1945-7111/abae37)
|
|
136
|
+
- [Sony Murata NCA-GrSi battery aging data](https://doi.org/10.1016/j.jpowsour.2022.232498)
|
|
137
|
+
- Additional research by TUM on [mechanistic cycling](https://doi.org/10.1016/j.jpowsour.2023.233947) and [mechanistic calendar aging](https://doi.org/10.1016/j.jpowsour.2023.233208) models is not replicated here
|
|
138
|
+
- [Commercial NMC-LTO battery aging data source](https://doi.org/10.1016/j.jpowsour.2020.228566)
|
|
139
|
+
- [Kokam NMC111-Gr battery aging data source](https://ieeexplore.ieee.org/iel7/7951530/7962914/07963578.pdf)
|
|
140
|
+
- [Sanyo NMC111-Gr battery aging model source](http://dx.doi.org/10.1016/j.jpowsour.2014.02.012)
|
|
141
|
+
- [LG MJ1 NMC811-GrSi battery aging data source](https://everlasting-project.eu/wp-content/uploads/2020/03/EVERLASTING_D2.3_final_20200228.pdf)
|
|
142
|
+
- Models of commercially produced (> 1 GWh / yr manufacturers), large format Li-ion cells from a [2023 Journal of Energy Storage paper](https://doi.org/10.1016/j.est.2023.109042)
|
|
143
|
+
- 250 Ah LFP-Gr (high energy density, very low power)
|
|
144
|
+
- 75 Ah NMC-Gr 'A' (relatively high power, suitable for fast charging)
|
|
145
|
+
- 50 Ah NMC-GR 'B1' (relatively high power, suitable for fast charging)
|
|
146
|
+
- 50 Ah NMC-Gr 'B2' (higher energy density than B1 but lower power, questionable performance and durability under fast charging demands)
|
|
147
|
+
- Stationary storage battery use profiles are [provided open-source](https://dataserv.ub.tum.de/index.php/s/m1510254) by [Kucevic et al](https://www.sciencedirect.com/science/article/pii/S2352152X19309016)
|
|
148
|
+
- Electric vehicle battery use profiles were generated using NREL's [FASTSim tool](https://www.nrel.gov/transportation/fastsim.html).
|
|
149
|
+
|
|
150
|
+
### Authors
|
|
151
|
+
Paul Gasper, Kandler Smith
|
|
152
|
+
|
|
153
|
+
NREL SWR-22-69
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+

|
|
2
|
+
|
|
3
|
+
# BLAST-Lite
|
|
4
|
+
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](https://www.nrel.gov/transportation/battery-lifespan.html) webpage.
|
|
5
|
+
|
|
6
|
+

|
|
7
|
+
|
|
8
|
+
### Installation
|
|
9
|
+
|
|
10
|
+
Set up and activate a Python environment (anything between Python 3.8 and 3.12):
|
|
11
|
+
|
|
12
|
+
```
|
|
13
|
+
conda create -n blast-lite python=3.12
|
|
14
|
+
conda activate blast-lite
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Install BLAST-Lite via PyPI.
|
|
18
|
+
In the environment created and activate above, run `pip install blast-lite`.
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
#### Note: Fetching temperature data from NSRDB
|
|
22
|
+
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](https://developer.nrel.gov/signup) 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.
|
|
23
|
+
|
|
24
|
+
If using a Windows machine, you may need to additionally run the following:
|
|
25
|
+
|
|
26
|
+
`$ python -m pip install python-certifi-win32`.
|
|
27
|
+
|
|
28
|
+
```python
|
|
29
|
+
import certifi
|
|
30
|
+
import ssl
|
|
31
|
+
import geopy
|
|
32
|
+
|
|
33
|
+
ctx = ssl.create_default_context(cafile=certifi.where())
|
|
34
|
+
geopy.geocoders.options.default_ssl_context = ctx
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
### Quickstart
|
|
39
|
+
Once the package is installed, you can generate an example usage dataset by running:
|
|
40
|
+
|
|
41
|
+
```python
|
|
42
|
+
from blast import utils
|
|
43
|
+
data = utils.generate_example_data()
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
To see a list of available battery models, run:
|
|
47
|
+
```python
|
|
48
|
+
from blast import models
|
|
49
|
+
models.available_models()
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Select a model, instantiate a cell, and run the simulation:
|
|
53
|
+
```python
|
|
54
|
+
cell = models.Lfp_Gr_250AhPrismatic()
|
|
55
|
+
cell.simulate_battery_life(data)
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
### Caveats
|
|
59
|
+
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:
|
|
60
|
+
- Overcharge or overdischarge
|
|
61
|
+
- Impact of physical damage, vibration, or humidity
|
|
62
|
+
- Operating outside of manufacturer performance and environmental limits, such as voltage, temperature, and charge/discharge rate limits
|
|
63
|
+
- Pack performance loss due to cell-to-cell inbalance
|
|
64
|
+
|
|
65
|
+
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.
|
|
66
|
+
Battery 'warranty life' is generally much more conservative than 'expected life'.
|
|
67
|
+
These models are estimating cell level degradation, there will be additional performance penalties and caveats for estimating lifetime of battery packs.
|
|
68
|
+
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.
|
|
69
|
+
|
|
70
|
+
### Citations
|
|
71
|
+
- Sony Murata LFP-Gr battery aging data and model
|
|
72
|
+
- [Calendar aging data source](https://doi.org/10.1016/j.est.2018.01.019)
|
|
73
|
+
- [Cycle aging data source](https://doi.org/10.1016/j.jpowsour.2019.227666)
|
|
74
|
+
- [Model identification source](https://doi.org/10.1149/1945-7111/ac86a8)
|
|
75
|
+
- Nissan Leaf LMO-Gr (2nd life cells) battery aging data
|
|
76
|
+
- [Calendar aging data source](https://doi.org/10.1109/EEEIC/ICPSEUROPE54979.2022.9854784)
|
|
77
|
+
- [Cycle aging data source](https://doi.org/10.1016/j.est.2020.101695)
|
|
78
|
+
- Panasonic NCA-Gr battery aging data
|
|
79
|
+
- [Calendar aging data source](https://dx.doi.org/10.1149/2.0411609jes)
|
|
80
|
+
- [Cycle aging data source](https://doi.org/10.1149/1945-7111/abae37)
|
|
81
|
+
- [Sony Murata NCA-GrSi battery aging data](https://doi.org/10.1016/j.jpowsour.2022.232498)
|
|
82
|
+
- Additional research by TUM on [mechanistic cycling](https://doi.org/10.1016/j.jpowsour.2023.233947) and [mechanistic calendar aging](https://doi.org/10.1016/j.jpowsour.2023.233208) models is not replicated here
|
|
83
|
+
- [Commercial NMC-LTO battery aging data source](https://doi.org/10.1016/j.jpowsour.2020.228566)
|
|
84
|
+
- [Kokam NMC111-Gr battery aging data source](https://ieeexplore.ieee.org/iel7/7951530/7962914/07963578.pdf)
|
|
85
|
+
- [Sanyo NMC111-Gr battery aging model source](http://dx.doi.org/10.1016/j.jpowsour.2014.02.012)
|
|
86
|
+
- [LG MJ1 NMC811-GrSi battery aging data source](https://everlasting-project.eu/wp-content/uploads/2020/03/EVERLASTING_D2.3_final_20200228.pdf)
|
|
87
|
+
- Models of commercially produced (> 1 GWh / yr manufacturers), large format Li-ion cells from a [2023 Journal of Energy Storage paper](https://doi.org/10.1016/j.est.2023.109042)
|
|
88
|
+
- 250 Ah LFP-Gr (high energy density, very low power)
|
|
89
|
+
- 75 Ah NMC-Gr 'A' (relatively high power, suitable for fast charging)
|
|
90
|
+
- 50 Ah NMC-GR 'B1' (relatively high power, suitable for fast charging)
|
|
91
|
+
- 50 Ah NMC-Gr 'B2' (higher energy density than B1 but lower power, questionable performance and durability under fast charging demands)
|
|
92
|
+
- Stationary storage battery use profiles are [provided open-source](https://dataserv.ub.tum.de/index.php/s/m1510254) by [Kucevic et al](https://www.sciencedirect.com/science/article/pii/S2352152X19309016)
|
|
93
|
+
- Electric vehicle battery use profiles were generated using NREL's [FASTSim tool](https://www.nrel.gov/transportation/fastsim.html).
|
|
94
|
+
|
|
95
|
+
### Authors
|
|
96
|
+
Paul Gasper, Kandler Smith
|
|
97
|
+
|
|
98
|
+
NREL SWR-22-69
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
from .degradation_model import BatteryDegradationModel
|
|
2
|
+
from .lfp_gr_250AhPrismatic_2019 import Lfp_Gr_250AhPrismatic
|
|
3
|
+
from .lfp_gr_SonyMurata3Ah_2018 import Lfp_Gr_SonyMurata3Ah_Battery
|
|
4
|
+
from .lmo_gr_NissanLeaf66Ah_2ndLife_2020 import Lmo_Gr_NissanLeaf66Ah_2ndLife_Battery
|
|
5
|
+
from .nca_grsi_SonyMurata2p5Ah_2023 import NCA_GrSi_SonyMurata2p5Ah_Battery
|
|
6
|
+
from .nca_gr_Panasonic3Ah_2018 import Nca_Gr_Panasonic3Ah_Battery
|
|
7
|
+
from .nmc111_gr_Kokam75Ah_2017 import Nmc111_Gr_Kokam75Ah_Battery
|
|
8
|
+
from .nmc111_gr_Sanyo2Ah_2014 import Nmc111_Gr_Sanyo2Ah_Battery
|
|
9
|
+
from .nmc811_grSi_LGMJ1_4Ah_2020 import Nmc811_GrSi_LGMJ1_4Ah_Battery
|
|
10
|
+
from .nmc_gr_50Ah_B1_2020 import NMC_Gr_50Ah_B1
|
|
11
|
+
from .nmc_gr_50Ah_B2_2020 import NMC_Gr_50Ah_B2
|
|
12
|
+
from .nmc_gr_75Ah_A_2019 import NMC_Gr_75Ah_A
|
|
13
|
+
from .nmc_lto_10Ah_2020 import Nmc_Lto_10Ah_Battery
|
|
14
|
+
|
|
15
|
+
from ._available_models import available_models
|
|
16
|
+
|
|
17
|
+
__all__ = ['BatteryDegradationModel', 'Lfp_Gr_250AhPrismatic', 'Lfp_Gr_SonyMurata3Ah_Battery', 'Lmo_Gr_NissanLeaf66Ah_2ndLife_Battery', 'NCA_GrSi_SonyMurata2p5Ah_Battery', 'NMC_Gr_50Ah_B1', 'NMC_Gr_50Ah_B2', 'NMC_Gr_75Ah_A', 'Nca_Gr_Panasonic3Ah_Battery', 'Nmc111_Gr_Kokam75Ah_Battery', 'Nmc111_Gr_Sanyo2Ah_Battery', 'Nmc811_GrSi_LGMJ1_4Ah_Battery', 'Nmc_Lto_10Ah_Battery', '_available_models']
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import sys, inspect
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
def available_models():
|
|
5
|
+
"""
|
|
6
|
+
Return list of names of available models.
|
|
7
|
+
"""
|
|
8
|
+
clsmembers = inspect.getmembers(sys.modules['blast.models'], inspect.isclass)
|
|
9
|
+
return [cls[0] for cls in clsmembers if cls[0] != 'BatteryDegradationModel']
|