batmods-lite 0.0.2__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.
- batmods_lite-0.0.2.dist-info/METADATA +143 -0
- batmods_lite-0.0.2.dist-info/RECORD +47 -0
- batmods_lite-0.0.2.dist-info/WHEEL +5 -0
- batmods_lite-0.0.2.dist-info/licenses/LICENSE +28 -0
- batmods_lite-0.0.2.dist-info/top_level.txt +1 -0
- bmlite/P2D/__init__.py +25 -0
- bmlite/P2D/_simulation.py +444 -0
- bmlite/P2D/_solutions.py +647 -0
- bmlite/P2D/dae.py +351 -0
- bmlite/P2D/domains.py +659 -0
- bmlite/P2D/postutils.py +496 -0
- bmlite/P2D/submodels.py +140 -0
- bmlite/P2D/templates/graphiteSiOx_nmc811.yaml +54 -0
- bmlite/P2D/templates/graphite_lfp.yaml +59 -0
- bmlite/P2D/templates/graphite_nmc532.yaml +54 -0
- bmlite/SPM/__init__.py +25 -0
- bmlite/SPM/_simulation.py +437 -0
- bmlite/SPM/_solutions.py +552 -0
- bmlite/SPM/dae.py +194 -0
- bmlite/SPM/domains.py +458 -0
- bmlite/SPM/postutils.py +279 -0
- bmlite/SPM/submodels.py +140 -0
- bmlite/SPM/templates/graphiteSiOx_nmc811.yaml +37 -0
- bmlite/SPM/templates/graphite_lfp.yaml +42 -0
- bmlite/SPM/templates/graphite_nmc532.yaml +37 -0
- bmlite/__init__.py +55 -0
- bmlite/_core/__init__.py +18 -0
- bmlite/_core/_constants.py +17 -0
- bmlite/_core/_experiment.py +291 -0
- bmlite/_core/_idasolver.py +116 -0
- bmlite/_core/_templates.py +55 -0
- bmlite/_utils.py +193 -0
- bmlite/materials/__init__.py +29 -0
- bmlite/materials/_gen2_electrolyte.py +136 -0
- bmlite/materials/_graphite.py +329 -0
- bmlite/materials/_graphite_SiOx.py +274 -0
- bmlite/materials/_lfp.py +152 -0
- bmlite/materials/_nmc_532.py +301 -0
- bmlite/materials/_nmc_811.py +272 -0
- bmlite/materials/data/graphite_ocv.csv +257 -0
- bmlite/materials/data/graphite_ocv_extrap.csv +258 -0
- bmlite/materials/data/lfp_ocv.csv +255 -0
- bmlite/materials/data/nmc532_ocv.csv +222 -0
- bmlite/materials/data/nmc532_ocv_extrap.csv +227 -0
- bmlite/mathutils.py +280 -0
- bmlite/mesh.py +200 -0
- bmlite/plotutils/__init__.py +69 -0
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: batmods-lite
|
|
3
|
+
Version: 0.0.2
|
|
4
|
+
Summary: Packaged battery models and material properties.
|
|
5
|
+
Author: Corey R. Randall
|
|
6
|
+
Author-email: corey.r.randall@gmail.com
|
|
7
|
+
Maintainer: Corey R. Randall
|
|
8
|
+
Maintainer-email: corey.r.randall@gmail.com
|
|
9
|
+
License-Expression: BSD-3-Clause
|
|
10
|
+
Project-URL: Homepage, https://github.com/NatLabRockies/batmods-lite
|
|
11
|
+
Project-URL: Documentation, https://batmods-lite.readthedocs.io/
|
|
12
|
+
Project-URL: Repository, https://github.com/NatLabRockies/batmods-lite
|
|
13
|
+
Project-URL: Issues, https://github.com/NatLabRockies/batmods-lite/issues
|
|
14
|
+
Keywords: battery,models,lithium,NMC,LFP,SPM,P2D
|
|
15
|
+
Classifier: Development Status :: 4 - Beta
|
|
16
|
+
Classifier: Intended Audience :: Science/Research
|
|
17
|
+
Classifier: Programming Language :: Python :: 3
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
23
|
+
Requires-Python: <3.15,>=3.10
|
|
24
|
+
Description-Content-Type: text/markdown
|
|
25
|
+
License-File: LICENSE
|
|
26
|
+
Requires-Dist: tqdm
|
|
27
|
+
Requires-Dist: numpy
|
|
28
|
+
Requires-Dist: scipy
|
|
29
|
+
Requires-Dist: pandas
|
|
30
|
+
Requires-Dist: openpyxl
|
|
31
|
+
Requires-Dist: matplotlib
|
|
32
|
+
Requires-Dist: ruamel.yaml
|
|
33
|
+
Requires-Dist: scikit-sundae>=1.1.3
|
|
34
|
+
Provides-Extra: docs
|
|
35
|
+
Requires-Dist: sphinx; extra == "docs"
|
|
36
|
+
Requires-Dist: myst-nb; extra == "docs"
|
|
37
|
+
Requires-Dist: sphinx-design; extra == "docs"
|
|
38
|
+
Requires-Dist: sphinx-autoapi; extra == "docs"
|
|
39
|
+
Requires-Dist: sphinx-copybutton; extra == "docs"
|
|
40
|
+
Requires-Dist: pydata-sphinx-theme; extra == "docs"
|
|
41
|
+
Provides-Extra: tests
|
|
42
|
+
Requires-Dist: pytest; extra == "tests"
|
|
43
|
+
Requires-Dist: pytest-cov; extra == "tests"
|
|
44
|
+
Requires-Dist: pytest-html; extra == "tests"
|
|
45
|
+
Requires-Dist: pytest-xdist; extra == "tests"
|
|
46
|
+
Provides-Extra: dev
|
|
47
|
+
Requires-Dist: nox; extra == "dev"
|
|
48
|
+
Requires-Dist: ruff; extra == "dev"
|
|
49
|
+
Requires-Dist: codespell; extra == "dev"
|
|
50
|
+
Requires-Dist: batmods-lite[docs,tests]; extra == "dev"
|
|
51
|
+
Dynamic: license-file
|
|
52
|
+
|
|
53
|
+
<!-- <img alt='Logo' style='width: 75%; min-width: 250px; max-width: 500px;'
|
|
54
|
+
src='https://github.com/NatLabRockies/batmods-lite/blob/main/images/dark.png?raw=true#gh-dark-mode-only'/>
|
|
55
|
+
<img alt='Logo' style='width: 75%; min-width: 250px; max-width: 500px;'
|
|
56
|
+
src='https://github.com/NatLabRockies/batmods-lite/blob/main/images/light.png?raw=true#gh-light-mode-only'/> -->
|
|
57
|
+
|
|
58
|
+
# BATMODS-lite
|
|
59
|
+
|
|
60
|
+
[](https://github.com/NatLabRockies/batmods-lite/actions/workflows/ci.yml)
|
|
61
|
+
[](https://github.com/NatLabRockies/batmods-lite/blob/main/LICENSE)
|
|
62
|
+
[](https://codecov.io/gh/NatLabRockies/batmods-lite)
|
|
63
|
+
[](https://pypi.org/project/batmods-lite)
|
|
64
|
+
<!-- [](https://pepy.tech/projects/batmods-lite) -->
|
|
65
|
+
|
|
66
|
+
## Summary
|
|
67
|
+
Battery Analysis and Training Models for Optimization and Design Studies (BATMODS) is a Python package with an API for pre-built battery models. The original purpose of the package was to quickly generate synthetic data for machine learning models to train with. However, the models are generally useful for any battery simulations or analysis. `BATMODS-lite` includes the following:
|
|
68
|
+
|
|
69
|
+
1) A library and API for pre-built battery models
|
|
70
|
+
2) Kinetic/transport properties for common battery materials
|
|
71
|
+
|
|
72
|
+
Note that the package focuses on phsics-based models like the single-particle (SPM) and pseudo-2D (P2D) model. If you enjoy the interface but are looking to run equivalent circuit models (ECMs), you should check out [thevenin](https://github.com/NatLabRockies/thevenin), which is distributed separately, but is developed and maintained by the same team. Consequently, the interface to `thevenin` models is intentionally similar, allowing for a smooth transition between physics-based and ECM approaches.
|
|
73
|
+
|
|
74
|
+
## Installation
|
|
75
|
+
`BATMODS-lite` can be installed from [PyPI](https://pypi.org/project/batmods-lite) using the following command:
|
|
76
|
+
|
|
77
|
+
```
|
|
78
|
+
pip install batmods-lite
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
If you run into issues with installation due to the [scikit-sundae](https://github.com/NatLabRockies/scikit-sundae) dependency, please submit an issue [here](https://github.com/NatLabRockies/scikit-sundae/issues). We also manage this solver package, but distribute it separately since it is not developed in pure Python.
|
|
82
|
+
|
|
83
|
+
For those interested in setting up a developer and/or editable version of this software, please see the directions available in the "Development" section of our [documentation](https://batmods-lite.readthedocs.io/en/latest/development).
|
|
84
|
+
|
|
85
|
+
## Get Started
|
|
86
|
+
The API is organized around three main classes that allow you to construct simulations, define experiments, and interact with solutions. Two basic examples are given below. These demonstrate a 2C discharge for both the single particle model (SPM) and pseudo-2D (P2D) model. Note that the experiment class interfaces with all simulations. The simulations and their respective solutions, however, will depend on the model subpackage they are loaded from. For more detailed examples, check out the [documentation](https://batmods-lite.readthedocs.io) on Read the Docs. Note that while the full name of the package is `batmods-lite`, the installed module is imported using `bmlite`.
|
|
87
|
+
|
|
88
|
+
```python
|
|
89
|
+
# Single particle model example
|
|
90
|
+
import bmlite as bm
|
|
91
|
+
|
|
92
|
+
sim = bm.SPM.Simulation()
|
|
93
|
+
|
|
94
|
+
expr = bm.Experiment()
|
|
95
|
+
expr.add_step('current_C', 2., (1350., 10.))
|
|
96
|
+
|
|
97
|
+
soln = sim.run(expr)
|
|
98
|
+
soln.simple_plot('time_s', 'voltage_V')
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
```python
|
|
102
|
+
# Pseudo-2D model example
|
|
103
|
+
import bmlite as bm
|
|
104
|
+
|
|
105
|
+
sim = bm.P2D.Simulation()
|
|
106
|
+
|
|
107
|
+
expr = bm.Experiment()
|
|
108
|
+
expr.add_step('current_C', 2., (1350., 10.))
|
|
109
|
+
|
|
110
|
+
soln = sim.run(expr)
|
|
111
|
+
soln.simple_plot('time_s', 'voltage_V')
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
**Notes:**
|
|
115
|
+
* If you are new to Python, check out [Spyder IDE](https://www.spyder-ide.org/). Spyder is a powerful interactive development environment (IDE) that can make programming in Python more approachable to new users.
|
|
116
|
+
* Another friendly option for getting started in Python is to use [Jupyter Notebooks](https://jupyter.org/). We write our examples in Jupyter Notebooks since they support both markdown blocks for explanations and executable code blocks.
|
|
117
|
+
* Python, Spyder, and Jupyter Notebooks can be setup using [Anaconda](https://www.anaconda.com/download/success). Anaconda provides a convenient way for new users to get started with Python due to its friendly graphical installer and environment manager.
|
|
118
|
+
|
|
119
|
+
## Citing this Work
|
|
120
|
+
This work was authored by researchers at the National Laboratory of the Rockies (NLR). If you use this package in your work, please include the following citation:
|
|
121
|
+
|
|
122
|
+
> Randall, Corey R. "BATMODS-lite: Packaged battery models and material properties [SWR-25-108]." Computer software, Jun. 2025. url: [github.com/NatLabRockies/batmods-lite](https://github.com/NatLabRockies/batmods-lite). doi: [10.11578/dc.20260114.1](https://doi.org./10.11578/dc.20260114.1).
|
|
123
|
+
|
|
124
|
+
For convenience, we also provide the following for your BibTex:
|
|
125
|
+
|
|
126
|
+
```
|
|
127
|
+
@misc{randall2025bmlite,
|
|
128
|
+
author = {Randall, Corey R.},
|
|
129
|
+
title = {{BATMODS-lite: Packaged battery models and material properties [SWR-25-108]}},
|
|
130
|
+
url = {github.com/NatLabRockies/batmods-lite},
|
|
131
|
+
month = {Jun.},
|
|
132
|
+
year = {2025},
|
|
133
|
+
doi = {10.11578/dc.20260114.1},
|
|
134
|
+
}
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
## Contributing
|
|
138
|
+
If you'd like to contribute to this package, please look through the existing [issues](https://github.com/NatLabRockies/batmods-lite/issues). If the bug you've caught or the feature you'd like to add isn't already being worked on, please submit a new issue before getting started.
|
|
139
|
+
|
|
140
|
+
<!-- You should also read through the [developer guidelines](https://batmods-lite.readthedocs.io/latest/development). Need to get on readthedocs first... -->
|
|
141
|
+
|
|
142
|
+
## Disclaimer
|
|
143
|
+
This work was authored by the National Laboratory of the Rockies (NLR), operated by Alliance for Energy Innovation, LLC, for the U.S. Department of Energy (DOE). The views expressed in the repository do not necessarily represent the views of the DOE or the U.S. Government.
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
batmods_lite-0.0.2.dist-info/licenses/LICENSE,sha256=9MUmv5W6vPUhzCzvWrHUjB9OqrClwD814_bh5NEVFJw,1522
|
|
2
|
+
bmlite/__init__.py,sha256=Nk7xa7tXospPeW55tdZFcFIN6_mR7sCD40Io2_oApK0,1385
|
|
3
|
+
bmlite/_utils.py,sha256=5g5NkQTTMUc7yxVCc4kCRKOU-I5hWTHs3u50N3-2EV8,6143
|
|
4
|
+
bmlite/mathutils.py,sha256=q6b-dCAzL1CD5-xITqwFcSSDH6hi-IsgAACdZTl6MQM,7338
|
|
5
|
+
bmlite/mesh.py,sha256=Z-k7pY92LbKFqMx8A2x4J_43lmwobFkgcXuRgzkVjgY,6957
|
|
6
|
+
bmlite/P2D/__init__.py,sha256=D0vr5uz7-ftSBJF-1NOXZz63JYR9eBN7dQ13hENpyKc,571
|
|
7
|
+
bmlite/P2D/_simulation.py,sha256=DC6lJtI85qGtVIIMXOT9D0H7RziYuVTeUwntXIKiRzI,15317
|
|
8
|
+
bmlite/P2D/_solutions.py,sha256=kocMA_Dany1jJjomc90IMk5J8kqjaF-9TIx2fVXvAfE,22718
|
|
9
|
+
bmlite/P2D/dae.py,sha256=BDRywCkglon3SyaJ29rLS1LB0I0FXfxHS2_gkdasxkA,12535
|
|
10
|
+
bmlite/P2D/domains.py,sha256=-14gC3YWYliDJHZ8ZA58-bb5miZt1nkT5CZn-YFJIP8,21868
|
|
11
|
+
bmlite/P2D/postutils.py,sha256=T5LUhNYh0-aBHpkOGeT36nimFSChVtlB5aZDIxMlALA,14475
|
|
12
|
+
bmlite/P2D/submodels.py,sha256=FOzb7S2y__mbAht8zrWthfgKp58mrxSmcnGtK3briZg,4536
|
|
13
|
+
bmlite/P2D/templates/graphiteSiOx_nmc811.yaml,sha256=sfTUSQe1Y-8fFi14PnEIYi4wHaV90Aa72DbxhiVCsr0,3608
|
|
14
|
+
bmlite/P2D/templates/graphite_lfp.yaml,sha256=Y9SE5kwf9Mq0RFSh5CnB8TE-f0DCXXObBlSUKvpelvQ,3780
|
|
15
|
+
bmlite/P2D/templates/graphite_nmc532.yaml,sha256=5oStzzzjGkO--YBZHaPvMsoUnss8mBQXCTJ1v5VjtRY,3698
|
|
16
|
+
bmlite/SPM/__init__.py,sha256=ggVZAxsUahzRsVdgwxF_1esgdpqR3FZoB7kC_2ynDIU,577
|
|
17
|
+
bmlite/SPM/_simulation.py,sha256=f3riu19464Ss3DMJv08z-xlSLk5rMsKkt4eZqx7fDn0,15019
|
|
18
|
+
bmlite/SPM/_solutions.py,sha256=35tdzrZEj2zxHmBOkUFjO0i9GP8ADaWy3aKOVyK0pxo,18167
|
|
19
|
+
bmlite/SPM/dae.py,sha256=8ijNYDXPU1nOpWSZsSbdNzgVEWcgsQTXENQZf2bZ_O8,6645
|
|
20
|
+
bmlite/SPM/domains.py,sha256=fzOzTB9cM6k-wXSglwJlv28V0irS4--xGyIwl38N6Eo,14378
|
|
21
|
+
bmlite/SPM/postutils.py,sha256=BF-eh392_FVDf-PpQxhIrt3jmKtyY8QMxn5CPteQjyA,7378
|
|
22
|
+
bmlite/SPM/submodels.py,sha256=lnWTPpI9gvpV7cRAopuSOBcXv7FNpAd1YBBYW59eLhI,4552
|
|
23
|
+
bmlite/SPM/templates/graphiteSiOx_nmc811.yaml,sha256=WArz0s-1_BeWte38gOuH89UsTH29t6nZl2QP9lxm30k,2411
|
|
24
|
+
bmlite/SPM/templates/graphite_lfp.yaml,sha256=rJO3w1SH9xtkPgG8OOm1f8D0VI8iC3nbVliC0kLPg0Y,2553
|
|
25
|
+
bmlite/SPM/templates/graphite_nmc532.yaml,sha256=5C4tWom6NMwnDYDabDTX19O_FFoE25O18GzSd8dlAcc,2471
|
|
26
|
+
bmlite/_core/__init__.py,sha256=PbyVsjsOfcVqc4-0Rf6v_GvN4GKeOagpKbKC5rzXXL0,381
|
|
27
|
+
bmlite/_core/_constants.py,sha256=0gsUDzUtjrwG-2MpQTTZjSerO5RJmtXEBS9r_zmHiPo,318
|
|
28
|
+
bmlite/_core/_experiment.py,sha256=aig-47Y8MnOBG9wXHdM9dZGpBeAydHWKcKHDUCqwuc0,9604
|
|
29
|
+
bmlite/_core/_idasolver.py,sha256=D4gMHyrHTZ9-C5wqEFAQZgo1r58SDb03Q686Q7Rk8VY,3057
|
|
30
|
+
bmlite/_core/_templates.py,sha256=77Xv24cfPrJ1_WLyqzYpu2AGXgdr9qG_-cJyZcOooys,1564
|
|
31
|
+
bmlite/materials/__init__.py,sha256=iNkEm-K00ul2QFked0_f-z0ghzEqX3qOw9SdBDMB-tI,733
|
|
32
|
+
bmlite/materials/_gen2_electrolyte.py,sha256=kMwld4cEqYHp4feiIgnD2Zt0F_41HToKlgvNeNDIzYw,3982
|
|
33
|
+
bmlite/materials/_graphite.py,sha256=0pdCWgTNcpXewQU0_DHFxfzrxKysz-A-xFZ-5Z6SFnI,11219
|
|
34
|
+
bmlite/materials/_graphite_SiOx.py,sha256=GUqnBs1mfBE76kt4K05pEjeuchqc9qP0gQZfIG09rFA,8841
|
|
35
|
+
bmlite/materials/_lfp.py,sha256=M9ADIXwPub6IP1cIRQbqcC5X2JqHXvoXvI8llzIpk94,5103
|
|
36
|
+
bmlite/materials/_nmc_532.py,sha256=zeQI0GhIcvlbfAKyTo-cXctFb6UaSjIk8kJnbnzbtSk,9163
|
|
37
|
+
bmlite/materials/_nmc_811.py,sha256=FQnNdMmv21yc5PE5KDCIMTk2aSNI0ByoSMeZUuqyYCA,8651
|
|
38
|
+
bmlite/materials/data/graphite_ocv.csv,sha256=hf0lIGPxseYSIOBEsamBn7hSQZCnap9B4M0c96NMrOc,4597
|
|
39
|
+
bmlite/materials/data/graphite_ocv_extrap.csv,sha256=d-OuWJKNVkpK-YsngeWOakVjxH8b9PS5fBHM2vB14b0,4606
|
|
40
|
+
bmlite/materials/data/lfp_ocv.csv,sha256=zphYulpEkaFPaFPEpgrJs_1i1i-HmYzWMbaEGKTkuvI,14914
|
|
41
|
+
bmlite/materials/data/nmc532_ocv.csv,sha256=TbKLVZhjb8LToBDDnPtu2nXUe6hRkiXkCA_ptKCkV7w,4580
|
|
42
|
+
bmlite/materials/data/nmc532_ocv_extrap.csv,sha256=oS6tU37DLejqFG41daDb2PBtpfIlC345KPaEcMSEjWY,4664
|
|
43
|
+
bmlite/plotutils/__init__.py,sha256=iwfcbMoz0w_uRSd2KQooWcKoI-kK_uJOnEj3FCoXu3Y,1997
|
|
44
|
+
batmods_lite-0.0.2.dist-info/METADATA,sha256=x5bAjiJO-BwMrTwxDnHyCy-WL6Zd8K1WSK458Our_6Y,8340
|
|
45
|
+
batmods_lite-0.0.2.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
|
|
46
|
+
batmods_lite-0.0.2.dist-info/top_level.txt,sha256=SbSEgKVZa-2ONs4Tzxs5tz_UNwurP6yVih-etjSJWVk,7
|
|
47
|
+
batmods_lite-0.0.2.dist-info/RECORD,,
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
BSD 3-Clause License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025, Alliance for Energy Innovation, LLC
|
|
4
|
+
|
|
5
|
+
Redistribution and use in source and binary forms, with or without
|
|
6
|
+
modification, are permitted provided that the following conditions are met:
|
|
7
|
+
|
|
8
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
|
9
|
+
list of conditions and the following disclaimer.
|
|
10
|
+
|
|
11
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
12
|
+
this list of conditions and the following disclaimer in the documentation
|
|
13
|
+
and/or other materials provided with the distribution.
|
|
14
|
+
|
|
15
|
+
3. Neither the name of the copyright holder nor the names of its
|
|
16
|
+
contributors may be used to endorse or promote products derived from
|
|
17
|
+
this software without specific prior written permission.
|
|
18
|
+
|
|
19
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
20
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
21
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
22
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
23
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
24
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
25
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
26
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
27
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
28
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
bmlite
|
bmlite/P2D/__init__.py
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"""
|
|
2
|
+
A packaged pseudo-2D (P2D) model. Build a model using the `Simulation` class,
|
|
3
|
+
and run an experiment using either the `run()` or `run_step()` methods. These
|
|
4
|
+
methods return `Solution` class instances with post processing, plotting, and
|
|
5
|
+
saving methods.
|
|
6
|
+
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
from ._simulation import Simulation
|
|
10
|
+
from ._solutions import StepSolution, CycleSolution
|
|
11
|
+
|
|
12
|
+
from . import dae
|
|
13
|
+
from . import domains
|
|
14
|
+
from . import postutils
|
|
15
|
+
from . import submodels
|
|
16
|
+
|
|
17
|
+
__all__ = [
|
|
18
|
+
'Simulation',
|
|
19
|
+
'StepSolution',
|
|
20
|
+
'CycleSolution',
|
|
21
|
+
'dae',
|
|
22
|
+
'domains',
|
|
23
|
+
'postutils',
|
|
24
|
+
'submodels',
|
|
25
|
+
]
|