Skip to content

Add Hertz contact rebound benchmark#56

Open
SueHeir wants to merge 1 commit intomainfrom
researcher/bench-hertz-rebound
Open

Add Hertz contact rebound benchmark#56
SueHeir wants to merge 1 commit intomainfrom
researcher/bench-hertz-rebound

Conversation

@SueHeir
Copy link
Copy Markdown
Owner

@SueHeir SueHeir commented Mar 17, 2026

Summary

  • Adds examples/bench_hertz_rebound/ — a quantitative benchmark that validates Hertzian contact mechanics by dropping a single sphere onto a rigid flat wall
  • Sweeps 4 impact velocities (0.1, 0.5, 1.0, 2.0 m/s) × 4 COR values (0.5, 0.7, 0.9, 0.95) = 16 test cases
  • Validates coefficient of restitution, contact duration (vs Hertz theory t_c = 2.87(m²/RE*²v₀)^{1/5}), and peak overlap

Test plan

  • cargo build --no-default-features --example bench_hertz_rebound passes
  • cargo test --no-default-features passes (exit 0)
  • Single-case run produces correct rebound results
  • Full parameter sweep (16 cases) completes successfully
  • validate.py passes: 49/49 checks pass
  • COR ≤ 3% error for COR ≥ 0.7; ≤ 12% for COR < 0.7 (known Hertz nonlinearity)
  • Contact duration ≤ 10% error vs analytical Hertz prediction
  • Peak overlap within tolerance of elastic Hertz prediction

🤖 Generated with Claude Code

Validates Hertzian contact mechanics by dropping a single sphere onto a
rigid flat wall and measuring COR, contact duration, and peak overlap
against analytical predictions.

Sweeps 4 impact velocities (0.1-2.0 m/s) x 4 COR values (0.5-0.95) =
16 test cases. All pass validation: COR within 3% for COR>=0.7, contact
duration within 10% of Hertz theory, peak overlap within 10-25%
(depending on damping level).

Includes: main.rs, config.toml, run_sweep.py, validate.py, plot.py,
README.md with full documentation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant