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

Issue 1225 slow sei model #1227

Merged
merged 2 commits into from
Nov 2, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

## Bug fixes

- Fix bug that was slowing down creation of the EC reaction SEI submodel ([#1227](https://github.com/pybamm-team/PyBaMM/pull/1227))
- Add missing separator thermal parameters for the Ecker parameter set ([#1226](https://github.com/pybamm-team/PyBaMM/pull/1226))
- Raise error if saving to matlab with variable names that matlab can't read, and give option of providing alternative variable names ([#1206](https://github.com/pybamm-team/PyBaMM/pull/1206))
- Raise error if the boundary condition at the origin in a spherical domain is other than no-flux ([#1175](https://github.com/pybamm-team/PyBaMM/pull/1175))
- Fix boundary conditions at r = 0 for Creating Models notebooks ([#1173](https://github.com/pybamm-team/PyBaMM/pull/1173))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ Name [units],Value,Reference,Notes
Separator porosity,0.508,,
Separator Bruggeman coefficient (electrolyte),1.9804586773134942, Solve for permeability factor B=0.304=eps^b,
Separator Bruggeman coefficient (electrode),0,No Bruggeman correction to solid conductivity,
Separator density [kg.m-3],397,default,
Separator specific heat capacity [J.kg-1.K-1],700,default,
Separator thermal conductivity [W.m-1.K-1],0.16,default,
11 changes: 8 additions & 3 deletions pybamm/models/submodels/interface/sei/ec_reaction_limited.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,18 @@ def set_algebraic(self, variables):
# it's ok to fall back on the total interfacial current density, j_tot
# This should only happen when the interface submodel is "InverseButlerVolmer"
# in which case j = j_tot (uniform) anyway
try:
if (
"Total "
+ self.domain.lower()
+ " electrode interfacial current density variable"
in variables
):
j = variables[
"Total "
+ self.domain.lower()
+ " electrode interfacial current density"
+ " electrode interfacial current density variable"
]
except KeyError:
else:
j = variables[
"X-averaged "
+ self.domain.lower()
Expand Down
4 changes: 2 additions & 2 deletions pybamm/models/submodels/interface/sei/reaction_limited.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ def get_coupled_variables(self, variables):
# it's ok to fall back on the total interfacial current density, j_tot
# This should only happen when the interface submodel is "InverseButlerVolmer"
# in which case j = j_tot (uniform) anyway
try:
if self.domain + " electrode interfacial current density" in variables:
j = variables[self.domain + " electrode interfacial current density"]
except KeyError:
else:
j = variables[
"X-averaged "
+ self.domain.lower()
Expand Down