Repository navigation
Integrate collisions - #2171
Integrate collisions#2171danieljvickers wants to merge 20 commits into
Conversation
|
Claude Code Review Head SHA: 50a7055 Files changed:
Findings:
|
… boundaries while I was at it.
…into integrate-collisions
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #2171 +/- ##
==========================================
+ Coverage 65.75% 65.88% +0.12%
==========================================
Files 111 111
Lines 30480 30669 +189
Branches 4663 4709 +46
==========================================
+ Hits 20041 20205 +164
+ Misses 6687 6660 -27
- Partials 3752 3804 +52 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Review of the full diff, read against the helpers it relies on in master. I did not build or run it. CI is green (49 pass). What it does
The IB path looks like a faithful refactor: same ownership test, same force and torque formulas, same periodic-image decoding. The halo logic also holds up, including across a periodic seam between ranks (received copies are shifted by Before merging
Minor
SummaryCareful code and a clean refactor. I'd like a four-way golden test and an answer on item 2 before merging; items 3 and 5 are small fixes. Review written with Claude Code (AI-assisted). |
|
@sbryngelson I have addressed all of the comments that I think need addressing. Comments accepted
Comments on unaddressed changes
I am sure I forgot to mention something, but I went through them yesterday. |
Lines of Code
|
|
Thanks for this. I read the diff for the GPU pitfalls in docs/documentation/gpuParallelization.md (Silent-Failure
AI-assisted (Claude Code). |
Redo of a previous branch that suffered from compiler errors. This is a more stable version of the same refactor where I have expanded the collision module to include EL particles. This was done by taking the tact of separating the collision subroutines into kernels, which each collision type having its own wrapper kernel. This exposes some common functionality, but does require manual selection of collision kernels for a given type. I am working on way sot alleviate this before merge.
Examples
Head on Collision
Compiler: NVHPC/25.9
Hardware: Nvidia A100
In this example, I perform a head-on collision with an arbitrarily high stokes number, so that the flow does not meaningfully impact the particle motion. I place two particles identically; one stationary and the other moving towards a collision. This test was performed with IBM and EL particles calling the same collision parameters. The difference in final positions of both particles agree to$$10^{-7}$$ . The bottom panel plots the velocity of all 4 particles shown over time. You only see two lines because the EL and IBM curves are plotted on top of one another.
head_on_collision.mp4