1536 ib neighborhood radius automatic size checking - #1736
1536 ib neighborhood radius automatic size checking#1736danieljvickers wants to merge 10 commits into
Conversation
…a bounds check to get the temporary values
|
Claude Code Review Head SHA: 2550966 Files changed:
Findings:
|
… github.com:danieljvickers/MFC into 1536-ib_neighborhood_radius-automatic-size-checking
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1736 +/- ##
==========================================
+ Coverage 61.59% 61.62% +0.02%
==========================================
Files 84 84
Lines 21493 21518 +25
Branches 3176 3180 +4
==========================================
+ Hits 13239 13260 +21
Misses 6078 6078
- Partials 2176 2180 +4 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Addressed AI comments. Comments 1 and 3 are valid. Correction 3 is not a concern on its own, but it helped me notice a nearby and more insidious issue with taking a floor that should have really been a ceiling. The airfoil response is sound. The STL concern is nonsense, as the flags are for two different STL models. We should unify these, but it is still nonsense as written. I have ignored it.. |
Description
Immersed Boundary cases have one extra layer of tediousness due to the IB neighborhood radius needing ot be recomputed based upon the number of ranks. This causes significant problems when attempting to run the same case on CPUs vs. GPUs (because one may use more CPUs for the same case) and in strong scaling scenarios.
To address this, this PR allows users to let MFC automatically compute the IB Neighborhood radius. The code computes the largest width required for any IB in the simulation and the largest processor width. These are used to approximate a size, with an additional 10% safety factor on the neighborhood size for safety.
This is not ideal, as it does not consider things like the orientation of the IB for reducing the size further. If particle forces are desired, it is always recommended to compute the IB neighborhood radius that one desires. However, for uniform distributions of small IBs, this will often produce optimal results with no modification to the case file.
To enable automatic radius checking, just set
ib_neighborhood_radius: 0in the case file, which is also the new default.Closes #1536
Type of change (delete unused ones)
Testing
How did you test your changes?
2D ranks on GNU for increasing IB size.
Checklist
Check these like this
[x]to indicate which of the below applies.See the developer guide for full coding standards.
GPU changes (expand if you modified
src/simulation/)AI code reviews
Reviews are not retriggered automatically. To request a review, comment on the PR:
@claude full review— Claude full review (also triggers on PR open/reopen/ready)claude-full-review— Claude full review via label