Skip to content

Commit

Permalink
#2338 introduce alpha_SEI
Browse files Browse the repository at this point in the history
  • Loading branch information
brosaplanella committed Nov 3, 2022
1 parent 2b882d2 commit 814e94d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
15 changes: 11 additions & 4 deletions pybamm/models/submodels/interface/sei/sei_growth.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,16 @@ def get_coupled_variables(self, variables):
# Thermal prefactor for reaction, interstitial and EC models
prefactor = 1 / (1 + self.param.Theta * T)

if self.options["SEI"] == "reaction limited":
# Define alpha_SEI depending on whether it is symmetric or asymmetric. This
# applies to "reaction limited" and "EC reaction limited"
if self.options["SEI"].endswith("(asymmetric)"):
alpha_SEI = phase_param.alpha_SEI
else:
alpha_SEI = 0.5

if self.options["SEI"].startswith("reaction limited"):
C_sei = phase_param.C_sei_reaction
j_sei = -(1 / C_sei) * pybamm.exp(-0.5 * prefactor * eta_SEI)
j_sei = -(1 / C_sei) * pybamm.exp(-alpha_SEI * prefactor * eta_SEI)

elif self.options["SEI"] == "electron-migration limited":
U_inner = phase_param.U_inner_electron
Expand All @@ -117,7 +124,7 @@ def get_coupled_variables(self, variables):
C_sei = phase_param.C_sei_solvent
j_sei = -1 / (C_sei * L_sei_outer)

elif self.options["SEI"] == "ec reaction limited":
elif self.options["SEI"].startswith("ec reaction limited"):
C_sei_ec = phase_param.C_sei_ec
C_ec = phase_param.C_ec

Expand All @@ -129,7 +136,7 @@ def get_coupled_variables(self, variables):
# so
# j_sei = -C_sei_ec * exp() / (1 + L_sei * C_ec * C_sei_ec * exp())
# c_ec = 1 / (1 + L_sei * C_ec * C_sei_ec * exp())
C_sei_exp = C_sei_ec * pybamm.exp(-0.5 * prefactor * eta_SEI)
C_sei_exp = C_sei_ec * pybamm.exp(-alpha_SEI * prefactor * eta_SEI)
j_sei = -C_sei_exp / (1 + L_sei * C_ec * C_sei_exp)
c_ec = 1 / (1 + L_sei * C_ec * C_sei_exp)

Expand Down
3 changes: 3 additions & 0 deletions pybamm/parameters/lithium_ion_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,9 @@ def _set_dimensional_parameters(self):
self.E_sei_dimensional = pybamm.Parameter(
f"{pref}SEI growth activation energy [J.mol-1]"
)
self.alpha_SEI = pybamm.Parameter(
f"{pref}SEI growth transfer coefficient"
)

# EC reaction
self.c_ec_0_dim = pybamm.Parameter(
Expand Down

0 comments on commit 814e94d

Please sign in to comment.