Manuscript Offprint

arXiv:2608.29355

APPSolver: Adaptive Patch Partitioning for Point-Wise Ship Flow Prediction on Unstructured Meshes

Wenhua Huo, Fenglei Han, Wangyuan Zhao, Xiao Peng, Chunhui Wang, Jialin Wu, Jiayi Han

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Large non-uniform point sets make direct attention-based surrogate modeling costly for ship hydrodynamics. We introduce APPSolver, a point-wise flow-prediction framework built around Adaptive Patch Partitioning (APP), a deterministic quadtree representation for fixed two-dimensional horizontal slices extracted from ship CFD simulations. APP assigns finer patches near the hull and coarser patches farther away, downsamples patch contents, and recovers predictions to the full reference point set. Under a corrected protocol that constructs natural (t,t+1)(t, t+1) pairs before splitting, reuses training-set normalization statistics, and reports three model seeds, learned tokenizers are more accurate than APP-Transformer, and a persistence baseline has lower one-step MAE on all three ShipBench hulls. The supported benefit of APP is therefore computational rather than universal predictive superiority: on a representative DTC input, APP-Transformer requires 1.815 GFLOPs and 1.309 ms per model forward, while a matched ablation shows that adaptive partitioning reduces MAE by 16.4–24.9% relative to a uniform partition augmented with learned slicing. Condition encoders provide setting-dependent gains in leave-one-hull-out evaluation, but the current absolute next-state objective does not establish accurate long-horizon dynamics. These results characterize APP as a compact spatial representation with an explicit accuracy–efficiency trade-off. Code is available at https://github.com/wenhuahuo/APPSolver.

1 Introduction

High-fidelity flow fields around ship hulls support hydrodynamic analysis and design, but repeated CFD simulations remain expensive across hull forms and operating conditions [28, 30]. Deep-learning surrogates can reduce this cost [32]. Ship CFD data nevertheless present a representation challenge: points are strongly non-uniform, with local refinement near the hull and wake and much coarser sampling in the far field [31]. This work studies fixed two-dimensional horizontal slices extracted at ship draft, rather than moving free surfaces or full three-dimensional volume meshes.

Many surrogates interpolate CFD fields onto regular grids for use with CNNs [14], Vision Transformers [21], or Fourier Neural Operators [16]. Other methods, including GNOT [9], Transolver [33], and UPT [2], process irregular samples directly and use learned latent or token representations. Point-to-token compression is therefore not unique to our method. Our question is narrower: whether a deterministic partition aligned with the spatial refinement pattern of ship CFD can provide a useful representation and a favorable model-forward cost, while retaining a route back to the full reference point set.

∗^{*}Corresponding author.

Preprint.

We propose Adaptive Patch Partitioning (APP), a distance-refined quadtree that forms finer patches near the hull and coarser patches farther away. APP converts a large non-uniform point set into fixed-length patch tokens, applies controlled downsampling, and recovers outputs to all reference points by distance-weighted k-nearest-neighbor interpolation. APPSolver combines this representation with a Transformer backbone and a generic condition-token interface for hull geometry and operating parameters. Frozen Qwen encoders are one realization of this interface; normalized numerical MLP, Fourier-feature MLP, FiLM, and zero-conditioning alternatives are evaluated directly.

Our contributions are:

• We define and audit a one-step prediction benchmark on fixed non-uniform 2D ship-flow point sets. Natural (t,t+1)(t, t+1) pairs are constructed before splitting, normalization uses training statistics, and predictions are evaluated after recovery to the full reference point set.

• We introduce APP as a deterministic quadtree tokenization and recovery mechanism. A matched production-model ablation compares adaptive, uniform, and uniform-plus-learned partitions, while profiling separates model-forward efficiency from end-to-end cost.

• We characterize, rather than hide, the resulting trade-offs. Learned tokenizers and persistence are more accurate under the corrected protocol, whereas APP-Transformer has substantially lower measured model-forward cost. Condition-token gains are modest and depend on the held-out hull.

References (31)