Skip to content

Commit

Permalink
pybamm-team#1406 fixed bug with positive electrode ohmic losses
Browse files Browse the repository at this point in the history
  • Loading branch information
brosaplanella committed Feb 27, 2021
1 parent 2c223ba commit 8cc397b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pybamm/models/submodels/electrode/base_electrode.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def _get_standard_potential_variables(self, phi_s):
phi_s_av_dim = param.U_p_ref - param.U_n_ref + pot * phi_s_av

v = pybamm.boundary_value(phi_s, "right")
delta_phi_s = phi_s - v
delta_phi_s = v - phi_s
delta_phi_s_av = pybamm.x_average(delta_phi_s)
delta_phi_s_dim = delta_phi_s * pot
delta_phi_s_av_dim = delta_phi_s_av * pot
Expand Down

0 comments on commit 8cc397b

Please sign in to comment.