Skip to content

Commit f4e4955

Browse files
aabillspre-commit-ci[bot]kratman
authored
add reaction heating (#4557)
* add reaction heating * style: pre-commit fixes --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Eric G. Kratz <[email protected]>
1 parent 106c249 commit f4e4955

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/pybamm/models/submodels/thermal/base_thermal.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,12 @@ def _get_standard_coupled_variables(self, variables):
143143
phase_names = ["primary ", "secondary "]
144144

145145
if self.options.electrode_types["negative"] == "planar":
146-
Q_rxn_n = pybamm.FullBroadcast(
147-
0, ["negative electrode"], "current collector"
146+
i_n = variables["Lithium metal total interfacial current density [A.m-2]"]
147+
eta_r_n = variables["Lithium metal interface reaction overpotential [V]"]
148+
Q_rxn_n = pybamm.PrimaryBroadcast(
149+
i_n * eta_r_n / self.param.n.L,
150+
["negative electrode"],
151+
"current collector",
148152
)
149153
Q_rev_n = pybamm.FullBroadcast(
150154
0, ["negative electrode"], "current collector"

0 commit comments

Comments
 (0)