Repository navigation
Add option to update DensityDiffusionAntuono between time steps - #1301
efaulhaber wants to merge 9 commits into
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1301 +/- ##
==========================================
+ Coverage 90.50% 90.51% +0.01%
==========================================
Files 141 142 +1
Lines 11409 11433 +24
==========================================
+ Hits 10326 10349 +23
- Misses 1083 1084 +1
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:
|
efaulhaber
left a comment
There was a problem hiding this comment.
Codex Review
The patch adds an option to update Antuono density-diffusion data between time steps through UpdateCallback, including documentation, tests, and initialized caches.
This is an AI-generated code review. Please verify the findings and summary before acting on them.
Review generated by codex-pr-review
PR #1301 review: callback-updated Antuono density diffusionRecommendation: Request changes. The new Reviewed PR #1301 at P1 — Sorting can assign cached gradients to the wrong particles
I reproduced this with Requested change: Apply the particle permutation to the frozen gradient cache, or reject the combination with a clear error. If supported, test a sort that occurs between refreshes and verify that the density RHS is unchanged after undoing the permutation. P2 — Test that the gradient is held and refreshed on scheduleThe vortex-street regression is a useful integration smoke test, but its final nonzero-gradient assertion does not establish when the gradient was updated or whether it is correct. A valid gradient can be zero, and Requested change: Use a small fixture with a changing, nonuniform density field and P2 — Document the numerical tradeoff and callback orderWhat is held fixed. In frozen mode, the diffusion term still uses the current stage’s densities and positions, but it uses the renormalized gradients from the latest refresh. In a fixed-step, 20-particle WCSPH probe with Initialization order. Callbacks that evaluate the RHS at initialization can read the cache before Suggested docstring wording:
The changelog should name |
|
This strategy is explained in Equation (4.29) of Antuono et al., "Numerical diffusive terms in weakly-compressible SPH schemes" (2012).