Replies: 1 comment 2 replies
-
Look at existing parameter sets to see which inputs are required |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
python version 3.8.3
pybamm version 23.2
I have defined a new function for electrode diffusivity as function of c_s_surf and using lookup table for concentration and diffusion coefficients :
def solid_state_diff_graphite (c_s_surf) :
print(c_s_surf)
x = np.array([0,...,1])
y = np.array([])
D_s_graphite = pybamm.Interpolant(x, y, c_s_surf, interpolator='linear')
return D_s_graphite
def solid_state_diff_nmc (c_s_surf) :
x = np.array([0,...,1])
y = np.array([.....])
D_s_nmc = pybamm.Interpolant(x, y, c_s_surf, interpolator='linear')
return D_s_nmc
but I am getting an error as follows
TypeError: solid_state_diff_graphite() takes 1 positional argument but 2 were given
i also tried using self
def solid_state_diff_nmc (self,c_s_surf) :
but this is not calling c_s_surf insted it is taking it as Reference Temperature and interpolation is failing
Beta Was this translation helpful? Give feedback.
All reactions