Skip to content
Discussion options

You must be logged in to vote

The model expects the function for the exchange current density to depend on c_e, c_s_surf,c_s_max and T. You can define your function and update the parameter like this

p1 = pybamm.InputParameter("p1")
p2 = pybamm.InputParameter("p2")
p3 = pybamm.InputParameter("p3")

def j0(c_e, c_s_surf, c_s_max, T):
    return p1 * tanh(p2*(p3-(c_surf/c_max))) + p1


param.update({"Negative electrode exchange-current density [A.m-2]" j0})

Then when you solve give values for "p1" etc. in inputs.

Replies: 1 comment 4 replies

Comment options

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

@samwong92
Comment options

@rtimms
Comment options

rtimms May 30, 2023
Collaborator

@samwong92
Comment options

Answer selected by samwong92
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