SunaSPHNVIDIA GPU · f32 particle state, f64 rigid-body state
Floating box released in a tank: flotation at rest and free heave and roll against DualSPHysics
Suna floats a half-density box at Archimedes' draft (mean heave 0.012 dp, roll at most 0.10 deg, force identity 1.1e-5) and matches DualSPHysics v5.4 after a 4 dp drop with roll (heave RMS 0.009, roll RMS 0.067, gate 0.1); partial: the heave period cannot be judged, only 2 of 4 zero crossings occur in 3 s; RTX 3070, f32, 2026-11-22.

Flotation at rest and the heave and roll after release pass against Archimedes and DualSPHysics. The heave period check needs four upward zero crossings; waves reflected from the tank walls leave only two in 3 s in both codes, so the period is not judged and the case is partial.
- Reference
- Archimedes' principle: a box of half the fluid density floats at half its height
- Hardware
- NVIDIA GeForce RTX 3070
- Solver version
- Suna 0.1.0+ef5da45e
- Grid
- 2D tank 2.0 m, water depth 0.5 m, particle spacing 5 mm, box 40 x…
Results
Figures from the run.
Box heave from equilibrium against DualSPHysics

Box roll against DualSPHysics

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 |
|---|---|---|---|---|
| Mean heave at rest (particle spacings) | 0.0122 dp | 0 ± 1 dp | 1 % | ✓ pass |
| Largest roll at rest (degrees) | 0.102 deg | 0 ± 0.5 deg | 20 % | ✓ pass |
| Fluid force against the box weight at rest (relative) | 1.09e-5 | 0 ± 0.01 | <1 % | ✓ pass |
| Heave against DualSPHysics, RMS over the drop heightkey | 0.009 | 0 ± 0.1 | 9 % | ✓ pass |
| Roll against DualSPHysics, RMS over the largest roll | 0.0672 | 0 ± 0.1 | 67 % | ✓ pass |
| Upward zero crossings of the heave in 3 s (the period check needs 4) | 2 | ≥ 4 | 200 % | ✕ fail |
Setup and reproducibility
- Grid and numerics
- 2D tank 2.0 m, water depth 0.5 m, particle spacing 5 mm, box 40 x 20 particle spacings at half water density, 3 degrees of freedom, 0-3 s
- Solver
- Suna 0.1.0+ef5da45e
- Hardware
- NVIDIA GeForce RTX 3070
driver 580.95.05, CUDA 12.8 - Precision
- f32 particle state, f64 rigid-body state
- Code revision
- ef5da45eae99
- Physics
- SPH · floating body, fluid-structure, wcsph
- Run date
References
- Analytic solution
Archimedes' principle: a box of half the fluid density floats at half its height; at rest the fluid force on it equals its weight
- Third-party code · reference, not our solver
J. M. Dominguez et al., DualSPHysics: from fluid dynamics to multiphysics problems, Comput. Part. Mech. 9 (2022) 867-895 (DualSPHysics v5.4, floating box on the same particle lattice)
doi:10.1007/s40571-021-00404-2


