Skip to content
Discussion options

You must be logged in to vote

Context: pybamm.Experiment handles the current control with a modular submodel, hence why "just" making a class like https://github.com/pybamm-team/PyBaMM/blob/develop/pybamm/models/full_battery_models/lithium_ion/basic_dfn.py is not enough.

You want to use the structure of https://github.com/pybamm-team/PyBaMM/blob/develop/pybamm/models/submodels/base_submodel.py for your class; I will call it MyClass.

Then, you need to make a second class following https://github.com/pybamm-team/PyBaMM/blob/develop/pybamm/models/full_battery_models/lithium_ion/base_lithium_ion_model.py.

The line that makes it compatible with pybamm.Experiment is https://github.com/pybamm-team/PyBaMM/blob/develop/pybamm/…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@PaulKranefeld
Comment options

@valentinsulzer
Comment options

@rtimms
Comment options

rtimms Jan 11, 2023
Collaborator

@PaulKranefeld
Comment options

@Mrzhang-hub
Comment options

Answer selected by PaulKranefeld
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants