-
-
Notifications
You must be signed in to change notification settings - Fork 553
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IDAKLU-JAX not working with BPX model #4414
Comments
@MarkV-ADI In relation to the BPX issue, you can't write in new fields in this part of the BPX file or it will be rejected by the schema. The schema errors themselves are not helpful (FaradayInstitution/BPX#52). BPX permits you to add any additional fields for the BPX file under Does this error persist if you apply your inputs to the parameter values (as you are doing), assemble a
|
@MarkV-ADI @ejfdickinson's code should work if you don't use the |
@MarkV-ADI Did this resolve your question? |
Hi all, I recently been playing around with the IDAKLU-JAX Solver and very impressed with it's speed! I am trying to target a BPX model cell. However when i do, i get this error: KeyError: 'Current function [A]'
Setup: WSL2 Ubuntu, Python 3.10.12, Pybamm[Jax]==24.5 and BPX==0.4.0
Code
Response
NOTE: The above code works if i use
param = model.default_parameter_values
instead ofparam = pybamm.ParameterValues.create_from_bpx(r'lfp_18650_cell_BPX.json')
The BPX file used is found from the about:energy repo for BPX: https://github.com/About-Energy-OpenSource/About-Energy-BPX-Parameterisation/blob/main/LFP/lfp_18650_cell_BPX.json
I thought that i could add in the current function parameter similar to how it was done in chen2020 but after modifying the bpx Parameterisation->cell to have a current function
Response to modified BPX Schema
so on and so on for each parameter...
Is there a way i can use idaklu solver with the bpx model?
should my input dict change to not use current?, or is it that i'm meant to modify the bpx file somehow to target current or is there a general recommend way for me to solve with IDAKULU-JAX for this.
to note: i'm quite new to the domain of battery simulations so i don't believe this is a bug but just a gap in my knowledge on how to perform this type of simulation :)
Thanks all in advance :)
The text was updated successfully, but these errors were encountered: