Open MarcAntoine88 opened 1 year ago
I suspect the issue is with the stoichiometry dependent diffusion coefficient, because commenting parameter_values["Positive electrode diffusivity [m2.s-1]"] = graphite_LGM50_diffusivity_ORegan2022
works fine. I am not too familiar with how the PSD models work though, so hard for me to tell where the problem is.
Hi @brosaplanella , yes exactly, both PSD and stoichiometry dependent diffusion coefficient work well separately, but not together. According to the error, when PSD and stoichiometry dependent diffusion are used together the integration_dimension goes to 'tertiary' when defining the integral matrix in definite_integral_matrix function (pybamm/spatial_methods/finite_volume). I tried to add a tertiary case without great success until now, thanks for the help!
As a workaround you can delete the variable that is causing problems (assuming you don't need to evaluate it)
model = ...
del model.variables["X-averaged positive particle effective diffusivity distribution [m2.s-1]"]
Just getting back to this for my work, thanks a lot for the workaround @tinosulzer , I really appreciate! Best, MA
PyBaMM Version
23.4.1
Python Version
23.4.1
Describe the bug
Hello everyone, I would like to run some half cell graphite simulations using particle size distribution and stoichiometry dependant diffusion within the particles. However I'm getting an error related to discretisation. Did someone already face the same issue? Thanks for the help! Cheers, Marc-Antoine
Steps to Reproduce
Relevant log output
No response