Adding experiment to the models created from scratch #3341
-
Hi everyone, I want to know how to add experiments in the models that are created from scratch. Regards, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
PyBaMM uses the external circuit submodels for experiments, so it is quite tricky to get this working with models that are not integrated with the PyBaMM structure. It might be easier to What's your model? Depending on this, b) might be quite easy. |
Beta Was this translation helpful? Give feedback.
It's a little out of date (2 years ago) but we implemented some Li-S models as a separate library that worked with PyBaMM experiments. The trick is to define a
get_external_circuit_submodel
method in your model class so that current/voltage/power control can be handled correctly, see here. I suspect the code would need updating to work with the current version of PyBaMM, but it should be a good starting point.