Add lunar regolith JKR adhesion angle of repose benchmark#58
Open
Add lunar regolith JKR adhesion angle of repose benchmark#58
Conversation
Column-collapse benchmark validating JKR adhesion in reduced gravity.
Particles settle in a narrow column, then walls are removed and the pile
collapses. The final pile profile depends on friction, JKR surface energy,
and gravity (Bond number scaling).
Includes:
- main.rs: Two-stage simulation (settling + collapse) with wall removal
- config.toml: Default config for lunar gravity with moderate adhesion
- run_benchmark.py: Parametric study over {Earth,Moon} x {0,5,20,50 mJ/m^2}
- validate.py: Checks angle trends vs adhesion and gravity
- plot.py: Publication plots of angle vs surface energy and Bond number
- README.md: Physics documentation and usage instructions
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The column collapse approach did not produce a meaningful angle of repose —
non-cohesive particles just spread flat and hit the box walls. This rewrite:
- Uses rate-based insertion (10 particles/500 steps) from a narrow slot
above center, forming a natural conical pile
- Uses shrink-wrap boundary in z to track pile height
- Measures angle by binning particles by |x|, finding surface heights,
and fitting a line (atan of |slope|)
- Simplifies main.rs (no stage transitions or wall removal needed)
- Keeps same parametric study: {Earth, Moon} × {0, 5, 20, 50 mJ/m²}
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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
examples/bench_lunar_regolith/validating JKR adhesion under reduced gravityTest plan
cargo build --no-default-features --example bench_lunar_regolithcompilespython run_benchmark.pypython validate.py(angle increases with adhesion, steeper on Moon)🤖 Generated with Claude Code