Skip to content

Commit

Permalink
dataframes
Browse files Browse the repository at this point in the history
  • Loading branch information
julian-evers committed Oct 18, 2023
1 parent 2587c42 commit 153ff5f
Show file tree
Hide file tree
Showing 3 changed files with 96 additions and 151 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#

![logo](pybamm_tea_logo.png)
![PyBaMM-TEA-logo](https://github.com/pybamm-team/pybamm-tea/blob/main/docs/_static/pybamm_tea_logo.PNG)


# PyBaMM-TEA
Expand Down
181 changes: 66 additions & 115 deletions examples/stackbreakdown.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@
"name": "stderr",
"output_type": "stream",
"text": [
"C:\\Users\\Julian\\Documents\\GitHub\\pybamm-tea\\pybamm_tea\\tea.py:757: UserWarning: Warning: Negative electrode inactive material volume fraction is 0, Negative electrode inactive material density is set to 0\n",
"C:\\Users\\Julian\\Documents\\GitHub\\pybamm-tea\\pybamm_tea\\tea.py:753: UserWarning: Warning: Negative electrode inactive material volume fraction is 0, Negative electrode inactive material density is set to 0\n",
" warnings.warn(\n",
"C:\\Users\\Julian\\Documents\\GitHub\\pybamm-tea\\pybamm_tea\\tea.py:757: UserWarning: Warning: Positive electrode inactive material volume fraction is 0, Positive electrode inactive material density is set to 0\n",
"C:\\Users\\Julian\\Documents\\GitHub\\pybamm-tea\\pybamm_tea\\tea.py:753: UserWarning: Warning: Positive electrode inactive material volume fraction is 0, Positive electrode inactive material density is set to 0\n",
" warnings.warn(\n",
"C:\\Users\\Julian\\Documents\\GitHub\\pybamm-tea\\pybamm_tea\\tea.py:951: UserWarning: This figure includes Axes that are not compatible with tight_layout, so results might be incorrect.\n",
"C:\\Users\\Julian\\Documents\\GitHub\\pybamm-tea\\pybamm_tea\\tea.py:947: UserWarning: This figure includes Axes that are not compatible with tight_layout, so results might be incorrect.\n",
" plt.tight_layout()\n"
]
},
Expand Down Expand Up @@ -300,7 +300,7 @@
"name": "stderr",
"output_type": "stream",
"text": [
"C:\\Users\\Julian\\Documents\\GitHub\\pybamm-tea\\pybamm_tea\\tea.py:951: UserWarning: This figure includes Axes that are not compatible with tight_layout, so results might be incorrect.\n",
"C:\\Users\\Julian\\Documents\\GitHub\\pybamm-tea\\pybamm_tea\\tea.py:947: UserWarning: This figure includes Axes that are not compatible with tight_layout, so results might be incorrect.\n",
" plt.tight_layout()\n"
]
},
Expand Down Expand Up @@ -595,14 +595,14 @@
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>Volumetric energy density</td>\n",
" <td>Wh.L-1</td>\n",
" <td>Volumetric stack energy density</td>\n",
" <td>W.h.L-1</td>\n",
" <td>936.576473</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>Gravimetric energy density</td>\n",
" <td>Wh.kg-1</td>\n",
" <td>Gravimetric stack energy density</td>\n",
" <td>W.h.kg-1</td>\n",
" <td>346.456720</td>\n",
" </tr>\n",
" <tr>\n",
Expand All @@ -619,7 +619,7 @@
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>(Single-) stack thickness</td>\n",
" <td>Stack thickness</td>\n",
" <td>um</td>\n",
" <td>257.555841</td>\n",
" </tr>\n",
Expand All @@ -634,13 +634,13 @@
"</div>"
],
"text/plain": [
" Parameter Unit Value\n",
"0 Volumetric energy density Wh.L-1 936.576473\n",
"1 Gravimetric energy density Wh.kg-1 346.456720\n",
"2 Stack average OCP V 3.714185\n",
"3 Capacity mA.h.cm-2 6.494581\n",
"4 (Single-) stack thickness um 257.555841\n",
"5 Stack density kg.L-1 2.703300"
" Parameter Unit Value\n",
"0 Volumetric stack energy density W.h.L-1 936.576473\n",
"1 Gravimetric stack energy density W.h.kg-1 346.456720\n",
"2 Stack average OCP V 3.714185\n",
"3 Capacity mA.h.cm-2 6.494581\n",
"4 Stack thickness um 257.555841\n",
"5 Stack density kg.L-1 2.703300"
]
},
"execution_count": 4,
Expand Down Expand Up @@ -737,186 +737,144 @@
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>Stack potentials:</td>\n",
" <td></td>\n",
" <td></td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>Stack average OCP</td>\n",
" <td>V</td>\n",
" <td>3.714185</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <th>1</th>\n",
" <td>Minimal OCP</td>\n",
" <td>V</td>\n",
" <td>2.500043</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <th>2</th>\n",
" <td>Maximal OCP</td>\n",
" <td>V</td>\n",
" <td>4.199987</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>Electrode potentials:</td>\n",
" <td></td>\n",
" <td></td>\n",
" </tr>\n",
" <tr>\n",
" <th>5</th>\n",
" <th>3</th>\n",
" <td>Negative electrode average OCP</td>\n",
" <td>V</td>\n",
" <td>0.193724</td>\n",
" </tr>\n",
" <tr>\n",
" <th>6</th>\n",
" <th>4</th>\n",
" <td>Positive electrode average OCP</td>\n",
" <td>V</td>\n",
" <td>3.907909</td>\n",
" </tr>\n",
" <tr>\n",
" <th>7</th>\n",
" <td>n/p ratio's:</td>\n",
" <td></td>\n",
" <td></td>\n",
" </tr>\n",
" <tr>\n",
" <th>8</th>\n",
" <th>5</th>\n",
" <td>Practical n/p ratio</td>\n",
" <td></td>\n",
" <td>1.101073</td>\n",
" </tr>\n",
" <tr>\n",
" <th>9</th>\n",
" <th>6</th>\n",
" <td>Theoretical n/p ratio</td>\n",
" <td></td>\n",
" <td>0.666667</td>\n",
" </tr>\n",
" <tr>\n",
" <th>10</th>\n",
" <td>Stack capacities:</td>\n",
" <td></td>\n",
" <td></td>\n",
" </tr>\n",
" <tr>\n",
" <th>11</th>\n",
" <th>7</th>\n",
" <td>Volumetric stack capacity</td>\n",
" <td>A.h.L-1</td>\n",
" <td>252.162072</td>\n",
" </tr>\n",
" <tr>\n",
" <th>12</th>\n",
" <th>8</th>\n",
" <td>Gravimetric stack capacity</td>\n",
" <td>A.h.kg-1</td>\n",
" <td>93.27935</td>\n",
" <td>93.279350</td>\n",
" </tr>\n",
" <tr>\n",
" <th>13</th>\n",
" <th>9</th>\n",
" <td>Capacity</td>\n",
" <td>mA.h.cm-2</td>\n",
" <td>6.494581</td>\n",
" </tr>\n",
" <tr>\n",
" <th>14</th>\n",
" <td>Electrode capacities:</td>\n",
" <td></td>\n",
" <td></td>\n",
" </tr>\n",
" <tr>\n",
" <th>15</th>\n",
" <th>10</th>\n",
" <td>Negative electrode theoretical capacity</td>\n",
" <td>mA.h.cm-2</td>\n",
" <td>7.344387</td>\n",
" </tr>\n",
" <tr>\n",
" <th>16</th>\n",
" <th>11</th>\n",
" <td>Positive electrode theoretical capacity</td>\n",
" <td>mA.h.cm-2</td>\n",
" <td>11.01658</td>\n",
" <td>11.016580</td>\n",
" </tr>\n",
" <tr>\n",
" <th>17</th>\n",
" <th>12</th>\n",
" <td>Negative electrode volumetric capacity</td>\n",
" <td>A.h.L-1</td>\n",
" <td>541.215122</td>\n",
" </tr>\n",
" <tr>\n",
" <th>18</th>\n",
" <th>13</th>\n",
" <td>Positive electrode volumetric capacity</td>\n",
" <td>A.h.L-1</td>\n",
" <td>582.182107</td>\n",
" </tr>\n",
" <tr>\n",
" <th>19</th>\n",
" <th>14</th>\n",
" <td>Negative electrode gravimetric capacity</td>\n",
" <td>A.h.kg-1</td>\n",
" <td>275.713099</td>\n",
" </tr>\n",
" <tr>\n",
" <th>20</th>\n",
" <th>15</th>\n",
" <td>Positive electrode gravimetric capacity</td>\n",
" <td>A.h.kg-1</td>\n",
" <td>173.942917</td>\n",
" </tr>\n",
" <tr>\n",
" <th>21</th>\n",
" <td>Active material capacities:</td>\n",
" <td></td>\n",
" <td></td>\n",
" </tr>\n",
" <tr>\n",
" <th>22</th>\n",
" <th>16</th>\n",
" <td>Negative electrode active material practical c...</td>\n",
" <td>A.h.kg-1</td>\n",
" <td>346.540334</td>\n",
" </tr>\n",
" <tr>\n",
" <th>23</th>\n",
" <th>17</th>\n",
" <td>Positive electrode active material practical c...</td>\n",
" <td>A.h.kg-1</td>\n",
" <td>209.906049</td>\n",
" </tr>\n",
" <tr>\n",
" <th>24</th>\n",
" <th>18</th>\n",
" <td>Negative electrode active material capacity</td>\n",
" <td>A.h.kg-1</td>\n",
" <td>391.884562</td>\n",
" </tr>\n",
" <tr>\n",
" <th>25</th>\n",
" <th>19</th>\n",
" <td>Positive electrode active material capacity</td>\n",
" <td>A.h.kg-1</td>\n",
" <td>356.057862</td>\n",
" </tr>\n",
" <tr>\n",
" <th>26</th>\n",
" <td>Stoichiometries:</td>\n",
" <td></td>\n",
" <td></td>\n",
" </tr>\n",
" <tr>\n",
" <th>27</th>\n",
" <th>20</th>\n",
" <td>Negative electrode stoichiometry at 0% SoC</td>\n",
" <td></td>\n",
" <td>0.02633</td>\n",
" <td>0.026330</td>\n",
" </tr>\n",
" <tr>\n",
" <th>28</th>\n",
" <th>21</th>\n",
" <td>Negative electrode stoichiometry at 100% SoC</td>\n",
" <td></td>\n",
" <td>0.910622</td>\n",
" </tr>\n",
" <tr>\n",
" <th>29</th>\n",
" <th>22</th>\n",
" <td>Positive electrode stoichiometry at 100% SoC</td>\n",
" <td></td>\n",
" <td>0.263849</td>\n",
" </tr>\n",
" <tr>\n",
" <th>30</th>\n",
" <th>23</th>\n",
" <td>Positive electrode stoichiometry at 0% SoC</td>\n",
" <td></td>\n",
" <td>0.853377</td>\n",
Expand All @@ -927,37 +885,30 @@
],
"text/plain": [
" Parameter Unit Value\n",
"0 Stack potentials: \n",
"1 Stack average OCP V 3.714185\n",
"2 Minimal OCP V 2.500043\n",
"3 Maximal OCP V 4.199987\n",
"4 Electrode potentials: \n",
"5 Negative electrode average OCP V 0.193724\n",
"6 Positive electrode average OCP V 3.907909\n",
"7 n/p ratio's: \n",
"8 Practical n/p ratio 1.101073\n",
"9 Theoretical n/p ratio 0.666667\n",
"10 Stack capacities: \n",
"11 Volumetric stack capacity A.h.L-1 252.162072\n",
"12 Gravimetric stack capacity A.h.kg-1 93.27935\n",
"13 Capacity mA.h.cm-2 6.494581\n",
"14 Electrode capacities: \n",
"15 Negative electrode theoretical capacity mA.h.cm-2 7.344387\n",
"16 Positive electrode theoretical capacity mA.h.cm-2 11.01658\n",
"17 Negative electrode volumetric capacity A.h.L-1 541.215122\n",
"18 Positive electrode volumetric capacity A.h.L-1 582.182107\n",
"19 Negative electrode gravimetric capacity A.h.kg-1 275.713099\n",
"20 Positive electrode gravimetric capacity A.h.kg-1 173.942917\n",
"21 Active material capacities: \n",
"22 Negative electrode active material practical c... A.h.kg-1 346.540334\n",
"23 Positive electrode active material practical c... A.h.kg-1 209.906049\n",
"24 Negative electrode active material capacity A.h.kg-1 391.884562\n",
"25 Positive electrode active material capacity A.h.kg-1 356.057862\n",
"26 Stoichiometries: \n",
"27 Negative electrode stoichiometry at 0% SoC 0.02633\n",
"28 Negative electrode stoichiometry at 100% SoC 0.910622\n",
"29 Positive electrode stoichiometry at 100% SoC 0.263849\n",
"30 Positive electrode stoichiometry at 0% SoC 0.853377"
"0 Stack average OCP V 3.714185\n",
"1 Minimal OCP V 2.500043\n",
"2 Maximal OCP V 4.199987\n",
"3 Negative electrode average OCP V 0.193724\n",
"4 Positive electrode average OCP V 3.907909\n",
"5 Practical n/p ratio 1.101073\n",
"6 Theoretical n/p ratio 0.666667\n",
"7 Volumetric stack capacity A.h.L-1 252.162072\n",
"8 Gravimetric stack capacity A.h.kg-1 93.279350\n",
"9 Capacity mA.h.cm-2 6.494581\n",
"10 Negative electrode theoretical capacity mA.h.cm-2 7.344387\n",
"11 Positive electrode theoretical capacity mA.h.cm-2 11.016580\n",
"12 Negative electrode volumetric capacity A.h.L-1 541.215122\n",
"13 Positive electrode volumetric capacity A.h.L-1 582.182107\n",
"14 Negative electrode gravimetric capacity A.h.kg-1 275.713099\n",
"15 Positive electrode gravimetric capacity A.h.kg-1 173.942917\n",
"16 Negative electrode active material practical c... A.h.kg-1 346.540334\n",
"17 Positive electrode active material practical c... A.h.kg-1 209.906049\n",
"18 Negative electrode active material capacity A.h.kg-1 391.884562\n",
"19 Positive electrode active material capacity A.h.kg-1 356.057862\n",
"20 Negative electrode stoichiometry at 0% SoC 0.026330\n",
"21 Negative electrode stoichiometry at 100% SoC 0.910622\n",
"22 Positive electrode stoichiometry at 100% SoC 0.263849\n",
"23 Positive electrode stoichiometry at 0% SoC 0.853377"
]
},
"execution_count": 5,
Expand Down
Loading

0 comments on commit 153ff5f

Please sign in to comment.