Abstract
We introduce Neural Flow Maps, a novel simulation method bridging the emerging paradigm of implicit neural representations with fluid simulation based on the theory of flow maps, to achieve state-of-the-art simulation of in-viscid fluid phenomena. We devise a novel hybrid neural field representation, Spatially Sparse Neural Fields (SSNF), which fuses small neural networks with a pyramid of overlapping, multi-resolution, and spatially sparse grids, to compactly represent long-term spatiotemporal velocity fields at high accuracy. With this neural velocity buffer in hand, we compute long-term, bidirectional flow maps and their Jacobians in a mechanistically symmetric manner, to facilitate drastic accuracy improvement over existing solutions. These long-range, bidirectional flow maps enable high advection accuracy with low dissipation, which in turn facilitates high-fidelity incompressible flow simulations that manifest intricate vortical structures. We demonstrate the efficacy of our neural fluid simulation in a variety of challenging simulation scenarios, including leapfrogging vortices, colliding vortices, vortex reconnections, as well as vortex generation from moving obstacles and density differences. Our examples show increased performance over existing methods in terms of energy conservation, visual complexity, adherence to experimental observations, and preservation of detailed vortical structures.
Introduction
In computer graphics, simulating fluids like smoke or air often suffers from numerical dissipation—a phenomenon where fine details, such as small swirls or vortices, "blur" away over time due to calculation errors. While Flow Map methods track how points in space move over long periods to combat this, they have historically faced a "memory wall": storing high-resolution, long-term velocity data is prohibitively expensive. Neural Flow Maps (NFM) overcomes this by marrying the mathematical theory of flow maps with a novel hybrid neural representation.
Methodology: Spatially Sparse Neural Fields
The core innovation of NFM is the Spatially Sparse Neural Field (SSNF). This hybrid Implicit Neural Representation (INR) avoids the pitfalls of single massive networks or hash-based encodings (which can cause physical field noise due to collisions). Instead, SSNF utilizes a pyramid of overlapping, multi-resolution sparse grids paired with lightweight multi-layer perceptrons (MLPs). This architecture allows the system to focus its representational power on complex vortical regions while remaining memory-efficient.
Furthermore, NFM employs Bidirectional Marching. By storing velocity fields compactly in the SSNF buffer, the system can compute both forward and backward flow maps using high-order, symmetric 4th-order Runge-Kutta integration. This mechanistic symmetry ensures that "unwinding" the simulation returns particles to their exact starting positions, drastically reducing positional drift and numerical error.
Results and Evaluation
The researchers evaluated NFM against state-of-the-art benchmarks including Instant NGP, KPlanes, and SIREN. To test physical accuracy, they employed stress tests involving complex vortex dynamics, such as leapfrogging vortices and trefoil knots.
Key results include:
- Fitting Accuracy: SSNF reduced fitting errors by over 70% compared to KPlanes and SIREN while using fewer parameters.
- Simulation Fidelity: NFM reduced simulation errors by over 90% compared to advanced solvers like BiMocq.
- Energy Conservation: In leapfrogging tests, NFM preserved separate vortex structures for five "leaps," whereas traditional methods saw them merge after three due to dissipation.
- Visual Complexity: The system successfully recreated complex phenomena like the "Ferris wheel" destabilization of colliding vortex rings, previously seen only in high-end experimental physics.
Conclusion
Neural Flow Maps represent a significant step forward in fluid simulation, achieving state-of-the-art accuracy and detail preservation. While currently slower than traditional methods due to neural overhead, the framework's ability to maintain high-fidelity structures over long durations opens new possibilities for computer graphics and physical simulation. Future work will focus on computational optimization and extending the method to viscous fluids like water.
Summary updated