Simulating Surface Wave Dynamics with Convolutional Networks

Mario Lino, Mario Lino Valencia, Chris D. Cantwell, Stathi Fotiadis, Eduardo Pignatelli, Anil A. BharatharXiv 2020

Researchers from Imperial College London have developed a deep learning approach to simulate surface wave dynamics—like ripples in a pond or tsunamis—up to 10,000 times faster than traditional numerical solvers. By combining a modified U-Net for step-by-step prediction with a 3D CNN for time-interpolation, the system accurately predicts wave propagation, reflection, and interference even in complex, curved geometries it never saw during training.

The Challenge of Fluid Dynamics

Simulating fluid dynamics, specifically surface waves governed by the shallow water equations, is computationally grueling. Traditional numerical methods, such as spectral/hp element solvers, are highly accurate but slow, often requiring significant time to produce a single simulation. This bottleneck makes real-time applications—such as tsunami early warning systems or interactive computer animation—nearly impossible.

Furthermore, most existing neural network simulators are "locked" into the specific time-step size they were trained on. If a smoother slow-motion view of the simulation is required, the entire model usually needs to be retrained. The authors aim to solve both the speed issue and the temporal flexibility issue.

Methods: A Two-Stage Pipeline

The researchers proposed a two-stage deep learning pipeline to address these challenges:

  1. The Simulation Engine (U-Net): They adapted the U-Net architecture (originally famous for medical image segmentation) to act as a recursive physics engine. The network takes six inputs: a binary field representing the geometry (where the walls are) and a sequence of the five most recent wave height fields. It then predicts the height field for the next time step.
  2. The Interpolator (3D CNN): To overcome the fixed time-step limitation, they introduced an independent 3D CNN. This model takes the coarse-grained predictions from the U-Net and performs "time-interpolation," inserting three intermediate frames between every two original frames. This increases the temporal resolution by a factor of four without needing to re-run the expensive physics simulation.

A key technical detail is their loss function: instead of just measuring the Mean Squared Error (MSE) of the wave heights, they also included the MSE of the spatial gradients. This forces the network to pay attention to the sharp edges of wave fronts, leading to much crisper simulations.

Datasets and Geometric Generalization

The researchers used Nektar++, a high-order spectral/hp element solver, to generate high-fidelity ground truth data. A critical aspect of the study was testing the model's ability to generalize to unseen environments.

Figure 3: Training and testing geometries. (a) and (b) were used for training, while (d) through (g) tested the model's ability to generalize to curved boundaries.
  • Training Sets: Only two simple scenarios—a closed square box and a single right-angled corner.
  • Testing Sets: Five complex geometries designed to test generalization, including "steps," convex/concave circles, B-Spline curves, and elliptical arcs.
  • Initial Conditions: Each simulation began with a "droplet" (a 2D Gaussian) randomly placed in the domain.

Key Insights: Zero-Shot Generalization

Perhaps the most impressive finding is that the model, trained only on straight walls, could accurately simulate waves reflecting off curved surfaces. The authors hypothesize that because convolutions are local, the network "sees" a curve as a series of many tiny straight segments (polygonal approximation), allowing it to generalize to arbitrary shapes.

Additionally, while linear interpolation (simply averaging two frames) creates blurry artifacts in moving waves, the 3D CNN learns the underlying "flow" of the physics, producing intermediate frames that maintain the wave's shape and velocity.

Results and Performance

The U-Net achieves a $10^4$ (four orders of magnitude) speedup over the Nektar++ solver when running on a GPU. This moves the needle from "offline processing" to "real-time interaction."

Figure 4: Comparison between ground truth and prediction for a complex geometry. The error maps (right column) demonstrate high fidelity even after 25 recursive steps.
  • Accuracy: The Root Mean Square Error (RMSE) remained remarkably low—around 0.0001 times the characteristic length—for at least 20 recursive time steps.
  • Qualitative Fidelity: The model successfully captured complex physical phenomena including wave reflection, interference patterns, and diffraction around corners.
  • Temporal Resolution: The 3D CNN successfully increased the frame rate by 4x with an $L_1$ error comparable to the original U-Net predictions, significantly outperforming standard linear interpolation.

Limitations and Future Work

Despite the success, the authors noted that the magnitude of waves diffracted around sharp corners was lower than the ground truth. They suggest the training data (which focused mostly on propagation and reflection) might not have exposed the network to enough diffraction events. Furthermore, while stable for 20 steps, errors in recursive neural simulators can eventually accumulate over very long rollouts. Extending this to full 3D Navier-Stokes simulations remains a significant next step for the field.

Summary updated

BibTeX
@misc{lino2020simulating,
  author = {Mario Lino and Mario Lino Valencia and Chris D. Cantwell and Stathi Fotiadis and Eduardo Pignatelli and Anil A. Bharath},
  title = {{Simulating Surface Wave Dynamics with Convolutional Networks}},
  year = {2020},
  eprint = {2012.00718},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2012.00718},
}
Figure