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 1322 thermal parameters dependent temperature #1323

Conversation

brosaplanella
Copy link
Member

@brosaplanella brosaplanella commented Jan 11, 2021

Description

The thermal parameters (density, heat capacity and conductivity) can now be functions of temperature.

Fixes #1322

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

@codecov
Copy link

codecov bot commented Jan 11, 2021

Codecov Report

Merging #1323 (7567868) into develop (85b3a20) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop    #1323   +/-   ##
========================================
  Coverage    98.12%   98.12%           
========================================
  Files          272      272           
  Lines        15380    15431   +51     
========================================
+ Hits         15091    15142   +51     
  Misses         289      289           
Impacted Files Coverage Δ
pybamm/models/submodels/thermal/lumped.py 100.00% <ø> (ø)
...mal/pouch_cell/pouch_cell_1D_current_collectors.py 100.00% <ø> (ø)
...mal/pouch_cell/pouch_cell_2D_current_collectors.py 100.00% <ø> (ø)
pybamm/models/submodels/thermal/x_full.py 100.00% <100.00%> (ø)
pybamm/parameters/lead_acid_parameters.py 100.00% <100.00%> (ø)
pybamm/parameters/lithium_ion_parameters.py 100.00% <100.00%> (ø)
pybamm/parameters/thermal_parameters.py 100.00% <100.00%> (ø)

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 85b3a20...7567868. 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.

Thanks @brosaplanella , just a couple of things to change / clarify

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.

Each dimensionless function should calculate T_dim from T and then pass this to the dimensional function

pybamm/parameters/lithium_ion_parameters.py Show resolved Hide resolved
@@ -179,5 +235,45 @@ def T_amb(self, t):
"Dimensionless ambient temperature"
return (self.T_amb_dim(t) - self.T_ref) / self.Delta_T

def rho_cn(self, T):
"Dimensionless negative current collector density"
return self.rho_cn_dim(T) * self.c_p_cn_dim(T) / self.rho_eff_dim(self.T_ref)
Copy link
Member

Choose a reason for hiding this comment

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

need to make T dimensional here and pass T_dim to the functions

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, all good now

@brosaplanella brosaplanella merged commit 77e0767 into pybamm-team:develop Jan 13, 2021
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.

Make thermal parameters a function of temperature
2 participants