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 678 eleclyte temp depend #698

Merged
merged 13 commits into from
Nov 1, 2019
Merged

Conversation

rtimms
Copy link
Contributor

@rtimms rtimms commented Oct 31, 2019

Description

Adds missing temperature dependence in electrolyte and interface submodels

Fixes #678

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 #

  • 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

@codecov
Copy link

codecov bot commented Oct 31, 2019

Codecov Report

Merging #698 into master will decrease coverage by 0.02%.
The diff coverage is 96.26%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #698      +/-   ##
==========================================
- Coverage   98.52%   98.49%   -0.03%     
==========================================
  Files         175      175              
  Lines        8861     8929      +68     
==========================================
+ Hits         8730     8795      +65     
- Misses        131      134       +3
Impacted Files Coverage Δ
...odels/electrolyte/base_electrolyte_conductivity.py 98.48% <ø> (ø) ⬆️
...l/conductivity/full_stefan_maxwell_conductivity.py 96.66% <ø> (ø) ⬆️
...dels/thermal/x_full/x_full_no_current_collector.py 100% <ø> (ø) ⬆️
...rmal/xyz_lumped/xyz_lumped_2D_current_collector.py 100% <ø> (ø) ⬆️
...rmal/xyz_lumped/xyz_lumped_1D_current_collector.py 100% <ø> (ø) ⬆️
...nterface/inverse_kinetics/inverse_butler_volmer.py 100% <100%> (ø) ⬆️
...models/submodels/thermal/x_lumped/base_x_lumped.py 100% <100%> (ø) ⬆️
...nterface/inverse_kinetics/base_inverse_kinetics.py 96.96% <100%> (+0.3%) ⬆️
pybamm/parameters/thermal_parameters.py 100% <100%> (ø) ⬆️
...thermal/x_lumped/x_lumped_no_current_collectors.py 100% <100%> (ø) ⬆️
... and 15 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 3a94d94...379c957. Read the comment docs.

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 great, thanks @rtimms !

@@ -250,15 +250,15 @@ def _get_domain_current_variables(self, i_e, domain=None):

variables = {
domain + " electrolyte current density": i_e,
domain + " electrolyte current density [V]": i_e * i_typ,
Copy link
Member

Choose a reason for hiding this comment

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

lol how did this happen

"""
Computes the y-z average by integration over y and z
In this case this is just equal to the input variable
"""
Copy link
Member

Choose a reason for hiding this comment

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

my man fixing comment formatting ⭐️

Copy link
Contributor

@Scottmar93 Scottmar93 left a comment

Choose a reason for hiding this comment

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

All looks good to me :)

@rtimms rtimms merged commit 9746b02 into master Nov 1, 2019
@rtimms rtimms deleted the issue-678-eleclyte-temp-depend branch November 1, 2019 15:34
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.

Electrolyte thermal dependence
3 participants