Particle grading with user-supplied function dependencies #1729
-
Hello everyone, This was just an example. My question therefore is the following: is it possible to design a more general programmable interface with user-supplied dependencies of functions? PyBaMM could be even more flexible with this option. Is there anything considered so far? Also, what confuses me: The active material volume fraction can vary in time but the porosity is not set up as a functional parameter depending on x. I saw that in the code you are calculating the inactive material by 1-eps_am-eps_pore. If you consider a changing eps_am wouldn't actually the porosity decrease first, before the inactive material gets compressed? Best regards, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
About the first one, I don't think there is a workaround apart from modifying the source code. It should be made a function of I am not sure I understand the second question. The porosity is indeed a function of |
Beta Was this translation helpful? Give feedback.
About the first one, I don't think there is a workaround apart from modifying the source code. It should be made a function of
x
, and any other dependence (like R) can be introduced in the definition of the parameter.I am not sure I understand the second question. The porosity is indeed a function of
x
and it can be defined as such. Even if the material gets compressed, the volume fractions of pore, active and inactive materials will always add up to 1.