@@ -21,7 +21,7 @@ def test_electrical_input_labels(self):
2121
2222 def test_electrical_output_labels (self ):
2323 self .assertEqual (CellElectrical .output_port_labels ["V" ], 0 )
24- self .assertEqual (CellElectrical .output_port_labels ["Q_heat " ], 1 )
24+ self .assertEqual (CellElectrical .output_port_labels ["Q_dot " ], 1 )
2525 self .assertEqual (CellElectrical .output_port_labels ["SOC" ], 2 )
2626
2727 def test_electrothermal_input_labels (self ):
@@ -31,7 +31,7 @@ def test_electrothermal_input_labels(self):
3131 def test_electrothermal_output_labels (self ):
3232 self .assertEqual (CellElectrothermal .output_port_labels ["V" ], 0 )
3333 self .assertEqual (CellElectrothermal .output_port_labels ["T" ], 1 )
34- self .assertEqual (CellElectrothermal .output_port_labels ["Q_heat " ], 2 )
34+ self .assertEqual (CellElectrothermal .output_port_labels ["Q_dot " ], 2 )
3535 self .assertEqual (CellElectrothermal .output_port_labels ["SOC" ], 3 )
3636
3737 def test_is_dynamic (self ):
@@ -40,17 +40,17 @@ def test_is_dynamic(self):
4040
4141 def test_cosim_len_zero (self ):
4242 cell_e = CellCoSimElectrical (dt = 1.0 )
43- self .assertEqual (len (cell_e ), 3 ) # V, Q_heat , SOC
43+ self .assertEqual (len (cell_e ), 3 ) # V, Q_dot , SOC
4444 cell_et = CellCoSimElectrothermal (dt = 1.0 )
45- self .assertEqual (len (cell_et ), 4 ) # V, T, Q_heat , SOC
45+ self .assertEqual (len (cell_et ), 4 ) # V, T, Q_dot , SOC
4646
4747 def test_len_zero (self ):
4848 cell_e = CellElectrical ()
4949 cell_e .set_solver (ESDIRK43 , None )
50- self .assertEqual (len (cell_e ), 3 ) # V, Q_heat , SOC
50+ self .assertEqual (len (cell_e ), 3 ) # V, Q_dot , SOC
5151 cell_et = CellElectrothermal ()
5252 cell_et .set_solver (ESDIRK43 , None )
53- self .assertEqual (len (cell_et ), 4 ) # V, T, Q_heat , SOC
53+ self .assertEqual (len (cell_et ), 4 ) # V, T, Q_dot , SOC
5454
5555 def test_current_always_input (self ):
5656 pv = pybamm .ParameterValues ("Chen2020" )
@@ -168,7 +168,7 @@ def test_outputs_in_range(self):
168168 self .sim .run (1 )
169169 self .assertGreater (self .cell .outputs [0 ], 3.0 ) # V
170170 self .assertLess (self .cell .outputs [0 ], 4.3 )
171- self .assertGreaterEqual (self .cell .outputs [1 ], 0.0 ) # Q_heat
171+ self .assertGreaterEqual (self .cell .outputs [1 ], 0.0 ) # Q_dot
172172 self .assertGreater (self .cell .outputs [2 ], 0.0 ) # SOC
173173 self .assertLessEqual (self .cell .outputs [2 ], 1.0 )
174174
@@ -190,11 +190,11 @@ def test_pathsim_state_advances(self):
190190 self .sim .run (2 )
191191 self .assertFalse (np .allclose (self .cell .engine .state , state_before ))
192192
193- def test_q_heat_nonzero_during_discharge (self ):
194- """Q_heat must be strictly positive when a discharge current flows.
193+ def test_q_dot_nonzero_during_discharge (self ):
194+ """Q_dot must be strictly positive when a discharge current flows.
195195
196196 With thermal='isothermal' PyBaMM does not compute heat source terms,
197- so Q_heat would be identically zero — this test guards against that.
197+ so Q_dot would be identically zero — this test guards against that.
198198 """
199199 cell = CellElectrical (initial_soc = 1.0 )
200200 I_src = Constant (5.0 ) # 1C-ish discharge
@@ -212,7 +212,7 @@ def test_q_heat_nonzero_during_discharge(self):
212212 self .assertGreater (
213213 cell .outputs [1 ],
214214 0.0 ,
215- "Q_heat is zero — thermal model may not compute heat sources" ,
215+ "Q_dot is zero — thermal model may not compute heat sources" ,
216216 )
217217
218218 def test_temperature_input_affects_voltage (self ):
@@ -276,7 +276,7 @@ def test_outputs_in_range(self):
276276 self .assertLess (self .cell .outputs [0 ], 4.3 )
277277 self .assertGreater (self .cell .outputs [1 ], 250.0 ) # T
278278 self .assertLess (self .cell .outputs [1 ], 400.0 )
279- self .assertGreaterEqual (self .cell .outputs [2 ], 0.0 ) # Q_heat
279+ self .assertGreaterEqual (self .cell .outputs [2 ], 0.0 ) # Q_dot
280280 self .assertGreater (self .cell .outputs [3 ], 0.0 ) # SOC
281281 self .assertLessEqual (self .cell .outputs [3 ], 1.0 )
282282
@@ -298,8 +298,8 @@ def test_pathsim_state_advances(self):
298298 self .sim .run (2 )
299299 self .assertFalse (np .allclose (self .cell .engine .state , state_before ))
300300
301- def test_q_heat_nonzero_during_discharge (self ):
302- """Q_heat must be strictly positive when a discharge current flows."""
301+ def test_q_dot_nonzero_during_discharge (self ):
302+ """Q_dot must be strictly positive when a discharge current flows."""
303303 cell = CellElectrothermal (initial_soc = 1.0 )
304304 I_src = Constant (5.0 )
305305 T_src = Constant (298.15 )
@@ -316,7 +316,7 @@ def test_q_heat_nonzero_during_discharge(self):
316316 self .assertGreater (
317317 cell .outputs [2 ],
318318 0.0 ,
319- "Q_heat is zero — thermal model may not compute heat sources" ,
319+ "Q_dot is zero — thermal model may not compute heat sources" ,
320320 )
321321
322322 def test_tamb_input_affects_cell_temperature (self ):
@@ -375,7 +375,7 @@ def test_outputs_in_range(self):
375375 self .sim .run (2 )
376376 self .assertGreater (self .cell .outputs [0 ], 2.0 ) # V
377377 self .assertLess (self .cell .outputs [0 ], 5.0 )
378- self .assertGreaterEqual (self .cell .outputs [1 ], 0.0 ) # Q_heat
378+ self .assertGreaterEqual (self .cell .outputs [1 ], 0.0 ) # Q_dot
379379 self .assertGreater (self .cell .outputs [2 ], 0.0 ) # SOC
380380 self .assertLessEqual (self .cell .outputs [2 ], 1.0 )
381381
@@ -403,8 +403,8 @@ def test_dfn_step_outputs_physical(self):
403403 self .assertGreater (cell .outputs [2 ], 0.0 ) # SOC
404404 self .assertLessEqual (cell .outputs [2 ], 1.0 )
405405
406- def test_q_heat_nonzero_during_discharge (self ):
407- """Q_heat must be strictly positive when a discharge current flows."""
406+ def test_q_dot_nonzero_during_discharge (self ):
407+ """Q_dot must be strictly positive when a discharge current flows."""
408408 cell = CellCoSimElectrical (initial_soc = 1.0 , dt = 10.0 )
409409 I_src = Constant (5.0 )
410410 T_src = Constant (298.15 )
@@ -421,7 +421,7 @@ def test_q_heat_nonzero_during_discharge(self):
421421 self .assertGreater (
422422 cell .outputs [1 ],
423423 0.0 ,
424- "Q_heat is zero — thermal model may not compute heat sources" ,
424+ "Q_dot is zero — thermal model may not compute heat sources" ,
425425 )
426426
427427 def test_temperature_input_affects_voltage (self ):
@@ -479,7 +479,7 @@ def test_outputs_in_range(self):
479479 self .assertLess (self .cell .outputs [0 ], 5.0 )
480480 self .assertGreater (self .cell .outputs [1 ], 250.0 ) # T
481481 self .assertLess (self .cell .outputs [1 ], 400.0 )
482- self .assertGreaterEqual (self .cell .outputs [2 ], 0.0 ) # Q_heat
482+ self .assertGreaterEqual (self .cell .outputs [2 ], 0.0 ) # Q_dot
483483 self .assertGreater (self .cell .outputs [3 ], 0.0 ) # SOC
484484 self .assertLessEqual (self .cell .outputs [3 ], 1.0 )
485485
@@ -508,8 +508,8 @@ def test_dfn_step_outputs_physical(self):
508508 self .assertGreater (cell .outputs [3 ], 0.0 ) # SOC
509509 self .assertLessEqual (cell .outputs [3 ], 1.0 )
510510
511- def test_q_heat_nonzero_during_discharge (self ):
512- """Q_heat must be strictly positive when a discharge current flows."""
511+ def test_q_dot_nonzero_during_discharge (self ):
512+ """Q_dot must be strictly positive when a discharge current flows."""
513513 cell = CellCoSimElectrothermal (initial_soc = 1.0 , dt = 10.0 )
514514 I_src = Constant (5.0 )
515515 T_src = Constant (298.15 )
@@ -526,7 +526,7 @@ def test_q_heat_nonzero_during_discharge(self):
526526 self .assertGreater (
527527 cell .outputs [2 ],
528528 0.0 ,
529- "Q_heat is zero — thermal model may not compute heat sources" ,
529+ "Q_dot is zero — thermal model may not compute heat sources" ,
530530 )
531531
532532 def test_tamb_input_affects_cell_temperature (self ):
0 commit comments