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

Issue 1594 add O'Regan 2021 parameters #1598

Merged

Conversation

brosaplanella
Copy link
Sponsor Member

@brosaplanella brosaplanella commented Aug 9, 2021

Description

Added LG M50 parameter set from O'Regan 2021 (submitted).

Fixes #1594

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)

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

@brosaplanella brosaplanella marked this pull request as draft August 9, 2021 09:33
@codecov
Copy link

codecov bot commented Aug 9, 2021

Codecov Report

Merging #1598 (b1b4c86) into develop (00a9357) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##           develop    #1598    +/-   ##
=========================================
  Coverage    99.26%   99.26%            
=========================================
  Files          326      343    +17     
  Lines        18529    18677   +148     
=========================================
+ Hits         18392    18540   +148     
  Misses         137      137            
Impacted Files Coverage Δ
...ls/LGM50_ORegan2021/aluminium_heat_capacity_CRC.py 100.00% <100.00%> (ø)
...cells/LGM50_ORegan2021/copper_heat_capacity_CRC.py 100.00% <100.00%> (ø)
...GM50_ORegan2021/copper_thermal_conductivity_CRC.py 100.00% <100.00%> (ø)
...Regan2021/graphite_LGM50_diffusivity_ORegan2021.py 100.00% <100.00%> (ø)
...electrolyte_exchange_current_density_ORegan2021.py 100.00% <100.00%> (ø)
...n2021/graphite_LGM50_entropic_change_ORegan2021.py 100.00% <100.00%> (ø)
...gan2021/graphite_LGM50_heat_capacity_ORegan2021.py 100.00% <100.00%> (ø)
...graphite_ORegan2021/graphite_LGM50_ocp_Chen2020.py 100.00% <100.00%> (ø)
.../graphite_LGM50_thermal_conductivity_ORegan2021.py 100.00% <100.00%> (ø)
...nmc_ORegan2021/nmc_LGM50_diffusivity_ORegan2021.py 100.00% <100.00%> (ø)
... and 25 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 00a9357...b1b4c86. Read the comment docs.

@brosaplanella brosaplanella marked this pull request as ready for review August 10, 2021 20:29
Copy link
Contributor

@rtimms rtimms left a comment

Choose a reason for hiding this comment

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

great, thanks @brosaplanella !

Copy link
Contributor

@TomTranter TomTranter left a comment

Choose a reason for hiding this comment

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

As you need to change to quite a fine mesh for this set to give decent results it might be work printing a warning when using it or maybe include an example. Also I'm getting the kernel problem again where I needed to add empty inits to the parameter subfolders so I can run a script twice without restarting the kernel but I checked them all and can't see any missing. Very strange

@brosaplanella
Copy link
Sponsor Member Author

As you need to change to quite a fine mesh for this set to give decent results it might be work printing a warning when using it or maybe include an example.

I am happy either way, but the example will take a few minutes to run so that will make GitHub actions even slower. Where would it be best to include the warning?

Also I'm getting the kernel problem again where I needed to add empty inits to the parameter subfolders so I can run a script twice without restarting the kernel but I checked them all and can't see any missing. Very strange

Where do you get this? I mean, is it related to how the parameters are implemented or is it a separate issue?

@TomTranter
Copy link
Contributor

It's my guess that it relates to the parameters as this is what it was last time. #1479 I think a notebook example would be best - maybe just run it for a few hundred seconds

@valentinsulzer
Copy link
Member

If the parameter set is graphite + SiOx don't you need #1433 ?

@brosaplanella
Copy link
Sponsor Member Author

If the parameter set is graphite + SiOx don't you need #1433 ?

No, because the parameterization is for a DFN model with one component, so the parameters capture the complexity of the two phases. When #1433 is merged, we will need separate parameter sets (OCVs, diffusivities, etc) for each one independently.

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 but seems like this PR changes the test time from 1h to 2h, can we make it quicker? https://github.com/brosaplanella/PyBaMM/actions

@brosaplanella
Copy link
Sponsor Member Author

brosaplanella commented Aug 19, 2021

Looks good but seems like this PR changes the test time from 1h to 2h, can we make it quicker? https://github.com/brosaplanella/PyBaMM/actions

Is it from this PR? Because I have only added 2 tests (one is citation where the addition is negligible and the other runs in 6s in my laptop). For the notebook I can shorten the solving time (or even comment it out) but that was 20s in my laptop. Also, checking the Actions in this repo I have noticed that other tests took nearly 2h too (e.g. this one). Is there a way of knowing where the bottleneck is?

Update: I shortened the solving time in the example notebook anyway, but when I pushed the test time went back to normal for all tests (even unit tests). I also merged develop which I think included the big removal of tests. Anyway, it now runs in a reasonable amount of time.

@valentinsulzer
Copy link
Member

@TomTranter needs to approve before we can merge

@brosaplanella brosaplanella merged commit e3e50ef into pybamm-team:develop Aug 26, 2021
@brosaplanella brosaplanella deleted the issue-1594-add-ORegan-2021 branch August 26, 2021 10:18
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.

Add LG M50 thermal parameter set from O'Regan 2021
4 participants