Title: How to set SOC-based thresholds in PyBaMM Experiments? #4493
Replies: 3 comments 1 reply
-
There is no official implementation of SoC in PyBaMM AFAIK, see this comment by @valentinsulzer for possible implemntation #2553 (comment) Other logical difficulty in implementation of SoC based limits for PyBaMM experiment is that it will hit cutoff voltage before SoC limit(unless c-rate is very low or SoC limit is high).
No |
Beta Was this translation helpful? Give feedback.
-
You can define custom termination conditions, see https://github.com/pybamm-team/PyBaMM/blob/develop/docs/source/examples/notebooks/simulations_and_experiments/custom-experiments.ipynb. So you just need to define a new variable for however you SOC. |
Beta Was this translation helpful? Give feedback.
-
Thank you so much for pointing me to the custom termination conditions and the example notebook! I'll explore it and try defining a new variable for SOC as suggested. I really appreciate your guidance! |
Beta Was this translation helpful? Give feedback.
-
Hi PyBaMM team,
I've been working with pybamm.Experiment and noticed that, while it's possible to control the experiment with time, current, or voltage thresholds, there doesn't seem to be a direct way to set SOC-based thresholds for starting or stopping charge/discharge.
For example, something like:
"Discharge at 3C until 0.5 SOC"
"Charge at 1C until 0.9 SOC"
I know I can set the initial SOC for a simulation using sim.solve(initial_soc=1), but for running experiments, the SOC-based stopping conditions don't seem to be available.
Am I missing something here? Is there a way to set SOC as a stopping condition in pybamm.Experiment or a recommended workaround for achieving this?
Thank you for your help!
Beta Was this translation helpful? Give feedback.
All reactions