Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Integrated electrolyte conductivity #1188

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
112 commits
Select commit Hold shift + click to select a range
92de548
#884 added integrated conductivity model
brosaplanella Apr 22, 2020
e5d7c14
#884 debugging new submodel
brosaplanella May 16, 2020
fb667b3
#884 added integrated conductivity model
brosaplanella Apr 22, 2020
7899fdd
#884 debugging new submodel
brosaplanella May 16, 2020
7b3df30
Merge branch 'issue-884-electrolyte-integrated-conductivity' of https…
brosaplanella May 19, 2020
573db34
#884 added integrated conductivity model
brosaplanella Apr 22, 2020
eec8354
#884 debugging new submodel
brosaplanella May 16, 2020
5d7ca5d
Merge branch 'issue-884-electrolyte-integrated-conductivity' of https…
brosaplanella May 20, 2020
334dd17
flake8
brosaplanella May 20, 2020
3eb9c68
#884 added integrated conductivity model
brosaplanella Apr 22, 2020
4a3ebf7
#884 debugging new submodel
brosaplanella May 16, 2020
5c5b7fa
flake8
brosaplanella May 20, 2020
00bfd7c
added tab parameters (set to zero) so thermal model runs
brosaplanella May 21, 2020
a8496db
debugged conductivity
brosaplanella May 26, 2020
34b94f3
added new SPMe model
brosaplanella May 26, 2020
e439182
fix merge conflict
brosaplanella May 26, 2020
3ebae0b
flake8
brosaplanella May 26, 2020
5548930
#884 added integrated conductivity model
brosaplanella Apr 22, 2020
4c10748
#884 debugging new submodel
brosaplanella May 16, 2020
7e3c823
flake8
brosaplanella May 20, 2020
3f76b27
debugged conductivity
brosaplanella May 26, 2020
577f5fc
added new SPMe model
brosaplanella May 26, 2020
a39ac10
flake8
brosaplanella May 26, 2020
9d30d37
solved merge conflict
brosaplanella May 28, 2020
e7897be
#884 added integrated conductivity model
brosaplanella Apr 22, 2020
428e4aa
#884 debugging new submodel
brosaplanella May 16, 2020
e30ddf9
flake8
brosaplanella May 20, 2020
f5bef85
debugged conductivity
brosaplanella May 26, 2020
7ebf86a
added new SPMe model
brosaplanella May 26, 2020
f0aa087
flake8
brosaplanella May 26, 2020
57c856b
Merge branch 'issue-884-electrolyte-integrated-conductivity' of https…
brosaplanella Jun 10, 2020
320804b
#884 fixed the new SPMe model to work with the new geometry
brosaplanella Jun 11, 2020
bf92330
#884 added integrated conductivity model
brosaplanella Apr 22, 2020
44bdd41
#884 debugging new submodel
brosaplanella May 16, 2020
a0d17b5
flake8
brosaplanella May 20, 2020
90eb3ee
#884 added integrated conductivity model
brosaplanella Apr 22, 2020
bef6b8c
flake8
brosaplanella May 20, 2020
80dc52d
debugged conductivity
brosaplanella May 26, 2020
3866e20
added new SPMe model
brosaplanella May 26, 2020
a5c51cd
flake8
brosaplanella May 26, 2020
7b55d57
#884 debugging new submodel
brosaplanella May 16, 2020
06674fa
debugged conductivity
brosaplanella May 26, 2020
a923ca7
#884 fixed the new SPMe model to work with the new geometry
brosaplanella Jun 11, 2020
593ddd4
Merge branch 'issue-884-electrolyte-integrated-conductivity' of https…
brosaplanella Jun 22, 2020
764fcec
#884 cleaned code
brosaplanella Jun 22, 2020
96eb696
#884 added integrated conductivity model
brosaplanella Apr 22, 2020
183a765
#884 debugging new submodel
brosaplanella May 16, 2020
c0448ca
flake8
brosaplanella May 20, 2020
d790866
debugged conductivity
brosaplanella May 26, 2020
c135494
added new SPMe model
brosaplanella May 26, 2020
1cee889
flake8
brosaplanella May 26, 2020
a92fcf8
#884 fixed the new SPMe model to work with the new geometry
brosaplanella Jun 11, 2020
8dc661f
#884 added integrated conductivity model
brosaplanella Apr 22, 2020
40b12c3
flake8
brosaplanella May 20, 2020
fb4f6d9
#884 debugging new submodel
brosaplanella May 16, 2020
9e0d807
debugged conductivity
brosaplanella May 26, 2020
71d7a03
#884 cleaned code
brosaplanella Jun 22, 2020
d8108e8
#884 renamed model
brosaplanella Jun 23, 2020
4e47666
Merge branch 'issue-884-electrolyte-integrated-conductivity' of https…
brosaplanella Jun 23, 2020
6ec5ce6
#884 added integrated conductivity model
brosaplanella Apr 22, 2020
4a6874f
#884 debugging new submodel
brosaplanella May 16, 2020
b6626c0
flake8
brosaplanella May 20, 2020
93eefae
debugged conductivity
brosaplanella May 26, 2020
679ffbe
added new SPMe model
brosaplanella May 26, 2020
0a6dfd9
flake8
brosaplanella May 26, 2020
51f71c4
#884 fixed the new SPMe model to work with the new geometry
brosaplanella Jun 11, 2020
02ee792
#884 added integrated conductivity model
brosaplanella Apr 22, 2020
2b77066
flake8
brosaplanella May 20, 2020
a91053d
#884 debugging new submodel
brosaplanella May 16, 2020
7e6de9d
debugged conductivity
brosaplanella May 26, 2020
466e502
#884 cleaned code
brosaplanella Jun 22, 2020
d11e266
#884 debugging new submodel
brosaplanella May 16, 2020
a15c8d5
debugged conductivity
brosaplanella May 26, 2020
1521a3f
#884 added integrated conductivity model
brosaplanella Apr 22, 2020
73a5bfa
flake8
brosaplanella May 20, 2020
85c77e7
#884 debugging new submodel
brosaplanella May 16, 2020
3904114
debugged conductivity
brosaplanella May 26, 2020
1ae86bb
#884 cleaned code
brosaplanella Jun 22, 2020
62c52ea
#884 renamed model
brosaplanella Jun 23, 2020
9999775
Merge branch 'issue-884-electrolyte-integrated-conductivity' of https…
brosaplanella Jun 23, 2020
b55ede7
Merge branch 'develop' into issue-884-electrolyte-integrated-conducti…
brosaplanella Sep 15, 2020
dd8e174
Merge branch 'develop' into issue-884-electrolyte-integrated-conducti…
brosaplanella Oct 7, 2020
f4ba84e
#884 tidy up for merge
brosaplanella Oct 13, 2020
cf39650
#884 removed SPME_FBP (for development only)
brosaplanella Oct 13, 2020
756e093
#884 add preliminary citation
brosaplanella Oct 13, 2020
9d08f5e
#884 add test
brosaplanella Oct 13, 2020
0d19dbc
#884 removed activation energy from Nyman2008
brosaplanella Oct 13, 2020
48ca85c
Merge branch 'develop' into issue-884-electrolyte-integrated-conducti…
brosaplanella Oct 14, 2020
5eee5be
Merge branch 'develop' into issue-884-electrolyte-integrated-conducti…
brosaplanella Oct 19, 2020
e615e4a
#884 update CHANGELOG
brosaplanella Oct 19, 2020
08d191c
#884 add docs
brosaplanella Oct 19, 2020
6a89b7d
#884 removed arrhenius term
brosaplanella Oct 20, 2020
3f04c15
#884 included docstring reference
brosaplanella Oct 20, 2020
86051b9
#884 removed redundant right boundary integrals
brosaplanella Oct 20, 2020
a019e6b
#884 added SPMe tests
brosaplanella Oct 20, 2020
8341306
flake8
brosaplanella Oct 20, 2020
4890bab
#884 fixed typo in docs
brosaplanella Oct 20, 2020
f35dd26
#884 fix documentation
brosaplanella Oct 20, 2020
30ab27c
#884 added options to set integrated conductivity
brosaplanella Oct 22, 2020
6aa1bb3
#884 #1207 implemented option to choose electrolyte conductivity and …
brosaplanella Oct 23, 2020
0308466
#1207 update CHANGELOG
brosaplanella Oct 23, 2020
ddb5ac5
Merge branch 'develop' into issue-884-electrolyte-integrated-conducti…
brosaplanella Oct 23, 2020
006dc25
#884 set SPMe surface form to NotImplemented for the moment
brosaplanella Oct 23, 2020
480765f
#884 update CHANGELOG
brosaplanella Oct 23, 2020
9818f21
flake8
brosaplanella Oct 23, 2020
3afea4e
#884 removed SPMe from test_compare_outputs for surface form
brosaplanella Oct 23, 2020
8672eff
Merge branch 'develop' into issue-884-electrolyte-integrated-conducti…
brosaplanella Oct 24, 2020
e286ce0
Merge branch 'develop' into issue-884-electrolyte-integrated-conducti…
brosaplanella Oct 27, 2020
c301814
#884 fix typo CITATIONS.txt
brosaplanella Oct 27, 2020
f67357b
#884 add test citation Brosa Planella 2020
brosaplanella Nov 3, 2020
5d4bd51
#884 update citation TSPMe
brosaplanella Nov 4, 2020
49fa413
Merge branch 'develop' into issue-884-electrolyte-integrated-conducti…
brosaplanella Nov 4, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

- Added parameter set for an A123 LFP cell ([#1209](https://github.com/pybamm-team/PyBaMM/pull/1209))
- Added variables related to equivalent circuit models ([#1204](https://github.com/pybamm-team/PyBaMM/pull/1204))
- Added the `Integrated` electrolyte conductivity submodel ([#1188](https://github.com/pybamm-team/PyBaMM/pull/1188))
- Added an example script to check conservation of lithium ([#1186](https://github.com/pybamm-team/PyBaMM/pull/1186))
- Added `erf` and `erfc` functions ([#1184](https://github.com/pybamm-team/PyBaMM/pull/1184))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ Electrolyte Conductivity
base_electrolyte_conductivity
leading_order_conductivity
composite_conductivity
integrated_conductivity
full_conductivity
surface_form/index
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Integrated Model
================

.. autoclass:: pybamm.electrolyte_conductivity.Integrated
:members:
10 changes: 10 additions & 0 deletions pybamm/CITATIONS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,16 @@ primaryClass={physics.app-ph},
publisher={IOP Publishing}
}

@article{brosaplanella2020TSPMe,
title={Systematic derivation and validation of a reduced thermal-electrochemical model for lithium-ion batteries using asymptotic methods}
journal={Submitted for publication},
author={Brosa Planella, Ferran and Sheikh, Muhammad and Widanage, Dhammika W},
year={2020},
eprint={2011.01611},
archivePrefix={arXiv},
primaryClass={physics.chem-ph},
}

@article{lain2019design,
title={Design Strategies for High Power vs. High Energy Lithium Ion Cells},
author={Lain, Michael J and Brandon, James and Kendrick, Emma},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
from pybamm import exp, constants


def electrolyte_conductivity_Nyman2008(c_e, T):
"""
Conductivity of LiPF6 in EC:EMC (3:7) as a function of ion concentration. The data
Expand All @@ -27,7 +24,6 @@ def electrolyte_conductivity_Nyman2008(c_e, T):
0.1297 * (c_e / 1000) ** 3 - 2.51 * (c_e / 1000) ** 1.5 + 3.329 * (c_e / 1000)
)

E_k_e = 34700
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was this a mistake in the original implementation?
you could argue we should just not have the arrhenius term in this case

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if a mistake, or we decided to keep the Arrhenius term from the Marquis2019 set (originally it all was in parameters.csv. However, if now it is specified as a function I think it would be good to stick to what the paper provides, and it this case, Nyman et al. 2008, does not provide temperature dependence so I removed it.

If that makes sense, I will remove the whole Arrhenius term so it is clearer.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, that makes sense, just remove the arrhenius term and put in a comment

arrhenius = exp(E_k_e / constants.R * (1 / 298.15 - 1 / T))
# Nyman et al. (2008) does not provide temperature dependence

return sigma_e * arrhenius
return sigma_e
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
from pybamm import exp, constants


def electrolyte_diffusivity_Nyman2008(c_e, T):
"""
Diffusivity of LiPF6 in EC:EMC (3:7) as a function of ion concentration. The data
Expand All @@ -24,7 +21,7 @@ def electrolyte_diffusivity_Nyman2008(c_e, T):
"""

D_c_e = 8.794e-11 * (c_e / 1000) ** 2 - 3.972e-10 * (c_e / 1000) + 4.862e-10
E_D_e = 37040
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as above

arrhenius = exp(E_D_e / constants.R * (1 / 298.15 - 1 / T))

return D_c_e * arrhenius
# Nyman et al. (2008) does not provide temperature dependence

return D_c_e
14 changes: 14 additions & 0 deletions pybamm/models/full_battery_models/base_battery_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ def options(self, extra_options):
"current collector": "uniform",
"particle": "Fickian diffusion",
"particle shape": "spherical",
"electrolyte conductivity": "default",
"thermal": "isothermal",
"cell geometry": None,
"external submodels": [],
Expand Down Expand Up @@ -375,6 +376,19 @@ def options(self, extra_options):
"placed at the top of the cell."
)

if options["electrolyte conductivity"] not in [
"default",
"full",
"leading order",
"composite",
"integrated",
]:
raise pybamm.OptionError(
"electrolyte conductivity model '{}' not recognised".format(
options["electrolyte conductivity"]
)
)

self._options = options

def set_standard_output_variables(self):
Expand Down
7 changes: 7 additions & 0 deletions pybamm/models/full_battery_models/lithium_ion/dfn.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,13 @@ def set_electrolyte_submodel(self):
self.param
)

if self.options["electrolyte conductivity"] not in ["default", "full"]:
raise pybamm.OptionError(
"electrolyte conductivity '{}' not suitable for DFN".format(
self.options["electrolyte conductivity"]
)
)

if self.options["surface form"] is False:
self.submodels[
"electrolyte conductivity"
Expand Down
8 changes: 8 additions & 0 deletions pybamm/models/full_battery_models/lithium_ion/spm.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,13 @@ def set_electrolyte_submodel(self):

surf_form = pybamm.electrolyte_conductivity.surface_potential_form

if self.options["electrolyte conductivity"] not in ["default", "leading order"]:
raise pybamm.OptionError(
"electrolyte conductivity '{}' not suitable for SPM".format(
self.options["electrolyte conductivity"]
)
)

if self.options["surface form"] is False:
self.submodels[
"leading-order electrolyte conductivity"
Expand All @@ -152,6 +159,7 @@ def set_electrolyte_submodel(self):
self.submodels[
"leading-order " + domain.lower() + " electrolyte conductivity"
] = surf_form.LeadingOrderAlgebraic(self.param, domain)

self.submodels[
"electrolyte diffusion"
] = pybamm.electrolyte_diffusion.ConstantConcentration(self.param)
36 changes: 33 additions & 3 deletions pybamm/models/full_battery_models/lithium_ion/spme.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,39 @@ def set_positive_electrode_submodel(self):

def set_electrolyte_submodel(self):

self.submodels[
"electrolyte conductivity"
] = pybamm.electrolyte_conductivity.Composite(self.param)
if self.options["electrolyte conductivity"] not in [
"default",
"composite",
"integrated",
]:
raise pybamm.OptionError(
"electrolyte conductivity '{}' not suitable for SPMe".format(
self.options["electrolyte conductivity"]
)
)

if self.options["surface form"] is False:
if self.options["electrolyte conductivity"] in ["default", "composite"]:
self.submodels[
"electrolyte conductivity"
] = pybamm.electrolyte_conductivity.Composite(self.param)
elif self.options["electrolyte conductivity"] == "integrated":
self.submodels[
"electrolyte conductivity"
] = pybamm.electrolyte_conductivity.Integrated(self.param)
elif self.options["surface form"] == "differential":
raise NotImplementedError(
"surface form '{}' has not been implemented for SPMe yet".format(
self.options["surface form"]
)
)
elif self.options["surface form"] == "algebraic":
raise NotImplementedError(
"surface form '{}' has not been implemented for SPMe yet".format(
self.options["surface form"]
)
)

self.submodels["electrolyte diffusion"] = pybamm.electrolyte_diffusion.Full(
self.param
)
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
from .leading_order_conductivity import LeadingOrder
from .composite_conductivity import Composite
from .full_conductivity import Full
from .integrated_conductivity import Integrated

from . import surface_potential_form
Original file line number Diff line number Diff line change
@@ -0,0 +1,173 @@
#
# Composite electrolyte potential employing integrated Stefan-Maxwell
#
import pybamm
from .base_electrolyte_conductivity import BaseElectrolyteConductivity


class Integrated(BaseElectrolyteConductivity):
"""
Integrated model for conservation of charge in the electrolyte derived from
integrating the Stefan-Maxwell constitutive equations, from [1]_.

Parameters
----------
param : parameter class
The parameters to use for this submodel
domain : str, optional
The domain in which the model holds
reactions : dict, optional
Dictionary of reaction terms

References
----------
.. [1] F. Brosa Planella, M. Sheikh, and W. D. Widanage, “Systematic derivation and
validation of reduced thermal-electrochemical models for lithium-ion
batteries using asymptotic methods.” arXiv preprint, 2020.

**Extends:** :class:`pybamm.electrolyte_conductivity.BaseElectrolyteConductivity`

"""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add reference to your paper in the docstring


def __init__(self, param, domain=None):
pybamm.citations.register("brosaplanella2020TSPMe")
super().__init__(param, domain)

def _higher_order_macinnes_function(self, x):
return pybamm.log(x)

def get_coupled_variables(self, variables):
c_e_av = variables["X-averaged electrolyte concentration"]

i_boundary_cc_0 = variables["Leading-order current collector current density"]
c_e_n = variables["Negative electrolyte concentration"]
c_e_s = variables["Separator electrolyte concentration"]
c_e_p = variables["Positive electrolyte concentration"]
c_e_n0 = pybamm.boundary_value(c_e_n, "left")

delta_phi_n_av = variables[
"X-averaged negative electrode surface potential difference"
]
phi_s_n_av = variables["X-averaged negative electrode potential"]

tor_n = variables["Negative electrolyte tortuosity"]
tor_s = variables["Separator tortuosity"]
tor_p = variables["Positive electrolyte tortuosity"]

T_av = variables["X-averaged cell temperature"]
T_av_n = pybamm.PrimaryBroadcast(T_av, "negative electrode")
T_av_s = pybamm.PrimaryBroadcast(T_av, "separator")
T_av_p = pybamm.PrimaryBroadcast(T_av, "positive electrode")

param = self.param
l_n = param.l_n
l_p = param.l_p
x_n = pybamm.standard_spatial_vars.x_n
x_s = pybamm.standard_spatial_vars.x_s
x_p = pybamm.standard_spatial_vars.x_p
x_n_edge = pybamm.standard_spatial_vars.x_n_edge
x_p_edge = pybamm.standard_spatial_vars.x_p_edge

chi_av = param.chi(c_e_av)
chi_av_n = pybamm.PrimaryBroadcast(chi_av, "negative electrode")
chi_av_s = pybamm.PrimaryBroadcast(chi_av, "separator")
chi_av_p = pybamm.PrimaryBroadcast(chi_av, "positive electrode")

# electrolyte current
i_e_n = i_boundary_cc_0 * x_n / l_n
i_e_s = pybamm.PrimaryBroadcast(i_boundary_cc_0, "separator")
i_e_p = i_boundary_cc_0 * (1 - x_p) / l_p
i_e = pybamm.Concatenation(i_e_n, i_e_s, i_e_p)

i_e_n_edge = i_boundary_cc_0 * x_n_edge / l_n
i_e_s_edge = pybamm.PrimaryBroadcastToEdges(i_boundary_cc_0, "separator")
i_e_p_edge = i_boundary_cc_0 * (1 - x_p_edge) / l_p

# electrolyte potential
indef_integral_n = (
pybamm.IndefiniteIntegral(
i_e_n_edge / (param.kappa_e(c_e_n, T_av_n) * tor_n), x_n
)
* param.C_e
/ param.gamma_e
)
indef_integral_s = (
pybamm.IndefiniteIntegral(
i_e_s_edge / (param.kappa_e(c_e_s, T_av_s) * tor_s), x_s
)
* param.C_e
/ param.gamma_e
)
indef_integral_p = (
pybamm.IndefiniteIntegral(
i_e_p_edge / (param.kappa_e(c_e_p, T_av_p) * tor_p), x_p
)
* param.C_e
/ param.gamma_e
)

integral_n = indef_integral_n
integral_s = indef_integral_s + pybamm.boundary_value(integral_n, "right")
integral_p = indef_integral_p + pybamm.boundary_value(integral_s, "right")

phi_e_const = (
-delta_phi_n_av
+ phi_s_n_av
- (
chi_av
* (1 + param.Theta * T_av)
* pybamm.x_average(self._higher_order_macinnes_function(c_e_n / c_e_n0))
)
+ pybamm.x_average(integral_n)
)

phi_e_n = (
phi_e_const
+ (
chi_av_n
* (1 + param.Theta * T_av_n)
* self._higher_order_macinnes_function(c_e_n / c_e_n0)
)
- integral_n
)

phi_e_s = (
phi_e_const
+ (
chi_av_s
* (1 + param.Theta * T_av_s)
* self._higher_order_macinnes_function(c_e_s / c_e_n0)
)
- integral_s
)

phi_e_p = (
phi_e_const
+ (
chi_av_p
* (1 + param.Theta * T_av_p)
* self._higher_order_macinnes_function(c_e_p / c_e_n0)
)
- integral_p
)

# concentration overpotential
eta_c_av = (
chi_av
* (1 + param.Theta * T_av)
* (
pybamm.x_average(self._higher_order_macinnes_function(c_e_p / c_e_av))
- pybamm.x_average(self._higher_order_macinnes_function(c_e_n / c_e_av))
)
)

# average electrolyte ohmic losses
delta_phi_e_av = -(pybamm.x_average(integral_p) - pybamm.x_average(integral_n))

variables.update(
self._get_standard_potential_variables(phi_e_n, phi_e_s, phi_e_p)
)
variables.update(self._get_standard_current_variables(i_e))
variables.update(self._get_split_overpotential(eta_c_av, delta_phi_e_av))

return variables
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def test_compare_outputs_surface_form(self):
]
model_combos = [
([pybamm.lithium_ion.SPM(opt) for opt in options]),
([pybamm.lithium_ion.SPMe(opt) for opt in options]),
# ([pybamm.lithium_ion.SPMe(opt) for opt in options]), # not implemented
([pybamm.lithium_ion.DFN(opt) for opt in options]),
]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,20 @@ def test_particle_quartic(self):
modeltest = tests.StandardModelTest(model)
modeltest.test_all()

def test_surface_form_differential(self):
options = {"surface form": "differential"}
model = pybamm.lithium_ion.SPMe(options)
modeltest = tests.StandardModelTest(model)
modeltest.test_all()

def test_surface_form_algebraic(self):
options = {"surface form": "algebraic"}
# def test_surface_form_differential(self):
# options = {"surface form": "differential"}
# model = pybamm.lithium_ion.SPMe(options)
# modeltest = tests.StandardModelTest(model)
# modeltest.test_all()

# def test_surface_form_algebraic(self):
# options = {"surface form": "algebraic"}
# model = pybamm.lithium_ion.SPMe(options)
# modeltest = tests.StandardModelTest(model)
# modeltest.test_all()

def test_integrated_conductivity(self):
options = {"electrolyte conductivity": "integrated"}
model = pybamm.lithium_ion.SPMe(options)
modeltest = tests.StandardModelTest(model)
modeltest.test_all()
Expand Down
Loading