BLAST-Lite 1.0.0__py3-none-any.whl

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.
@@ -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.
@@ -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
+ ![BLAST-Lite](assets/icon-blast.jpg)
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
+ ![Example battery life predictions](assets/example_battery_life.png)
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,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,26 @@
1
+ blast/__init__.py,sha256=9SR-RVvBBkykApEx36BFZ90qVEaLgdfzpcCETZfNpS4,74
2
+ blast/models/__init__.py,sha256=1ndyZ33yEqj6MW3DjXjL2FHdRxnSaN3aVxwV6UU6PjI,1269
3
+ blast/models/_available_models.py,sha256=HF_99xOZoa57R8kV0AZmAnfgmqsSdSpWab-xkXP7GOc,278
4
+ blast/models/degradation_model.py,sha256=konklKjSnZpQXHLEDBP5yYSb_4sc_7Y-3bSL1WAEEho,21365
5
+ blast/models/lfp_gr_250AhPrismatic_2019.py,sha256=8t1QTrRBH-toVO8wpg1o314O-XGaqXSNclrJECpAgHw,7619
6
+ blast/models/lfp_gr_SonyMurata3Ah_2018.py,sha256=hi85INeGz7PlQd8qfy1UgUb3Y7qw_A7_25RILG5HRfc,13327
7
+ blast/models/lmo_gr_NissanLeaf66Ah_2ndLife_2020.py,sha256=JYp2z4XbMhzG9SXhZut8JPAy7HmRz3iHp5T2W5FbSEQ,6565
8
+ blast/models/nca_gr_Panasonic3Ah_2018.py,sha256=EaNlvKP_Ed_nePmSSPOOkGzbWV29DEvf9vDVbITF1wU,7409
9
+ blast/models/nca_grsi_SonyMurata2p5Ah_2023.py,sha256=4i4f3C5cJKJgny5eVoepmeL4MXp7WkjZIW_TCGN-gZU,15892
10
+ blast/models/nmc111_gr_Kokam75Ah_2017.py,sha256=H9MjKmMCwiNUFJSew5UtseNqtk25z6m1GzSAxDNiKA8,11002
11
+ blast/models/nmc111_gr_Sanyo2Ah_2014.py,sha256=iWsunD9ft4woo418N_cH7-jh51p6x55rKIJNYiTpffs,10502
12
+ blast/models/nmc811_grSi_LGMJ1_4Ah_2020.py,sha256=3_FV_GAMDRNd4cC3UCNHoEFlCFaiNHDhUt4_cxCd4OA,7131
13
+ blast/models/nmc_gr_50Ah_B1_2020.py,sha256=Ea2Wtq5dvEX0XDovZwFEvClWthuIeaGW8We9NyHl1lM,7151
14
+ blast/models/nmc_gr_50Ah_B2_2020.py,sha256=WauzR3VLyIBw9-Pl-JQS7zPwoSRU25hCF-qXx3_joB8,7383
15
+ blast/models/nmc_gr_75Ah_A_2019.py,sha256=6TU0dGbhSezBPq4c5lg9YXHb9vvahDXzfTS18Z5sHO8,7067
16
+ blast/models/nmc_lto_10Ah_2020.py,sha256=4Xryx5bEHA58SfzkCAwA6SZxGO3SxvMb3ONnuOi_h0c,7386
17
+ blast/utils/__init__.py,sha256=DPJuvYaQG541BgVPr7VVDbmPBDfwMqQvd_9n1lx7hoU,116
18
+ blast/utils/demo.py,sha256=1Vc9V31uunuDoKN0pjxxtGciGRCCkjnlqxEj9Oa1BtU,4751
19
+ blast/utils/functions.py,sha256=BG49mtmt2haA3W97hzGtoD985mu21PKQ8xoseVO4pq8,7658
20
+ blast/utils/rainflow.py,sha256=aasZ4kkBYE3aMWLQ6eDUvVlwrM8BWvS8EDOwgFu5mDM,5300
21
+ BLAST_Lite-1.0.0.dist-info/LICENSE,sha256=IvnUDTUvRxyynKQxaa59hLIu-umxFp7-buM6islDulk,1549
22
+ BLAST_Lite-1.0.0.dist-info/METADATA,sha256=T7CmatkuDYQcfAC88O0RJgXX8mGsDsA-Fh8uKi0jMfc,8828
23
+ BLAST_Lite-1.0.0.dist-info/NOTICE,sha256=39jquQbLjG2EBNDDfIwpMwqFlj_r-xa5ywlX6zixEe8,1359
24
+ BLAST_Lite-1.0.0.dist-info/WHEEL,sha256=R0nc6qTxuoLk7ShA2_Y-UWkN8ZdfDBG2B6Eqpz2WXbs,91
25
+ BLAST_Lite-1.0.0.dist-info/top_level.txt,sha256=XVz8TMSvPX9j6_-0gcPQqfcfjucnxxrKTkQFVQYP_F8,6
26
+ BLAST_Lite-1.0.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (72.1.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1 @@
1
+ blast
blast/__init__.py ADDED
@@ -0,0 +1,4 @@
1
+ from . import models
2
+ from . import utils
3
+
4
+ __all__ = ["models", "utils"]
@@ -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']