Battery response sensitivities for an electric aircraft discharge profile #3804
-
Hello, I was thinking of a class such as the following to be called in a main file:
The main file would then call the function
I am unsure if I am passing properly the previous solution to initialize a model. Also, is it possible within PyBaMM? What would be the best way to enable segment-wise sensitivities? Thank you! Any help or advice would be greatly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Hi @AlexGuibert yeah this seems a bit tricky to do as sensitivities are calculated by the solver and there isn't a way to control them through a simulation which is what you would use to run an experiment and also start a simulation from an old solution. I think there are two options: Run a simulation and experiment then manually calculate sensitivities yourself or change the Current function to be a function instead of a constant and run that through a solver. Maybe @martinjrobins could advise on whether this assessment is the true - he knows more about sensitivities and might have another suggestion |
Beta Was this translation helpful? Give feedback.
-
FYI PyBOP should be able to do this (eventually), although it's still a work in progress. cc @BradyPlanden see https://github.com/pybop-team/PyBOP for the repo |
Beta Was this translation helpful? Give feedback.
Hi @AlexGuibert yeah this seems a bit tricky to do as sensitivities are calculated by the solver and there isn't a way to control them through a simulation which is what you would use to run an experiment and also start a simulation from an old solution. I think there are two options: Run a simulation and experiment then manually calculate sensitivities yourself or change the Current function to be a function instead of a constant and run that through a solver. Maybe @martinjrobins could advise on whether this assessment is the true - he knows more about sensitivities and might have another suggestion