Open
Conversation
…ect) Validates clump/multisphere behavior by simulating size-driven segregation of single spheres vs dimer clumps in a vertically shaken box. Under vibration at Γ ≈ 3.6, dimers (larger effective size) segregate upward due to the Brazil nut effect. Includes: - main.rs: Custom system tracking COM heights per species - config.toml: 75 spheres + 75 dimers, oscillating floor (A=2mm, f=15Hz) - validate.py: PASS/FAIL checks (S > 0 at steady state) - plot.py: Segregation index and COM trajectory plots - README.md: Physics description, run instructions, validation criteria Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The DemConfig struct uses #[serde(deny_unknown_fields)], which caused a parse error when clump definitions were placed under [dem.clumps]. Move clump config to its own top-level [clump] TOML section with [[clump.definitions]] array-of-tables syntax. 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_multisphere_segregation/benchmark validating clump/multisphere behaviorFiles
main.rs— Simulation with custommeasure_segregationsystemconfig.toml— Fully documented TOML (softened glass, A=2mm, f=15Hz oscillating floor)validate.py— 5 PASS/FAIL checks (finite data, positive z, S > 0, S > 0.005, positive trend)plot.py— Segregation index vs time + COM trajectories (matplotlib, PNG output)README.md— Physics description, vibration parameters, run instructionsTest plan
cargo build --no-default-features --example bench_multisphere_segregationcompilescargo clippy --no-default-features --example bench_multisphere_segregation— no warnings from example codecargo test --no-default-features -p dem_clump— all 12 tests passvalidate.pypasses (requires ~2-3 min in release mode)🤖 Generated with Claude Code