Skip to content

Problem with initialisation of a custom model #5022

Answered by MarcBerliner
isaacbasil asked this question in Q&A
Discussion options

You must be logged in to vote

It's not immediately clear to me what the issue is. But, if I add a tiny perturbation to the time in the offending line, like

l_dif_p = (a_d_p * (D_s_p * (pybamm.t + 1e-308))**0.5) * regime_p + l_s_p * (1 - regime_p)

then it works for me.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@isaacbasil
Comment options

@MarcBerliner
Comment options

Answer selected by isaacbasil
@isaacbasil
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