Skip to content

Add the GroupedDFN with flux boundary conditions - #977

Draft
NicolaCourtier wants to merge 24 commits into
developfrom
grouped-dfn-concatenations
Draft

NicolaCourtier wants to merge 24 commits into
developfrom
grouped-dfn-concatenations

Conversation

@NicolaCourtier

@NicolaCourtier NicolaCourtier commented Aug 19, 2026 •

Copy link
Copy Markdown
Member

Description

Add the GroupedDFN and update the other lithium_ion models to use conservative "Flux" boundary conditions. Also, enable the electrolyte diffusivity to be a function.

⚠️ Temporarily using my fork of PyBaMM until the resolution of PyBaMM issue 5700. Requires PyBaMM PR 6079.

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: $ pre-commit run or $ nox -s pre-commit (see CONTRIBUTING.md for how to set this up to run automatically when committing locally, in just two lines of code)
  • All tests pass: nox -s tests
  • The documentation builds: nox -s doctest
  • Code is commented for hard-to-understand areas
  • Tests added that prove fix is effective or that feature works

@codecov

codecov Bot commented Aug 19, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 99.22179% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 93.56%. Comparing base (64c6ca0) to head (95045a0).
⚠️ Report is 19 commits behind head on develop.

Files with missing lines Patch % Lines
pybop/models/lithium_ion/grouped_dfn.py 99.56% 1 Missing ⚠️
pybop/pybamm/utils.py 50.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #977      +/-   ##
===========================================
+ Coverage    93.32%   93.56%   +0.24%     
===========================================
  Files           84       85       +1     
  Lines         6842     7200     +358     
===========================================
+ Hits          6385     6737     +352     
- Misses         457      463       +6     

☔ View full report in Codecov by Harness.
📢 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.

This branch has not been deployed

No deployments
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.

1 participant