BaseBatteryModel() and Experiments() #3776
Replies: 3 comments 3 replies
-
I don't think you need to modify any of the base models directly but if you did you should look at the base_lithium_ion_model which subclasses base_battery. The best approach would be to dig into the SEI models and see how they are implemented then modify one of those |
Beta Was this translation helpful? Give feedback.
-
The experiments set up voltage and power controls using submodels that add an equation to solve that determines the current (see here). To get the base models (e.g. basic DFN) to work with experiments you’ll need to make sure you define all the necessary variables to be compatible with those submodels. If you’re new to PyBaMM it is often simpler to modify the basic model first to get everything working before trying to add your new equations as a sub model. |
Beta Was this translation helpful? Give feedback.
-
@rtimms a quick follow up: basic_dfn.py --> is this, by itself, a complete model or was the idea to keep it as a framework to develop further?
Just curious, I am still reading through the code, but might be a straightforward answer for you. Thanks |
Beta Was this translation helpful? Give feedback.
-
Hi!
To give a brief intro on what I am tryin to achieve: I want modify the boundary conditions to the particle equation to account for side reactions. I have an idea of how to make it work starting from BaseModel() (for example basic_dfn.py). But I have had problems coupling Experiment class with the BaseBattery() [ Variable "Battery Voltage [V]" not found]
I am just looking for recommendations on what you think the right way to proceed is?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions