Skip to content

X full thermal - #3042

Merged
rtimms merged 5 commits into
developfrom
x-full-thermal
Aug 8, 2023
Merged

X full thermal#3042
rtimms merged 5 commits into
developfrom
x-full-thermal

Conversation

@rtimms

@rtimms rtimms commented Jun 16, 2023

Copy link
Copy Markdown
Contributor

Description

Update the "x-full" thermal model to account for edge/tab cooling and account for the current collector volumetric heat capacity. The existing "x-full" model solves for T(x) in the electrode/separator/electrode sandwich only and only accounts for cooling from the two large faces of a pouch cell.

Because of the way current collector domains are currently set up (only ever used in an x-averaged sense, with no distinction between negative and positive domains), we can't solve the full PDE for heat conservation across the neg. c.c./electrode/separator/electrode/pos. c.c. stack. In this PR we:

  1. Add ODEs for the lumped current collector temperatures, which account for cooling from the large face of the pouch, the edges, and the tabs, and enforce continuity of flux at the electrode/current collector interface.
  2. Adjust the boundary conditions for the PDE for the temperature in the electrode/separator/electrode sandwich to enforce continuity of temperature at the electrode/current collector interface
  3. Add bulk sink terms to account for cooling from the cell edges

TODO: update the thermal models notebook to reflect these changes.

Fixes # (issue)

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: $ pre-commit run (see CONTRIBUTING.md for how to set this up to run automatically when committing locally, in just two lines of code)
  • All tests pass: $ python run-tests.py --all
  • The documentation builds: $ python run-tests.py --doctest

You can run unit and doctests together 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

@rtimms
rtimms marked this pull request as draft June 16, 2023 09:56
@codecov

codecov Bot commented Jun 16, 2023

Copy link
Copy Markdown

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (ea7e00c) 99.71% compared to head (e76ca26) 99.71%.
Report is 1 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #3042   +/-   ##
========================================
  Coverage    99.71%   99.71%           
========================================
  Files          248      248           
  Lines        18824    18856   +32     
========================================
+ Hits         18770    18802   +32     
  Misses          54       54           
Files Changed Coverage Δ
pybamm/models/submodels/thermal/base_thermal.py 100.00% <ø> (ø)
pybamm/models/submodels/thermal/lumped.py 100.00% <ø> (ø)
...mal/pouch_cell/pouch_cell_2D_current_collectors.py 100.00% <ø> (ø)
...m/models/full_battery_models/base_battery_model.py 99.76% <100.00%> (ø)
pybamm/models/submodels/thermal/x_full.py 100.00% <100.00%> (ø)
pybamm/parameters/lead_acid_parameters.py 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rtimms
rtimms requested a review from brosaplanella August 4, 2023 14:54

@brosaplanella brosaplanella left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good, happy to merge once tests pass

@review-notebook-app

Copy link
Copy Markdown

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@rtimms
rtimms marked this pull request as ready for review August 8, 2023 21:43
@rtimms
rtimms merged commit 25bf455 into develop Aug 8, 2023
@rtimms
rtimms deleted the x-full-thermal branch August 8, 2023 22:46
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.

2 participants