|
20 | 20 | "name": "stdout",
|
21 | 21 | "output_type": "stream",
|
22 | 22 | "text": [
|
| 23 | + "\n", |
| 24 | + "\u001b[1m[\u001b[0m\u001b[34;49mnotice\u001b[0m\u001b[1;39;49m]\u001b[0m\u001b[39;49m A new release of pip is available: \u001b[0m\u001b[31;49m23.2.1\u001b[0m\u001b[39;49m -> \u001b[0m\u001b[32;49m25.0.1\u001b[0m\n", |
| 25 | + "\u001b[1m[\u001b[0m\u001b[34;49mnotice\u001b[0m\u001b[1;39;49m]\u001b[0m\u001b[39;49m To update, run: \u001b[0m\u001b[32;49mpip install --upgrade pip\u001b[0m\n", |
23 | 26 | "Note: you may need to restart the kernel to use updated packages.\n"
|
24 | 27 | ]
|
25 | 28 | }
|
|
52 | 55 | "param = pybamm.ParameterValues(\"ORegan2022\")\n",
|
53 | 56 | "\n",
|
54 | 57 | "# Choose CasADI fast (we do a short discharge so there are no events, if events are needed choose \"fast with events\")\n",
|
55 |
| - "solver = pybamm.CasadiSolver(mode=\"fast\")" |
| 58 | + "solver = pybamm.IDAKLUSolver()" |
56 | 59 | ]
|
57 | 60 | },
|
58 | 61 | {
|
|
108 | 111 | {
|
109 | 112 | "data": {
|
110 | 113 | "application/vnd.jupyter.widget-view+json": {
|
111 |
| - "model_id": "7e9913de41054c7cb71be948ebf63375", |
| 114 | + "model_id": "2c6b050e722f45c9921d891d4a3c1c19", |
112 | 115 | "version_major": 2,
|
113 | 116 | "version_minor": 0
|
114 | 117 | },
|
115 | 118 | "text/plain": [
|
116 |
| - "interactive(children=(FloatSlider(value=0.0, description='t', max=9.999999999999998, step=0.09999999999999998)…" |
| 119 | + "interactive(children=(FloatSlider(value=0.0, description='t', max=1800.0, step=18.0), Output()), _dom_classes=…" |
117 | 120 | ]
|
118 | 121 | },
|
119 | 122 | "metadata": {},
|
|
122 | 125 | {
|
123 | 126 | "data": {
|
124 | 127 | "text/plain": [
|
125 |
| - "<pybamm.plotting.quick_plot.QuickPlot at 0x7fe0c1824eb0>" |
| 128 | + "<pybamm.plotting.quick_plot.QuickPlot at 0x17e0440d0>" |
126 | 129 | ]
|
127 | 130 | },
|
128 | 131 | "execution_count": 4,
|
|
131 | 134 | }
|
132 | 135 | ],
|
133 | 136 | "source": [
|
| 137 | + "sim = pybamm.Simulation(\n", |
| 138 | + " model,\n", |
| 139 | + " parameter_values=param,\n", |
| 140 | + " C_rate=1,\n", |
| 141 | + " solver=solver,\n", |
| 142 | + " var_pts=var_pts,\n", |
| 143 | + " submesh_types=submesh_types,\n", |
| 144 | + ")\n", |
| 145 | + "sim.solve(\n", |
| 146 | + " [0, 1800]\n", |
| 147 | + ") # solving time kept short for testing purposes, feel free to extend it\n", |
| 148 | + "sim.plot()" |
| 149 | + ] |
| 150 | + }, |
| 151 | + { |
| 152 | + "cell_type": "code", |
| 153 | + "execution_count": 7, |
| 154 | + "id": "e86b053e", |
| 155 | + "metadata": {}, |
| 156 | + "outputs": [ |
| 157 | + { |
| 158 | + "data": { |
| 159 | + "application/vnd.jupyter.widget-view+json": { |
| 160 | + "model_id": "a79ea249a7c94d43a219067c00259084", |
| 161 | + "version_major": 2, |
| 162 | + "version_minor": 0 |
| 163 | + }, |
| 164 | + "text/plain": [ |
| 165 | + "interactive(children=(FloatSlider(value=0.0, description='t', max=3316.4079454263174, step=33.164079454263174)…" |
| 166 | + ] |
| 167 | + }, |
| 168 | + "metadata": {}, |
| 169 | + "output_type": "display_data" |
| 170 | + }, |
| 171 | + { |
| 172 | + "data": { |
| 173 | + "text/plain": [ |
| 174 | + "<pybamm.plotting.quick_plot.QuickPlot at 0x29e78fd50>" |
| 175 | + ] |
| 176 | + }, |
| 177 | + "execution_count": 7, |
| 178 | + "metadata": {}, |
| 179 | + "output_type": "execute_result" |
| 180 | + } |
| 181 | + ], |
| 182 | + "source": [ |
| 183 | + "sim = pybamm.Simulation(\n", |
| 184 | + " model,\n", |
| 185 | + " parameter_values=param,\n", |
| 186 | + " C_rate=1,\n", |
| 187 | + " solver=solver,\n", |
| 188 | + " # var_pts=var_pts,\n", |
| 189 | + " # submesh_types=submesh_types,\n", |
| 190 | + ")\n", |
134 | 191 | "sim.solve(\n",
|
135 |
| - " [0, 10]\n", |
| 192 | + " [0, 3600]\n", |
136 | 193 | ") # solving time kept short for testing purposes, feel free to extend it\n",
|
137 | 194 | "sim.plot()"
|
138 | 195 | ]
|
139 | 196 | },
|
140 | 197 | {
|
141 | 198 | "cell_type": "code",
|
142 |
| - "execution_count": 5, |
| 199 | + "execution_count": 6, |
143 | 200 | "id": "lined-illustration",
|
144 | 201 | "metadata": {},
|
145 | 202 | "outputs": [
|
|
148 | 205 | "output_type": "stream",
|
149 | 206 | "text": [
|
150 | 207 | "[1] Joel A. E. Andersson, Joris Gillis, Greg Horn, James B. Rawlings, and Moritz Diehl. CasADi – A software framework for nonlinear optimization and optimal control. Mathematical Programming Computation, 11(1):1–36, 2019. doi:10.1007/s12532-018-0139-4.\n",
|
151 |
| - "[2] Chang-Hui Chen, Ferran Brosa Planella, Kieran O'Regan, Dominika Gastol, W. Dhammika Widanage, and Emma Kendrick. Development of Experimental Techniques for Parameterization of Multi-scale Lithium-ion Battery Models. Journal of The Electrochemical Society, 167(8):080534, 2020. doi:10.1149/1945-7111/ab9050.\n", |
152 |
| - "[3] Marc Doyle, Thomas F. Fuller, and John Newman. Modeling of galvanostatic charge and discharge of the lithium/polymer/insertion cell. Journal of the Electrochemical society, 140(6):1526–1533, 1993. doi:10.1149/1.2221597.\n", |
153 |
| - "[4] Charles R. Harris, K. Jarrod Millman, Stéfan J. van der Walt, Ralf Gommers, Pauli Virtanen, David Cournapeau, Eric Wieser, Julian Taylor, Sebastian Berg, Nathaniel J. Smith, and others. Array programming with NumPy. Nature, 585(7825):357–362, 2020. doi:10.1038/s41586-020-2649-2.\n", |
154 |
| - "[5] Kieran O'Regan, Ferran Brosa Planella, W. Dhammika Widanage, and Emma Kendrick. Thermal-electrochemical parametrisation of a lithium-ion battery: mapping Li concentration and temperature dependencies. Journal of The Electrochemical Society, ():, 2021. doi:.\n", |
155 |
| - "[6] Valentin Sulzer, Scott G. Marquis, Robert Timms, Martin Robinson, and S. Jon Chapman. Python Battery Mathematical Modelling (PyBaMM). Journal of Open Research Software, 9(1):14, 2021. doi:10.5334/jors.309.\n", |
156 |
| - "[7] Robert Timms, Scott G Marquis, Valentin Sulzer, Colin P. Please, and S Jonathan Chapman. Asymptotic Reduction of a Lithium-ion Pouch Cell Model. SIAM Journal on Applied Mathematics, 81(3):765–788, 2021. doi:10.1137/20M1336898.\n", |
| 208 | + "[2] Von DAG Bruggeman. Berechnung verschiedener physikalischer konstanten von heterogenen substanzen. i. dielektrizitätskonstanten und leitfähigkeiten der mischkörper aus isotropen substanzen. Annalen der physik, 416(7):636–664, 1935.\n", |
| 209 | + "[3] Chang-Hui Chen, Ferran Brosa Planella, Kieran O'Regan, Dominika Gastol, W. Dhammika Widanage, and Emma Kendrick. Development of Experimental Techniques for Parameterization of Multi-scale Lithium-ion Battery Models. Journal of The Electrochemical Society, 167(8):080534, 2020. doi:10.1149/1945-7111/ab9050.\n", |
| 210 | + "[4] Marc Doyle, Thomas F. Fuller, and John Newman. Modeling of galvanostatic charge and discharge of the lithium/polymer/insertion cell. Journal of the Electrochemical society, 140(6):1526–1533, 1993. doi:10.1149/1.2221597.\n", |
| 211 | + "[5] Charles R. Harris, K. Jarrod Millman, Stéfan J. van der Walt, Ralf Gommers, Pauli Virtanen, David Cournapeau, Eric Wieser, Julian Taylor, Sebastian Berg, Nathaniel J. Smith, and others. Array programming with NumPy. Nature, 585(7825):357–362, 2020. doi:10.1038/s41586-020-2649-2.\n", |
| 212 | + "[6] Alan C. Hindmarsh. The PVODE and IDA algorithms. Technical Report, Lawrence Livermore National Lab., CA (US), 2000. doi:10.2172/802599.\n", |
| 213 | + "[7] Alan C. Hindmarsh, Peter N. Brown, Keith E. Grant, Steven L. Lee, Radu Serban, Dan E. Shumaker, and Carol S. Woodward. SUNDIALS: Suite of nonlinear and differential/algebraic equation solvers. ACM Transactions on Mathematical Software (TOMS), 31(3):363–396, 2005. doi:10.1145/1089014.1089020.\n", |
| 214 | + "[8] Kieran O'Regan, Ferran Brosa Planella, W. Dhammika Widanage, and Emma Kendrick. Thermal-electrochemical parameters of a high energy lithium-ion cylindrical battery. Electrochimica Acta, 425:140700, 2022. doi:10.1016/j.electacta.2022.140700.\n", |
| 215 | + "[9] Valentin Sulzer, Scott G. Marquis, Robert Timms, Martin Robinson, and S. Jon Chapman. Python Battery Mathematical Modelling (PyBaMM). Journal of Open Research Software, 9(1):14, 2021. doi:10.5334/jors.309.\n", |
| 216 | + "[10] Robert Timms, Scott G Marquis, Valentin Sulzer, Colin P. Please, and S Jonathan Chapman. Asymptotic Reduction of a Lithium-ion Pouch Cell Model. SIAM Journal on Applied Mathematics, 81(3):765–788, 2021. doi:10.1137/20M1336898.\n", |
157 | 217 | "\n"
|
158 | 218 | ]
|
159 | 219 | }
|
|
179 | 239 | "name": "python",
|
180 | 240 | "nbconvert_exporter": "python",
|
181 | 241 | "pygments_lexer": "ipython3",
|
182 |
| - "version": "3.9.16" |
| 242 | + "version": "3.11.5" |
183 | 243 | },
|
184 | 244 | "toc": {
|
185 | 245 | "base_numbering": 1,
|
|
0 commit comments