You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It could be caused by the absence of dimension for the variable "electrode_thickness_change" in the class BaseMechanics (base_mechanics.py). In reference to the previous version, the bug could be fixed using the following code:
change the code on line 58 to: L0 = domain_param.L electrode_thickness_change = self.param.n_electrodes_parallel * v_change * L0 or
After applying the above change, the new Figure 1 in the tutorial "Validating_mechanical_models_Enertech_DFN.ipynb” would be like this:
Steps to Reproduce
Perform the simulations which include the absolute thickness changes or run the code directly in the tutorial "Validating_mechanical_models_Enertech_DFN.ipynb”.
Relevant log output
No response
The text was updated successfully, but these errors were encountered:
PyBaMM Version
v23.5
Python Version
3.11
Describe the bug
Unable to obtain the right results of "{Domain} electrode thickness change [m]".
For example, in the tutorial "Validating_mechanical_models_Enertech_DFN.ipynb” , the simulation and experimental results of 'thickness change [m]' in Figure 1 do not match at all.
It could be caused by the absence of dimension for the variable "electrode_thickness_change" in the class BaseMechanics (base_mechanics.py). In reference to the previous version, the bug could be fixed using the following code:
L0 = domain_param.L
electrode_thickness_change = self.param.n_electrodes_parallel * v_change * L0
or
neg_thickness_change = variables["Negative electrode thickness change [m]"] * self.param.n.L
pos_thickness_change = variables["Positive electrode thickness change [m]"] * self.param.p.L
After applying the above change, the new Figure 1 in the tutorial "Validating_mechanical_models_Enertech_DFN.ipynb” would be like this:
Steps to Reproduce
Perform the simulations which include the absolute thickness changes or run the code directly in the tutorial "Validating_mechanical_models_Enertech_DFN.ipynb”.
Relevant log output
No response
The text was updated successfully, but these errors were encountered: