Skip to content
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

[Bug]: Bug with the calculation of PE porosity in porosity sub-model #4292

Closed
srawat77 opened this issue Jul 24, 2024 · 3 comments
Closed

[Bug]: Bug with the calculation of PE porosity in porosity sub-model #4292

srawat77 opened this issue Jul 24, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@srawat77
Copy link

PyBaMM Version

Latest version

Python Version

3.10.12

Describe the bug

When I was using a combination of Prada + OKane'23 + Other literature parameters for the degradation modeling of LFP cells. The model options were:

'Model option': "{'SEI': 'interstitial-diffusion limited', 'SEI on cracks': 'true', 'lithium plating': 'none', 'particle mechanics': 'constant cracks', 'loss of active material': 'none', 'contact resistance': 'true', 'open-circuit potential': 'current sigmoid', 'SEI film resistance': 'distributed', 'SEI porosity change': 'true', 'thermal': 'lumped'}",

When the simulation was run, PE porosity in the first cycle itself (of degradation modeling) was updated by a constant factor (For Example If I input PE porosity =0.3, the updated porosity in the first cycle was magically changed to 0.6262776 i.e. a factor of 0.3262776).

I realized that reaction_driven_porosity sub-model (path: pybamm/models/submodels/porosity/reaction_driven_porosity.py) is updating PE_porosity by a constant factor of 0.3262776 and the value of this constant factor is dependent upon the choice of user inputs for PE such as lithium plating thickness, dead lithium thickness, total SEI on cracks thickness, electrode roughness ratio. If the user is not mindful of the choice of inputs, the parameter 'delta_eps_k' can be positive leading to an increase in PE porosity in the first cycle itself.

PE_POROSITY_BUG

Steps to Reproduce

Refer the image and description of the bug

Relevant log output

No response

@srawat77 srawat77 added the bug Something isn't working label Jul 24, 2024
@valentinsulzer
Copy link
Member

That's strange, L_tot should be zero initially since we subtract the initial SEI thicknesses and the initial plating and dead lithium thicknesses are zero. Can you plot each thickness vs time?

@valentinsulzer valentinsulzer added the needs-reply Needs further information from the author and may be closed if no response is received label Jul 24, 2024
@srawat77
Copy link
Author

Thank you for the prompt response, yes I will plot the thicknesses and post them here.

@github-actions github-actions bot removed the needs-reply Needs further information from the author and may be closed if no response is received label Jul 24, 2024
@valentinsulzer valentinsulzer added the needs-reply Needs further information from the author and may be closed if no response is received label Jul 25, 2024
Copy link
Contributor

It looks like there hasn't been a reply in 30 days, so I'm closing this issue.

@github-actions github-actions bot removed the needs-reply Needs further information from the author and may be closed if no response is received label Aug 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants