Electrothermal Coupling with an External Thermal Model
CellElectrical uses PyBaMM's isothermal electrochemistry and exposes heat generation
as an output. Wiring it to LumpedThermal creates a closed electrothermal feedback loop
directly in PathSim — useful for pack-level thermal networks or custom cooling models.
Model
LumpedThermal implements a single-node energy balance:
MATHDISPLAY0ENDMATH
CellElectrical outputs total heat generation [W], which LumpedThermal accepts
directly — no unit bridging needed.
Python
Loading...
/opt/hostedtoolcache/Python/3.11.15/x64/lib/python3.11/site-packages/tqdm/auto.py:21: TqdmWarning: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html from .autonotebook import tqdm as notebook_tqdm
Simulation: 1 C Discharge with Electrothermal Feedback
Python
Loading...
02:24:52 - INFO - LOGGING (log: True) 02:24:52 - INFO - BLOCKS (total: 5, dynamic: 2, static: 3, eventful: 0) 02:24:52 - INFO - GRAPH (nodes: 5, edges: 7, alg. depth: 2, loop depth: 0, runtime: 0.164ms) 02:24:52 - INFO - STARTING -> TRANSIENT (Duration: 1800.00s) 02:24:52 - INFO - -------------------- 1% | 0.2s<17.5s | 10.5 it/s 02:24:53 - INFO - ####---------------- 20% | 0.8s<1.9s | 10.9 it/s 02:24:53 - INFO - ###########--------- 56% | 1.0s<0.3s | 10.7 it/s 02:24:53 - INFO - #################--- 88% | 1.1s<0.1s | 10.7 it/s 02:24:53 - INFO - #################### 100% | 1.2s<--:-- | 10.5 it/s 02:24:53 - INFO - FINISHED -> TRANSIENT (total steps: 13, successful: 13, runtime: 1207.23 ms)
Python
Loading...
Effect of Cooling Conditions
Sweep of MATHINLINE0ENDMATH from adiabatic to liquid-cooled to show the impact on voltage and temperature.
Python
Loading...
02:24:54 - INFO - LOGGING (log: True) 02:24:54 - INFO - BLOCKS (total: 5, dynamic: 2, static: 3, eventful: 0) 02:24:54 - INFO - GRAPH (nodes: 5, edges: 7, alg. depth: 2, loop depth: 0, runtime: 0.153ms) 02:24:54 - INFO - STARTING -> TRANSIENT (Duration: 1800.00s) 02:24:54 - INFO - -------------------- 1% | 0.2s<16.7s | 11.0 it/s 02:24:55 - INFO - ####---------------- 20% | 0.8s<1.8s | 11.2 it/s 02:24:55 - INFO - ###########--------- 56% | 1.0s<0.3s | 11.2 it/s 02:24:55 - INFO - #################--- 88% | 1.1s<0.1s | 11.0 it/s 02:24:55 - INFO - #################### 100% | 1.2s<--:-- | 11.5 it/s 02:24:55 - INFO - FINISHED -> TRANSIENT (total steps: 13, successful: 13, runtime: 1158.92 ms) 02:24:56 - INFO - LOGGING (log: True) 02:24:56 - INFO - BLOCKS (total: 5, dynamic: 2, static: 3, eventful: 0) 02:24:56 - INFO - GRAPH (nodes: 5, edges: 7, alg. depth: 2, loop depth: 0, runtime: 0.152ms) 02:24:56 - INFO - STARTING -> TRANSIENT (Duration: 1800.00s) 02:24:56 - INFO - -------------------- 1% | 0.2s<18.3s | 10.0 it/s 02:24:57 - INFO - ####---------------- 20% | 0.8s<1.9s | 10.9 it/s 02:24:57 - INFO - ###########--------- 56% | 1.0s<0.4s | 10.4 it/s 02:24:57 - INFO - #################--- 88% | 1.1s<0.1s | 10.4 it/s 02:24:58 - INFO - #################### 100% | 1.2s<--:-- | 10.2 it/s 02:24:58 - INFO - FINISHED -> TRANSIENT (total steps: 13, successful: 13, runtime: 1245.35 ms) 02:24:58 - INFO - LOGGING (log: True) 02:24:58 - INFO - BLOCKS (total: 5, dynamic: 2, static: 3, eventful: 0) 02:24:58 - INFO - GRAPH (nodes: 5, edges: 7, alg. depth: 2, loop depth: 0, runtime: 0.153ms) 02:24:58 - INFO - STARTING -> TRANSIENT (Duration: 1800.00s) 02:24:58 - INFO - -------------------- 1% | 0.2s<17.0s | 10.8 it/s 02:24:59 - INFO - ####---------------- 20% | 0.9s<2.1s | 10.0 it/s 02:24:59 - INFO - ###########--------- 56% | 1.1s<0.4s | 9.8 it/s 02:24:59 - INFO - #################--- 88% | 1.2s<0.1s | 9.7 it/s 02:25:00 - INFO - #################### 100% | 1.3s<--:-- | 9.8 it/s 02:25:00 - INFO - FINISHED -> TRANSIENT (total steps: 13, successful: 13, runtime: 1295.34 ms)
Python
Loading...
Summary
CellElectrical+LumpedThermalform a closed electrothermal feedback loop; PathSim resolves the coupling at each step.CellElectricaloutputs total heat [W], which connects directly toLumpedThermal's input — no unit conversion needed.- Stronger cooling keeps the cell cooler and slightly raises the discharge voltage.
- For DAE models (e.g. DFN), see notebook 03.