Skip to content

Commit 7661ed9

Browse files
rtimmskratman
authored andcommitted
fix bug in composite surface form model (#4293)
1 parent 3d2ecbe commit 7661ed9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pybamm/models/submodels/electrolyte_conductivity/surface_potential_form/composite_surface_form_conductivity.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ def __init__(self, param, domain, options=None):
9999
def set_rhs(self, variables):
100100
domain = self.domain
101101

102+
a = variables[
103+
f"X-averaged {domain} electrode surface area to volume ratio [m-1]"
104+
]
105+
102106
sum_a_j = variables[
103107
f"Sum of x-averaged {domain} electrode volumetric "
104108
"interfacial current densities [A.m-3]"
@@ -116,7 +120,7 @@ def set_rhs(self, variables):
116120

117121
C_dl = self.domain_param.C_dl(T)
118122

119-
self.rhs[delta_phi] = 1 / C_dl * (sum_a_j_av - sum_a_j)
123+
self.rhs[delta_phi] = 1 / (a * C_dl) * (sum_a_j_av - sum_a_j)
120124

121125

122126
class CompositeAlgebraic(BaseModel):

0 commit comments

Comments
 (0)