Repository navigation
Fix pressure mirroring and no-slip coupling for walls and structures - #1341
Merged
Merged
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1341 +/- ##
==========================================
+ Coverage 80.08% 81.78% +1.70%
==========================================
Files 147 147
Lines 11061 11107 +46
==========================================
+ Hits 8858 9084 +226
+ Misses 2203 2023 -180
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:
|
This was referenced Oct 2, 2026
efaulhaber
requested changes
Oct 30, 2026
Restores the formatting of three hunks in `dummy_particles.jl` that were identical to `main` before and fixes the formatting check of the tests.
The interaction of the buffer particles of `BoundaryModelDynamicalPressureZhang` read the pressure of the neighbor directly. For walls and structures with `PressureMirroring`, this is the unused pressure stored in the boundary model instead of the pressure of the buffer particle. Use `neighbor_pressure` like the fluid systems do. With EDAC, this also removes the pressure diffusion between the buffer particle and the mirrored wall.
…steps The sub-steps of the `SplitIntegrationCallback` call `update_quantities!` of the `TotalLagrangianSPHSystem`s for a semidiscretization without any fluid systems. Interpolating the no-slip wall velocity of `PressureMirroring` there reset the `wall_velocity` of the boundary model to zero after every sub-step, while `AdamiPressureExtrapolation` keeps it, since the split integration skips `update_boundary_interpolation!`. Interpolate the wall velocity of structures in `update_boundary_interpolation!` instead. This is not required for IISPH, which does not support structures. Walls still interpolate it in `update_quantities!` to provide it to the IISPH advection prediction.
…ctures The check was changed to reject `SummationDensity` for structures independent of the interaction matrix, which contradicts the PR description. Restore the previous behavior: only reject it if the structure interacts with a fluid in either direction. The boundary density of a structure is not used otherwise.
`all(f, nparticles(system))` only checked the last particle, because it iterates over the integer. Check the neighbor count of all particles.
Reuse the existing pair loops of the pressure extrapolation for the mirrored wall velocity instead of renaming and moving them. `boundary_pressure_extrapolation!` and `boundary_pressure_inner!` keep their names, so the tests that call them don't change. `PressureMirroring` only adds a velocity-only method of `boundary_pressure_inner!`, and `interpolate_wall_velocity!` calls the existing pair loops. This includes the buffer particles of `BoundaryModelDynamicalPressureZhang` like the pressure extrapolation does. The kernel weights are only allocated if a viscosity model is used. Make the new tests smaller: - Test the open-boundary interaction with the mirrored wall without a `Semidiscretization`, like the other tests in that file. - Replace the test that runs the `SplitIntegrationCallback` by a unit test that calls the update function of the callback for a semidiscretization without fluid. It is part of the existing no-slip tests, so `test/callbacks` is not changed. Revert the comment-only change in the IISPH interaction and shorten comments.
efaulhaber
requested changes
Nov 18, 2026
efaulhaber
approved these changes
Nov 18, 2026
svchb
enabled stacked auto-merge (squash)
November 18, 2026 15:40
efaulhaber
disabled stacked auto-merge
November 19, 2026 10:30
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.
Summary
update_quantities!and defer IISPH prediction until all quantities are ready, independent of system order.SummationDensityfor structure boundaries only when fluid–structure coupling is enabled.Validation
Affected suites and focused regressions pass locally on Julia 1.11.9 with bounds checking. Formatting and zero-allocation checks pass.
Follow-up #1361 extends no-slip interpolation to the other density calculators.