Replies: 2 comments
-
Hi @AlvaroDFC, you shouldn't be able to set any geometry parameters to be input parameters (and therefore you won't be able to calculate their sensitivities this way, although you could do it manually using finite differences). When I run your script on the
|
Beta Was this translation helpful? Give feedback.
0 replies
-
@martinjrobins thank you for your answer. I will carry out the finite differencing step although it is not ideal for my problem. I think it would be a great feature to include the geometry parameters in the AD capability. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I am using PyBamm 22.7 and I am trying to compute the sensitivities of voltage and temperature with respect to quantities that influence the scaling or the discretization, such as the "Negative electrode thickness" or "Negative particle radius" among others. This question is probably related to #2792.
I have been able to compute sensitivities w.r.t "Positive particle radius" and "Ambient temperature" simultaneously and it worked, yet when the sensitivities are computed w.r.t Negative particle radius" if prompts an error:
#############
pybamm.expression_tree.exceptions.SolverError: Could not find consistent states: Could not find acceptable solution: Error in Function::call for 'roots' [Newton] at .../casadi/core/function.cpp:361:
.../casadi/core/rootfinder.cpp:277: rootfinder process failed. Set 'error_on_fail' option to false to ignore this error.
#############
I have tried using the timescale option, but then I get a geometry error:
#############
ValueError: Geometry parameters must be Scalars after parameter processing
#############
I created a minimum working example to reproduce the issue.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions