SunaDEM & granularCPU · f64
DEM spheres with tangential friction: momentum, spin and dissipation
Suna conserves linear and angular momentum to 3.3e-13 (gate 1e-11) in an oblique frictional two-sphere impact, matches the discrete head-on contact oscillator to 1.6e-12 (gate 1e-11) and refines at a ratio 0.50 per halving (gate below 0.60); friction dissipates energy. CPU, f64, 2026-11-27.

- Reference
- P. A. Cundall
- Hardware
- AMD EPYC Genoa server CPU, 12 vCPU
- Solver version
- Suna 0.1.0+bc8899c9
- Grid
- Two spheres of 0.5 m radius, normal stiffness 1e4, tangential…
Results
Figures from the run.
Energy with and without friction

Head-on refinement

Momentum residual over the impact

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 |
|---|---|---|---|---|
| Momentum residual, largestkey | 3.26e-13 | |x| ≤ 1e-11 | 3 % | ✓ pass |
| Head-on contact against the discrete oscillator, residual | 1.63e-12 | |x| ≤ 1e-11 | 16 % | ✓ pass |
| Head-on error ratio per step halving, largest | 0.5 | < 0.6 | 83 % | ✓ pass |
| Final energy with friction over frictionless | 0.987 | < 1 | 99 % | ✓ pass |
Setup and reproducibility
- Grid and numerics
- Two spheres of 0.5 m radius, normal stiffness 1e4, tangential stiffness 2e3, friction 0.3, time step 2e-5 s, 2000 steps; head-on refinement 100 to 800 steps
- Solver
- Suna 0.1.0+bc8899c9
- Hardware
- AMD EPYC Genoa server CPU, 12 vCPU
- Precision
- f64
- Code revision
- bc8899c95602
- Physics
- DEM & granular · tangential friction, momentum conservation, contact
- Run date
References
- Analytic solution
P. A. Cundall, O. D. L. Strack, A discrete numerical model for granular assemblies, Geotechnique 29 (1979) 47-65 (spring-dashpot contact with Coulomb friction; the checks are exact momentum balance and an independent discrete oscillator solution)
doi:10.1680/geot.1979.29.1.47In the Physics Atlas


