Skip to content
Discussion options

You must be logged in to vote

The issue is with the bc:

Ts: {"left": (pybamm.Scalar(0), "Neumann"), "right": (grad_Tb_cathode_particle_right, "Neumann")}

The problem is that the gradient evaluates on the edges of the discretised volumes (positive electrode in this case) but the particles are evaluated in the nodes of the positive electrode, so there's a mismatch. A possible solutions is to define grad_Tb_cathode_particle_right as

v = pybamm.PrimaryBroadcastToEdges(1, "positive electrode")
grad_Tb_cathode_particle_right = lumbda_n_eff / lumbda_s * pybamm.div(T_e_p * v)

which for the 1D case is the same you had before, but now it evaluates on the nodes. This is a bit of a hack, so probably there is a cleaner solution, b…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@brosaplanella
Comment options

brosaplanella Jun 29, 2023
Maintainer Sponsor

@xyyrly
Comment options

@brosaplanella
Comment options

brosaplanella Jul 3, 2023
Maintainer Sponsor

Answer selected by xyyrly
@xyyrly
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants