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

#2098 change averaging for SPMe+SR #2099

Merged
merged 16 commits into from
Jul 27, 2022
Merged

#2098 change averaging for SPMe+SR #2099

merged 16 commits into from
Jul 27, 2022

Conversation

brosaplanella
Copy link
Member

@brosaplanella brosaplanella commented Jun 9, 2022

Description

Changed the averaging for SEI, lithium plating and porosity submodels for SPM and SPMe. Wait to merge until the citation is updated.

Fixes #2098

Type of change

Please add a line in the relevant section of CHANGELOG.md to document the change (include PR #) - note reverse order of PR #s. If necessary, also add to the list of breaking changes.

  • New feature (non-breaking change which adds functionality)
  • Optimization (back-end change that speeds up the code)
  • Bug fix (non-breaking change which fixes an issue)

Key checklist:

  • No style issues: $ flake8
  • All tests pass: $ python run-tests.py --unit
  • The documentation builds: $ cd docs and then $ make clean; make html

You can run all three at once, using $ python run-tests.py --quick.

Further checks:

  • Code is commented, particularly in hard-to-understand areas
  • Tests added that prove fix is effective or that feature works

pybamm/CITATIONS.txt Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Jun 9, 2022

Codecov Report

Merging #2099 (d7edf6f) into develop (9856785) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff            @@
##           develop    #2099   +/-   ##
========================================
  Coverage    99.35%   99.35%           
========================================
  Files          347      347           
  Lines        19241    19251   +10     
========================================
+ Hits         19117    19127   +10     
  Misses         124      124           
Impacted Files Coverage Δ
...ls/LGM50_ORegan2022/aluminium_heat_capacity_CRC.py 100.00% <ø> (ø)
...cells/LGM50_ORegan2022/copper_heat_capacity_CRC.py 100.00% <ø> (ø)
...GM50_ORegan2022/copper_thermal_conductivity_CRC.py 100.00% <ø> (ø)
...graphite_ORegan2022/graphite_LGM50_ocp_Chen2020.py 100.00% <ø> (ø)
...lectrodes/nmc_ORegan2022/nmc_LGM50_ocp_Chen2020.py 100.00% <ø> (ø)
...amm/models/full_battery_models/lithium_ion/spme.py 100.00% <ø> (ø)
...Regan2022/graphite_LGM50_diffusivity_ORegan2022.py 100.00% <100.00%> (ø)
...electrolyte_exchange_current_density_ORegan2022.py 100.00% <100.00%> (ø)
...n2022/graphite_LGM50_entropic_change_ORegan2022.py 100.00% <100.00%> (ø)
...gan2022/graphite_LGM50_heat_capacity_ORegan2022.py 100.00% <100.00%> (ø)
... and 12 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9856785...d7edf6f. Read the comment docs.

@valentinsulzer
Copy link
Member

I have a few questions about this, let's go over it in the Monday meeting

@brosaplanella
Copy link
Member Author

I have a few questions about this, let's go over it in the Monday meeting

I will miss the next two meetings, but there's no rush on this so happy to chat about when I am back.

Copy link
Member

@valentinsulzer valentinsulzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just the change discussed in meeting

@brosaplanella
Copy link
Member Author

Note that I have updated ORegan2021 to ORegan2022 now that it has been published, hence all the files modified.

Copy link
Member

@valentinsulzer valentinsulzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, looks good!

* "x-average side reactions": str
Whether to average the side reactions (SEI growth, lithium plating and
the respective porosity change) over the x-axis in Single Particle
Models, can be "false" (default) or "true".
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't it be true for SPM? I think it won't make a difference to results, but will be faster

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I have fixed it now, take a look. It is a bit messy at the moment, hopefully will be clearer once we have derived the SPMe for cracks and loss of active material submodels.

Copy link
Member

@valentinsulzer valentinsulzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merge whenever ready

@brosaplanella brosaplanella merged commit dfe6a46 into develop Jul 27, 2022
@brosaplanella brosaplanella deleted the issue-2098-SPMe-SR branch July 27, 2022 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SPM(e) with SEI growth or lithium plating
2 participants