Skip to content
DimensionLab

SunaSPHCPU · f64

First-mode standing wave in a closed tank on a CPU: sloshing period against linear theory

The first-mode sloshing period of a 1 x 0.5 m closed tank in Suna is 4.8 % short of linear theory (Lamb) at h/dp 25 (gate 1.5 %) and 4.2 % short at h/dp 50 (gate 1 %); CPU, f64, a failed result, 2026-11-21.

standing wave, h/dp 25, t = T/4: particles by speed
Failed
0 of 2 gates met
-0.0417Sloshing period relative error at h/dp 50 · gate |x| ≤ 0.01
417 %

Failed at both resolutions: the period is 4-5 % short and converges slowly with resolution. DualSPHysics with the same scheme shows the same frequency shift in the forced-sway case; the cause within the weakly compressible SPH scheme is open.

Reference
H. Lamb
Hardware
x86-64 cloud server CPU
Solver version
Suna 0.1.0+c3c1a3be
Grid
2D closed tank 1 x 0.5 m, amplitude 1 cm, h/dp 25 and 50, modified…

Results

Figures from the run.

standing wave: fluid centroid vs linear theory

standing wave: fluid centroid vs linear theory

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.

MetricValueGateAllowance usedResult
Sloshing period relative error at h/dp 25-0.0483|x| ≤ 0.015322 %✕ fail
Sloshing period relative error at h/dp 50key-0.0417|x| ≤ 0.01417 %✕ fail

Setup and reproducibility

Grid and numerics
2D closed tank 1 x 0.5 m, amplitude 1 cm, h/dp 25 and 50, modified dynamic boundary, density diffusion 0.1; theory period 1.18182 s
Solver
Suna 0.1.0+c3c1a3be
Hardware
x86-64 cloud server CPU
Precision
f64
Code revision
c3c1a3bea1d4
Physics
SPH · standing wave, sloshing, free surface, sph, cpu
Run date

References

  • Analytic solution

    H. Lamb, Hydrodynamics, Cambridge University Press (first edition 1895), linear dispersion relation of standing gravity waves, omega^2 = g k tanh(k h)

    doi:10.5962/bhl.title.18729