1. Introduction
Liquid sloshing in partially filled containers arises in naval architecture, aerospace engineering, and civil engineering, where it affects the structural integrity of LNG carriers, spacecraft fuel tanks, and seismically loaded storage vessels [
1,
2]. Conventional computational approaches—finite-element methods [
3], finite-difference methods [
4], and boundary element methods—require mesh generation and time integration; for long transient simulations spanning tens of natural periods, these costs become considerable. Reduced-order models alleviate part of the burden but are typically restricted to a pre-selected set of modes.
Physics-informed neural networks (PINNs), introduced by Raissi et al. [
5], embed the governing PDEs directly into the training loss, so the network is trained without labeled solution data. Reviews by Cai et al. [
6] and Cuomo et al. [
7] cover applications from Navier–Stokes flows to heat transfer; the open-source library DeepXDE [
8] has further broadened accessibility.
Training PINNs for oscillatory problems is difficult in practice. Wang et al. [
9] showed that imbalanced multi-component losses cause gradient pathologies in which the PDE residual dominates and suppresses boundary and initial condition learning; they proposed gradient-based adaptive weighting as a remedy. Jagtap et al. [
10] addressed slow convergence through adaptive activation functions. A more fundamental obstacle is spectral bias—the preference of standard fully connected networks for low-frequency components of the target function, first analyzed by Rahaman et al. [
11]. For oscillatory PDEs covering many cycles this can lead to severe temporal under-resolution. Tancik et al. [
12] showed that mapping inputs through sinusoidal Fourier features enables networks to learn high-frequency functions; Wang et al. [
13] extended the analysis to PINNs via Neural Tangent Kernel theory. Wang et al. [
14] further proposed PirateNets with causal training to enforce temporal causality and prevent PINNs from using future information to predict past states, a common pathology in time-dependent problems.
For free surface and water wave problems, several strands of work have appeared in recent years. Sheikholeslami et al. [
15] examined soft and hard boundary enforcement for linear Laplace-based waves, achieving velocity errors below 3% with a periodic hard boundary layer; their trial-function approach for the bottom boundary condition, however, restricted the solution space and increased errors by up to 15 times. Li et al. [
16] treated fully nonlinear wave propagation using a quasi-
coordinate transformation that maps the time-dependent free surface to a fixed domain, with a two-stage Adam/L-BFGS optimizer. Chen et al. [
17] reconstructed rotational flow beneath periodic waves from sparse gauge data using WaveNets. More recently, Ehlers et al. [
18] applied PINNs to the fully nonlinear potential flow equations for phase-resolved ocean wave assimilation and prediction, inferring the velocity potential throughout the fluid volume from surface elevation measurements alone.
Closer to the sloshing problem, Wessels et al. [
19] proposed the Neural Particle Method, a Lagrangian PINN that tracks particle paths to handle the moving free surface; they simulated both small- and large-amplitude sloshing in a container and the dam-break problem, with good agreement with experimental data. Huang et al. [
20] developed a boundary-and-initial-conditions-free PINN (bif-PINN) in Lagrangian coordinates that hardwires all boundary and initial conditions into the formulation via nonlinear residual connections; their approach solved the small- and large-amplitude sloshing cases accurately, whereas the original PINN failed entirely for all free-surface configurations. Shao et al. [
21] combined PINNs with an improved neural particle method for violent sloshing simulation, validated against SPH results.
Despite this progress, all the above free-surface PINN studies address either periodic propagating waves over a few wavelengths or free sloshing (unforced) over a handful of cycles. The forced sloshing problem—where an external excitation near resonance produces a multi-frequency beating response spanning tens of natural periods—poses additional challenges that have not been addressed: the simulation must cover an order of magnitude more periods than a single natural cycle; the weak forcing creates free surface residuals orders of magnitude smaller than the Laplace residual, opening a zero-solution trap; and the multi-frequency temporal content exceeds the effective bandwidth of a standard MLP. The present work tackles these challenges for laterally forced sloshing at , where beating produces a response envelope over approximately . Four configurations (C–F) progressively address the above difficulties, reducing from 12.46% to 0.84%. The methodology is then extended to a three-dimensional rectangular tank with bi-directional excitation, demonstrating that the same techniques—Fourier embedding, hard wall boundary conditions, and gradient-enhanced regularisation—transfer effectively to the higher-dimensional setting.