Skip to content

Commit

Permalink
Merge pull request #1407 from brosaplanella/issue-1406-bug-positive-e…
Browse files Browse the repository at this point in the history
…lectrode-ohmic-losses

#1406 fixed bug with positive electrode ohmic losses
  • Loading branch information
brosaplanella authored Feb 28, 2021
2 parents 2c223ba + a7043df commit 9a95deb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@

## Bug fixes

- Fixed a sign error in the positive electrode ohmic losses ([#1407](https://github.com/pybamm-team/PyBaMM/pull/1407))
- Simulations now stop when an experiment becomes infeasible ([#1395](https://github.com/pybamm-team/PyBaMM/pull/1395))
- Added a check for domains in `Concatenation` ([#1368](https://github.com/pybamm-team/PyBaMM/pull/1368))
- Differentiation now works even when the differentiation variable is a constant ([#1294](https://github.com/pybamm-team/PyBaMM/pull/1294))
Expand Down
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 9a95deb

Please sign in to comment.