Skip to content
DimensionLab

SunaSPHNVIDIA GPU · f32

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

On an NVIDIA GeForce RTX 3080, 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 26.3 % at h/dp 50 (gate 6 %); f32, 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 -29.0 %). 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
NVIDIA GeForce RTX 3080
Solver version
Suna 0.1.0+c3c1a3be
Grid
2D tank 1 x 0.5 m moved as one rigid boundary, sway A (1 - cos W t)…

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.263|x| ≤ 0.06438 %✕ fail
Fluid centroid peak, relative error, h/dp 50-0.29|x| ≤ 0.06484 %✕ fail

Setup and reproducibility

Grid and numerics
2D tank 1 x 0.5 m moved as one rigid boundary, sway A (1 - cos W t) with A 4 mm and W 0.8 omega_1, h/dp 25 and 50, modified dynamic boundary, density diffusion 0.1, 6 s
Solver
Suna 0.1.0+c3c1a3be
Hardware
NVIDIA GeForce RTX 3080
driver 580.95.05, CUDA 12.8
Precision
f32
Code revision
c3c1a3bea1d4
Physics
SPH · sloshing, forced sway, free surface, sph, gpu
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