Skip to content
DimensionLab

SunaSPHCPU · f64

Tank swayed from rest near its first sloshing mode: linear modal response (CPU)

Run on a CPU in f64, Suna misses the linear modal response (Faltinsen 1978) of a 1 x 0.5 m tank swayed from rest at 0.8 times its first natural frequency: fluid-centroid NRMS error 27.6 % at h/dp 25 (gate 10 %) and 25.9 % at h/dp 50 (gate 6 %); a failed result, 2026-11-21.

forced sway, h/dp 25, t = 2.3 s: particles by speed
Failed
0 of 4 gates met
0.276Fluid centroid in the tank frame, NRMS error, h/dp 25 · gate |x| ≤ 0.1
276 %

Failed: NRMS and peak errors fail at both resolutions (peaks -29.3 % and -28.9 %). DualSPHysics v5.4 on the same lattice and scheme at h/dp 25 gives 27.4 % and -30.2 %: both codes beat at about 4.6 s against 5.9 s in theory, a first-mode frequency 5-6 % high, so the miss belongs to the weakly compressible SPH scheme at these resolutions.

Reference
O. M. Faltinsen
Hardware
x86-64 cloud server CPU
Solver version
Suna 0.1.0+c3c1a3be
Grid
Tank 1 x 0.5 m moved as one boundary group, h/dp 25 and 50, mDBC…

Results

Figures from the run.

forced sway: tank-frame centroid vs linear theory

forced sway: tank-frame 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
Fluid centroid in the tank frame, NRMS error, h/dp 25key0.276|x| ≤ 0.1276 %✕ fail
Fluid centroid peak, relative error, h/dp 25-0.293|x| ≤ 0.1293 %✕ fail
Fluid centroid in the tank frame, NRMS error, h/dp 500.259|x| ≤ 0.06431 %✕ fail
Fluid centroid peak, relative error, h/dp 50-0.289|x| ≤ 0.06481 %✕ fail

Setup and reproducibility

Grid and numerics
Tank 1 x 0.5 m moved as one boundary group, h/dp 25 and 50, mDBC boundaries, density diffusion 0.1
Solver
Suna 0.1.0+c3c1a3be
Hardware
x86-64 cloud server CPU
Precision
f64
Code revision
c3c1a3bea1d4
Physics
SPH · sloshing, forced sway, free surface, sph, cpu
Run date

References

  • Analytic solution

    O. M. Faltinsen, A numerical nonlinear method of sloshing in tanks with two-dimensional flow, J. Ship Res. 22 (1978) 193-202 (linear modal solution of a tank swayed from rest, 60 odd modes)

    doi:10.5957/jsr.1978.22.3.193
  • Third-party code · reference, not our solver

    DualSPHysics v5.4 (CPU), the same case on the same particle lattice and scheme at h/dp 25 (J. M. Dominguez et al., Comput. Part. Mech. 9 (2022) 867-895)

    dual.sphysics.org