Skip to content

Support hydrodynamic particle subsets in TLSPH - #1324

Draft
svchb wants to merge 2 commits into
tlsph-boundary-accelerationfrom
hydrodynamic-particle-subsets
Draft

svchb wants to merge 2 commits into
tlsph-boundary-accelerationfrom
hydrodynamic-particle-subsets

Conversation

@svchb

@svchb svchb commented Sep 22, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • add hydrodynamic_boundary_particles to TotalLagrangianSPHSystem, defaulting to all particles while allowing explicit subsets or no hydrodynamic particles
  • apply the selection consistently to fluid-structure forces, density and pressure updates, corrections, EDAC pressure averaging, shifting, boundary extrapolation, and interpolation
  • preserve all particles in the TLSPH discretization and carry the mask through clamped-particle reordering and GPU adaptation

Testing

  • test/systems/tlsph_system.jl (66 tests)
  • test/schemes/structure/total_lagrangian_sph/total_lagrangian_sph.jl (106 tests, including 55 subset tests)
  • focused correction coupling tests (162 tests)
  • focused CUDA subset tests on an NVIDIA RTX 5090 (14 tests; WCSPH and EDAC CPU/GPU agreement)
  • git diff --check

The broader correction and CUDA suites still encounter unrelated failures already present in the stacked base, primarily legacy correction= calls and the existing rigid-body GPU path.

Stack

@codecov

codecov Bot commented Sep 22, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 96.62162% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 90.18%. Comparing base (1eba6db) to head (92870bb).

Files with missing lines Patch % Lines
test/examples/gpu.jl 0.00% 4 Missing ⚠️
src/general/abstract_system.jl 0.00% 1 Missing ⚠️
Additional details and impacted files
@@                       Coverage Diff                       @@
##           tlsph-boundary-acceleration    #1324      +/-   ##
===============================================================
+ Coverage                        80.34%   90.18%   +9.84%     
===============================================================
  Files                              156      157       +1     
  Lines                            13131    13297     +166     
===============================================================
+ Hits                             10550    11992    +1442     
+ Misses                            2581     1305    -1276     
Flag Coverage Δ
total 90.19% <96.62%> (?)
unit 81.00% <96.62%> (+0.65%) ⬆️

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