Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1277 +/- ##
==========================================
+ Coverage 96.05% 96.07% +0.01%
==========================================
Files 57 57
Lines 5069 5068 -1
==========================================
Hits 4869 4869
+ Misses 200 199 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Open
RemDelaporteMathurin
approved these changes
Oct 5, 2026
RemDelaporteMathurin
left a comment
Collaborator
There was a problem hiding this comment.
Thanks for this @hhy2022, do you plan to do more with this?
Contributor
Author
|
Thanks! I was planning to also fix the issue with the weakly enforced |
hhy2022
marked this pull request as ready for review
October 5, 2026 15:37
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Summary
Gas enclosures can now be used on cylindrical and spherical meshes. The surface term of the pressure balance is multiplied by
CoordinateSystem.integration_weight(added in #1264), and theNotImplementedErrorraised for non-cartesian meshes is removed.The value given for each surface in
Enclosure.surfacesis the extent that the mesh and coordinate system cannot provide:Cartesian behaviour is unchanged.
Related Issues
Fixes #1271
Motivation and Context
Type of Change
Testing
pytest)Code Quality Checklist
ruff format .)ruff check .)Documentation
Breaking Changes
Screenshots/Examples
Additional Notes
Known limitation, not addressed here. With a weakly enforced
HenrysBC/SievertsBCcoupled to an enclosure, conservation is exact in cartesian but only approximate on non-cartesian meshes (1D, 60 cells):The drift comes from the symmetry term of the Nitsche formulation in
dirichlet_bc.py, which usesgrad(v). Replacing it withr * grad(v / r)in a local experiment restored exact conservation in cylindrical. This affects every weakly enforced Dirichlet BC on non-cartesian meshes, not only enclosures.