Inpainting physics: self-supervised learning for context-driven fluid simulation
Jonas Weidner, Yeray Martin-Ruisanchez, Daniel R\"uckert, Benedikt Wiestler, Julian Suk

TL;DR
This paper introduces a self-supervised inpainting approach for fluid simulation, enabling flexible boundary condition handling and local geometry editing in neural surrogate models for CFD.
Contribution
It reformulates CFD inference as an inpainting problem, allowing boundary constraints to be imposed during inference rather than training, and introduces a scalable local tokeniser for 3D meshes.
Findings
Reconstructs full velocity fields from sparse boundary data.
Outperforms supervised models under boundary-condition shifts.
Enables local geometry editing by reusing simulation context.
Abstract
Neural surrogate models for computational fluid dynamics (CFD) are typically trained as forward operators that map explicit problem specifications, such as geometry and boundary conditions, to solution fields. This ties the model to the conditioning variables seen during training and limits reuse under boundary-condition shifts or local geometry changes. We propose to reformulate steady CFD inference as an inpainting problem: instead of training on explicit boundary conditions, we learn a self-supervised prior over velocity fields and impose boundary constraints only during inference by fixing known regions such as inlet, outlet or unchanged regions from previous simulations. To scale this idea to large 3D meshes, we introduce a local neighbourhood tokeniser that represents high-resolution velocity fields as compact spatial latent tokens and train latent flow-matching and…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
