Skip to content

Implement the Particle Shifting Technique (PST)#735

Merged
svchb merged 13 commits intotrixi-framework:mainfrom
efaulhaber:particle-shifting
Apr 10, 2025
Merged

Implement the Particle Shifting Technique (PST)#735
svchb merged 13 commits intotrixi-framework:mainfrom
efaulhaber:particle-shifting

Conversation

@efaulhaber
Copy link
Member

@efaulhaber efaulhaber commented Mar 15, 2025

Implements the Particle Shifting Technique by Sun et al. 2017 (10.1016/j.cma.2016.10.028).

grafik

Note that the strength of the shifting is directly scaled by the smoothing length.
Low Mach numbers (high speed of sound) stabilize the simulation, but high Mach numbers make the simulation very sensitive to the scaling factor for the shifting.
For Mach 0.2, we get this with the Wendland C2 kernel:
grafik

For the Schoenberg Cubic Spline kernel, everything looks alright:
grafik

Reducing the shifting by a factor of 2 yields this for the Wendland:
grafik

and this for the Cubic Spline Kernel:
grafik

So it is evident that our scaling for the Wendland kernels is incorrect and should be changed to be half of the current smoothing length.

Note that this is without shifting:
grafik

@codecov
Copy link

codecov bot commented Mar 15, 2025

Codecov Report

Attention: Patch coverage is 0% with 67 lines in your changes missing coverage. Please review.

Project coverage is 69.38%. Comparing base (9fb0305) to head (d333804).

Files with missing lines Patch % Lines
src/callbacks/particle_shifting.jl 0.00% 56 Missing ⚠️
src/schemes/fluid/fluid.jl 0.00% 6 Missing ⚠️
src/visualization/recipes_plots.jl 0.00% 2 Missing ⚠️
src/visualization/write2vtk.jl 0.00% 2 Missing ⚠️
src/general/system.jl 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #735      +/-   ##
==========================================
- Coverage   70.11%   69.38%   -0.73%     
==========================================
  Files          99      100       +1     
  Lines        6350     6416      +66     
==========================================
  Hits         4452     4452              
- Misses       1898     1964      +66     
Flag Coverage Δ
unit 69.38% <0.00%> (-0.73%) ⬇️

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.

@efaulhaber efaulhaber self-assigned this Apr 9, 2025
@efaulhaber efaulhaber added the enhancement New feature or request label Apr 9, 2025
@efaulhaber efaulhaber changed the title Prototype for particle shifting technique (PST) Implement the Particle Shifting Technique (PST) Apr 9, 2025
@efaulhaber
Copy link
Member Author

It doesn't really make sense to add a test at this point. I will add a vortex street example later, which will use PST.

@efaulhaber efaulhaber marked this pull request as ready for review April 9, 2025 10:02
@efaulhaber efaulhaber requested review from LasNikas, Copilot and svchb April 9, 2025 10:02
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot wasn't able to review any files in this pull request.

Files not reviewed (7)
  • src/TrixiParticles.jl: Language not supported
  • src/callbacks/callbacks.jl: Language not supported
  • src/callbacks/particle_shifting.jl: Language not supported
  • src/general/system.jl: Language not supported
  • src/schemes/fluid/fluid.jl: Language not supported
  • src/visualization/recipes_plots.jl: Language not supported
  • src/visualization/write2vtk.jl: Language not supported

@efaulhaber efaulhaber requested a review from LasNikas April 10, 2025 07:56
@svchb svchb enabled auto-merge (squash) April 10, 2025 10:18
@svchb
Copy link
Collaborator

svchb commented Apr 10, 2025

/run-gpu-tests

@svchb svchb merged commit 08b335a into trixi-framework:main Apr 10, 2025
13 of 16 checks passed
@efaulhaber efaulhaber deleted the particle-shifting branch April 10, 2025 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments