Skip to content

Commit 0d8be92

Browse files
committed
#4274 fully remove Integrated conductivity model
1 parent a1863c5 commit 0d8be92

File tree

10 files changed

+1
-48
lines changed

10 files changed

+1
-48
lines changed

docs/source/api/models/submodels/electrolyte_conductivity/index.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,5 @@ Electrolyte Conductivity
77
base_electrolyte_conductivity
88
leading_order_conductivity
99
composite_conductivity
10-
integrated_conductivity
1110
full_conductivity
1211
surface_form/index

docs/source/api/models/submodels/electrolyte_conductivity/integrated_conductivity.rst

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/pybamm/models/full_battery_models/base_battery_model.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,7 @@ class BatteryModelOptions(pybamm.FuzzyDict):
6363
Sets the dimension of the current collector problem. Can be 0
6464
(default), 1 or 2.
6565
* "electrolyte conductivity" : str
66-
Can be "default" (default), "full", "leading order", "composite" or
67-
"integrated".
66+
Can be "default" (default), "full", "leading order", "composite".
6867
* "exchange-current density" : str
6968
Sets the model for the exchange-current density. Can be "single"
7069
(default) or "current sigmoid". A 2-tuple can be provided for different
@@ -235,7 +234,6 @@ def __init__(self, extra_options):
235234
"full",
236235
"leading order",
237236
"composite",
238-
"integrated",
239237
],
240238
"exchange-current density": ["single", "current sigmoid"],
241239
"heat of mixing": ["false", "true"],
@@ -941,7 +939,6 @@ def options(self, extra_options):
941939
if options["electrolyte conductivity"] not in [
942940
"default",
943941
"composite",
944-
"integrated",
945942
]:
946943
raise pybamm.OptionError(
947944
"electrolyte conductivity '{}' not suitable for SPMe".format(

src/pybamm/models/full_battery_models/lithium_ion/spme.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,6 @@ def set_electrolyte_potential_submodel(self):
6161
self.param, options=self.options
6262
)
6363
)
64-
elif self.options["electrolyte conductivity"] == "integrated":
65-
self.submodels["electrolyte conductivity"] = (
66-
pybamm.electrolyte_conductivity.Integrated(
67-
self.param, options=self.options
68-
)
69-
)
7064
if self.options["surface form"] == "false":
7165
surf_model = surf_form.Explicit
7266
elif self.options["surface form"] == "differential":

src/pybamm/models/submodels/electrolyte_conductivity/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
from .base_electrolyte_conductivity import BaseElectrolyteConductivity
22
from .leading_order_conductivity import LeadingOrder
33
from .composite_conductivity import Composite
4-
from .composite_conductivity_old import CompositeOld
54
from .full_conductivity import Full
6-
from .integrated_conductivity import Integrated
75

86
from . import surface_potential_form
97

tests/integration/test_models/test_full_battery_models/test_lithium_ion/test_spme.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,3 @@ class TestSPMe(BaseIntegrationTestLithiumIon):
1010
@pytest.fixture(autouse=True)
1111
def setup(self):
1212
self.model = pybamm.lithium_ion.SPMe
13-
14-
def test_integrated_conductivity(self):
15-
options = {"electrolyte conductivity": "integrated"}
16-
self.run_basic_processing_test(options)

tests/unit/test_citations.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -225,16 +225,6 @@ def test_subramanian_2005(self):
225225
self.assertIn("Subramanian2005", citations._papers_to_cite)
226226
self.assertIn("Subramanian2005", citations._citation_tags.keys())
227227

228-
def test_brosaplanella_2021(self):
229-
# Test that calling relevant bits of code adds the right paper to citations
230-
citations = pybamm.citations
231-
232-
citations._reset()
233-
self.assertNotIn("BrosaPlanella2021", citations._papers_to_cite)
234-
pybamm.electrolyte_conductivity.Integrated(None)
235-
self.assertIn("BrosaPlanella2021", citations._papers_to_cite)
236-
self.assertIn("BrosaPlanella2021", citations._citation_tags.keys())
237-
238228
def test_brosaplanella_2022(self):
239229
# Test that calling relevant bits of code adds the right paper to citations
240230
citations = pybamm.citations

tests/unit/test_models/test_full_battery_models/test_lithium_ion/test_dfn.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,6 @@ class TestDFN(BaseUnitTestLithiumIon):
1111
def setUp(self):
1212
self.model = pybamm.lithium_ion.DFN
1313

14-
def test_electrolyte_options(self):
15-
options = {"electrolyte conductivity": "integrated"}
16-
with pytest.raises(pybamm.OptionError, match="electrolyte conductivity"):
17-
pybamm.lithium_ion.DFN(options)
18-
1914
def test_well_posed_size_distribution(self):
2015
options = {"particle size": "distribution"}
2116
self.check_well_posedness(options)

tests/unit/test_models/test_full_battery_models/test_lithium_ion/test_newman_tobias.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,6 @@ class TestNewmanTobias(BaseUnitTestLithiumIon):
1111
def setUp(self):
1212
self.model = pybamm.lithium_ion.NewmanTobias
1313

14-
def test_electrolyte_options(self):
15-
options = {"electrolyte conductivity": "integrated"}
16-
with pytest.raises(pybamm.OptionError, match="electrolyte conductivity"):
17-
pybamm.lithium_ion.NewmanTobias(options)
18-
1914
@pytest.mark.skip(reason="Test currently not implemented")
2015
def test_well_posed_particle_phases(self):
2116
pass # skip this test

tests/unit/test_models/test_full_battery_models/test_lithium_ion/test_spme.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,3 @@ def test_electrolyte_options(self):
3333
options = {"electrolyte conductivity": "full"}
3434
with pytest.raises(pybamm.OptionError, match="electrolyte conductivity"):
3535
pybamm.lithium_ion.SPMe(options)
36-
37-
def test_integrated_conductivity(self):
38-
options = {"electrolyte conductivity": "integrated"}
39-
self.check_well_posedness(options)

0 commit comments

Comments
 (0)