SunaDEM & granularCPU · f64
DEM normal contact: Hooke and Hertz head-on impact against theory
Suna reproduces Hooke and Hertz head-on sphere impacts against theory: Hertz contact time within 9.3e-5 (gate 5e-3), peak overlap within 3.9e-7, restitution independent of impact speed to 4e-15 (gate 1e-6); Hooke restitution within 1.7e-5 (gate 1e-4). CPU, f64, 2026-11-15.

- Reference
- K. L. Johnson
- Hardware
- AMD EPYC Genoa server CPU, 4 vCPU
- Solver version
- Suna 0.1.0+941d3379
- Grid
- Glass spheres of 5 mm radius, 4000 to 20000 steps per contact
Results
Figures from the run.
Exit-time error vs steps with the bound

Metrics and gates
Each gate is fixed before the run. The bar shows how much of its allowance a metric uses: the line marks the gate, so a bar past it fails. A metric without a gate is reported for context and does not decide the verdict.
| Metric | Value | Gate | Allowance used | Result |
|---|---|---|---|---|
| Hooke restitution, largest absolute error | 1.71e-5 | |x| ≤ 1e-4 | 17 % | ✓ pass |
| Hooke contact time, largest relative error | 2.15e-5 | |x| ≤ 1e-4 | 21 % | ✓ pass |
| Hertz contact time, relative errorkey | 9.27e-5 | |x| ≤ 0.005 | 2 % | ✓ pass |
| Hertz peak overlap, relative error | -3.86e-7 | |x| ≤ 0.005 | <1 % | ✓ pass |
| Hertz restitution, largest relative error | 1.28e-4 | |x| ≤ 0.001 | 13 % | ✓ pass |
| Hertz restitution, dependence on impact speed | 4.22e-15 | |x| ≤ 1e-6 | <1 % | ✓ pass |
| Hooke exit-time error over its derived bound, largest | 0.977 | ≤ 1 | 98 % | ✓ pass |
| Vector world against scalar contact, largest relative difference | 1.01e-13 | |x| ≤ 1e-10 | <1 % | ✓ pass |
| Damped oscillator error ratio per step halving, largest | 0.493 | < 0.65 | 76 % | ✓ pass |
| Elastic energy drift ratio per step halving, largest | 0.25 | < 0.3 | 83 % | ✓ pass |
Setup and reproducibility
- Grid and numerics
- Glass spheres of 5 mm radius, 4000 to 20000 steps per contact; vector-world spheres of 0.5 m radius, 200 to 800 steps
- Solver
- Suna 0.1.0+941d3379
- Hardware
- AMD EPYC Genoa server CPU, 4 vCPU
- Precision
- f64
- Code revision
- 941d3379c7b0
- Physics
- DEM & granular · hertz contact, hooke contact, restitution
- Run date
References
- Analytic solution
K. L. Johnson, Contact Mechanics, Cambridge University Press, 1985 (Hertz elastic impact, sections 4.2 and 11.4)
doi:10.1017/cbo9781139171731 - Analytic solution
Y. Tsuji, T. Tanaka, T. Ishida, Lagrangian numerical simulation of plug flow of cohesionless particles in a horizontal pipe, Powder Technol. 71 (1992) 239-250 (linear damped contact oscillator)
doi:10.1016/0032-5910(92)88030-lIn the Physics Atlas


