@@ -37,18 +37,14 @@ class BaseBatteryModel(pybamm.BaseModel):
37
37
(default) or "varying". Not currently implemented in any of the models.
38
38
* "current collector" : str, optional
39
39
Sets the current collector model to use. Can be "uniform" (default),
40
- "potential pair", "potential pair quite conductive", or
41
- "set external potential". The submodel "set external potential" can only
42
- be used with the SPM.
40
+ "potential pair" or "potential pair quite conductive".
43
41
* "particle" : str, optional
44
42
Sets the submodel to use to describe behaviour within the particle.
45
43
Can be "Fickian diffusion" (default) or "fast diffusion".
46
44
* "thermal" : str, optional
47
45
Sets the thermal model to use. Can be "isothermal" (default),
48
- "x-full", "x-lumped", "xyz-lumped", "lumped" or "set external
49
- temperature". Must be "isothermal" for lead-acid models. If the
50
- option "set external temperature" is selected then "dimensionality"
51
- must be 1.
46
+ "x-full", "x-lumped", "xyz-lumped" or "lumped". Must be "isothermal" for
47
+ lead-acid models.
52
48
* "thermal current collector" : bool, optional
53
49
Whether to include thermal effects in the current collector in
54
50
one-dimensional models (default is False). Note that this option
@@ -193,7 +189,6 @@ def options(self, extra_options):
193
189
"uniform" ,
194
190
"potential pair" ,
195
191
"potential pair quite conductive" ,
196
- "set external potential" ,
197
192
]:
198
193
raise pybamm .OptionError (
199
194
"current collector model '{}' not recognised" .format (
@@ -212,7 +207,6 @@ def options(self, extra_options):
212
207
"x-lumped" ,
213
208
"xyz-lumped" ,
214
209
"lumped" ,
215
- "set external temperature" ,
216
210
]:
217
211
raise pybamm .OptionError (
218
212
"Unknown thermal model '{}'" .format (options ["thermal" ])
@@ -241,14 +235,6 @@ def options(self, extra_options):
241
235
raise pybamm .OptionError (
242
236
"thermal effects not implemented for lead-acid models"
243
237
)
244
- if options ["current collector" ] == "set external potential" and not isinstance (
245
- self , pybamm .lithium_ion .SPM
246
- ):
247
- raise pybamm .OptionError (
248
- "option {} only compatible with SPM" .format (
249
- options ["current collector" ]
250
- )
251
- )
252
238
253
239
self ._options = options
254
240
@@ -544,14 +530,6 @@ def set_thermal_submodel(self):
544
530
self .param
545
531
)
546
532
547
- elif self .options ["thermal" ] == "set external temperature" :
548
- if self .options ["dimensionality" ] == 1 :
549
- thermal_submodel = pybamm .thermal .x_lumped .SetTemperature1D (self .param )
550
- elif self .options ["dimensionality" ] in [0 , 2 ]:
551
- raise NotImplementedError (
552
- """Set temperature model only implemented for 1D current
553
- collectors"""
554
- )
555
533
self .submodels ["thermal" ] = thermal_submodel
556
534
557
535
def set_current_collector_submodel (self ):
@@ -563,20 +541,6 @@ def set_current_collector_submodel(self):
563
541
submodel = pybamm .current_collector .PotentialPair1plus1D (self .param )
564
542
elif self .options ["dimensionality" ] == 2 :
565
543
submodel = pybamm .current_collector .PotentialPair2plus1D (self .param )
566
- elif self .options ["current collector" ] == "set external potential" :
567
- if self .options ["dimensionality" ] == 1 :
568
- submodel = pybamm .current_collector .SetPotentialSingleParticle1plus1D (
569
- self .param
570
- )
571
- elif self .options ["dimensionality" ] == 2 :
572
- submodel = pybamm .current_collector .SetPotentialSingleParticle2plus1D (
573
- self .param
574
- )
575
- elif self .options ["dimensionality" ] == 0 :
576
- raise NotImplementedError (
577
- """Set potential model only implemented for 1D or 2D current
578
- collectors"""
579
- )
580
544
self .submodels ["current collector" ] = submodel
581
545
582
546
def set_voltage_variables (self ):
0 commit comments