[Bug]: create_from_bpx(): effective values of diffusivity activation energies are overwritten by "electrolyte conductivity activation energy" #3051
Labels
bug
Something isn't working
difficulty: easy
A good issue for someone new. Can be done in a few hours
priority: high
To be resolved as soon as possible
PyBaMM Version
23.4
Python Version
3.9.16
Describe the bug
When temperature-dependent functions are created in
create_from_bpx()
, the apparent activation energy for the following callable parameter definitions in the generatedparameter_values
instance is replaced by the value of"Electrolyte conductivity activation energy [J.mol-1]"
.This appears to be a late-binding bug due to the repeat use of non-local variable
E_a
in the declaration these functions, which is repeatedly redefined, the electrolyte conductivity activation energy being the last such redefinition.Affected functions:
Note: identified in 23.4 but no relevant code changes in latest version
Steps to Reproduce
Using
nmc_pouch_cell_BPX.json
from the BPX example download:Relevant log output
The text was updated successfully, but these errors were encountered: