Skip to content

Make density diffusion in open boundaries settable#1043

Merged
LasNikas merged 18 commits intotrixi-framework:mainfrom
LasNikas:open-boundary-ddt
Apr 10, 2026
Merged

Make density diffusion in open boundaries settable#1043
LasNikas merged 18 commits intotrixi-framework:mainfrom
LasNikas:open-boundary-ddt

Conversation

@LasNikas
Copy link
Copy Markdown
Collaborator

@LasNikas LasNikas commented Jan 13, 2026

On main, the density diffusion is taken from the fluid system and cannot be set.
With this PR, one can take density diffusion independent of the fluid.
In addition, the same method of continuity_equation! is now called as for the AbstractFluidSystem
(I only had to copy the method because of the include order).
It also fixes a bug with the v_max calculation for ParticleShiftingTechnique.

Closes #1072.

@LasNikas LasNikas requested review from efaulhaber and svchb January 13, 2026 06:57
@LasNikas LasNikas self-assigned this Jan 13, 2026
@LasNikas LasNikas added bug Something isn't working enhancement New feature or request labels Jan 13, 2026
@LasNikas
Copy link
Copy Markdown
Collaborator Author

/run-gpu-tests

@codecov
Copy link
Copy Markdown

codecov bot commented Jan 13, 2026

Codecov Report

❌ Patch coverage is 84.00000% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 88.71%. Comparing base (3dc3c7b) to head (fac609b).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/schemes/boundary/open_boundary/system.jl 85.71% 2 Missing ⚠️
src/general/buffer.jl 83.33% 1 Missing ⚠️
...hemes/boundary/open_boundary/dynamical_pressure.jl 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1043   +/-   ##
=======================================
  Coverage   88.70%   88.71%           
=======================================
  Files         128      128           
  Lines        9746     9752    +6     
=======================================
+ Hits         8645     8651    +6     
  Misses       1101     1101           
Flag Coverage Δ
total 88.71% <84.00%> (+<0.01%) ⬆️
unit 67.00% <48.00%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.

@LasNikas LasNikas requested a review from efaulhaber February 27, 2026 15:38
Copy link
Copy Markdown
Member

@efaulhaber efaulhaber left a comment

Choose a reason for hiding this comment

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

Please don't force-push on a PR that is in review. This breaks the "changes since last review" feature (among other things).

@LasNikas LasNikas requested a review from efaulhaber March 9, 2026 14:23
svchb
svchb previously approved these changes Mar 19, 2026
@LasNikas
Copy link
Copy Markdown
Collaborator Author

/run-gpu-tests

@LasNikas LasNikas enabled auto-merge (squash) April 10, 2026 13:21
@efaulhaber
Copy link
Copy Markdown
Member

/run-gpu-tests

@LasNikas LasNikas merged commit 155f9f1 into trixi-framework:main Apr 10, 2026
25 of 26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Zhang open boundaries don't implement density diffusion correctly

3 participants