Skip to content

Conversation

aabills
Copy link
Contributor

@aabills aabills commented Jul 9, 2025

Description

Allows for constant extrapolation of boundary values (i.e. using the value of the last node) and allows the user to override the spatial method's extrapolation method. This is useful for geometric input parameters, if one wants to calculate the harmonic mean of the diffusivity at the interface. A follow up PR (separating because they are pretty unrelated) will finish this capability by creating a node in the expression tree to retrieve the mesh size at the boundary.

Fixes # (issue)

Type of change

Please add a line in the relevant section of CHANGELOG.md to document the change (include PR #)

Important checks:

Please confirm the following before marking the PR as ready for review:

  • No style issues: nox -s pre-commit
  • All tests pass: nox -s tests
  • The documentation builds: nox -s doctests
  • Code is commented for hard-to-understand areas
  • Tests added that prove fix is effective or that feature works

@aabills aabills requested a review from MarcBerliner July 9, 2025 19:33
@aabills aabills requested a review from a team as a code owner July 9, 2025 19:33
Copy link

codecov bot commented Jul 9, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.10%. Comparing base (f04a1f8) to head (54916e2).
Report is 1 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #5107   +/-   ##
========================================
  Coverage    99.09%   99.10%           
========================================
  Files          306      306           
  Lines        23659    23671   +12     
========================================
+ Hits         23446    23458   +12     
  Misses         213      213           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Member

@MarcBerliner MarcBerliner left a comment

Choose a reason for hiding this comment

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

Thanks!

@aabills aabills merged commit 56450f8 into pybamm-team:develop Jul 9, 2025
21 checks passed
@aabills aabills mentioned this pull request Jul 9, 2025
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