Skip to content

Correct the velocity after particle shifting in the callback - #1399

Open
RubberLanding wants to merge 1 commit into
trixi-framework:mainfrom
RubberLanding:pst-correct-properties
Open

RubberLanding wants to merge 1 commit into
trixi-framework:mainfrom
RubberLanding:pst-correct-properties

Conversation

@RubberLanding

Copy link
Copy Markdown

With integrate_shifting_velocity=false, the UpdateCallback shifts the particles but keeps their properties. Add the keyword argument correct_properties to ParticleShiftingTechnique to correct the velocity with a first-order Taylor expansion. Free-slip walls don't contribute to the velocity gradient. Density and pressure are not corrected yet.

With `integrate_shifting_velocity=false`, the `UpdateCallback` shifts the
particles but keeps their properties. Add the keyword argument
`correct_properties` to `ParticleShiftingTechnique` to correct the velocity
with a first-order Taylor expansion. Free-slip walls don't contribute to the
velocity gradient. Density and pressure are not corrected yet.
@codecov

codecov Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 97.43590% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 91.81%. Comparing base (2ad153a) to head (06bf538).

Files with missing lines Patch % Lines
src/schemes/fluid/shifting_techniques.jl 95.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1399      +/-   ##
==========================================
+ Coverage   91.77%   91.81%   +0.03%     
==========================================
  Files         148      149       +1     
  Lines       11776    11852      +76     
==========================================
+ Hits        10808    10882      +74     
- Misses        968      970       +2     
Flag Coverage Δ
total 91.81% <97.43%> (+0.03%) ⬆️
unit 82.70% <96.15%> (+0.45%) ⬆️

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

☔ 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