Defining Diffusion Coefficient as a function of SOC

This topic has been transferred from Github discussions.

I have a relation between diffusion coefficient of electrodes wrt SOC. Can we provide it as an input in pybamm model?

Yes, diffusivity can be a function of stoichiometry and temperature. You need to define a function as part of your parameter set, e.g. like this: