Direct Flow Simulations with Implicit Neural Representation of Complex Geometry

Samundra Karki, Mehdi Shadkah, Cheng-Hau Yang, Aditya Balu, Guglielmo Scovazzi, Adarsh Krishnamurthy, Baskar GanapathysubramanianarXiv 2025

TL;DR

This paper introduces a novel simulation framework that directly couples Implicit Neural Representations (INRs) of 3D geometry with the Shifted Boundary Method (SBM) for fluid flow analysis. By querying a neural network on-the-fly to compute distance vectors and surrogate boundaries, the approach completely eliminates the error-prone, manually intensive, and computationally expensive bottleneck of traditional mesh generation.

What Problem Does This Paper Address?

In traditional engineering and scientific computing workflows—such as Computational Fluid Dynamics (CFD)—analyzing fluid flow around complex objects requires an explicit geometric representation, typically a body-fitted polygonal mesh. However, generating high-quality meshes for highly intricate or arbitrary 3D shapes is a notorious bottleneck: it is labor-intensive, computationally expensive, and introduces discretization errors.

Meanwhile, the computer vision and AI communities have shifted toward Implicit Neural Representations (INRs), which use neural networks (like Multi-Layer Perceptrons) to represent shapes continuously as Signed Distance Fields (SDFs). While INRs are compact and resolution-independent, integrating them into physics solvers has traditionally required converting them back into explicit meshes (e.g., via the Marching Cubes algorithm), which reintroduces approximation errors and defeats the purpose of using an implicit model. Immersed boundary methods (IBMs) avoid body-fitted meshes but still require explicit boundary descriptions and often suffer from numerical instabilities caused by tiny, poorly shaped "sliver cut cells."

Methods

The authors bridge this gap by combining INRs directly with the Shifted Boundary Method (SBM).

  1. Implicit Neural Representation (INR): The geometry is encoded using an MLP that takes spatial coordinates $(x, y, z)$ as input and outputs the signed distance to the closest point on the true surface. The network is trained using a custom loss function that enforces the Eikonal equation (ensuring the gradient norm is 1) and normal vector alignment.
  2. Shifted Boundary Method (SBM): SBM avoids cut-cell numerical issues by shifting the true boundary conditions onto a grid-aligned "surrogate" boundary composed of standard background cell faces (using an adaptive octree mesh). It then applies a Taylor-series expansion correction to account for the distance offset between the surrogate boundary and the true boundary.
  3. Direct Coupling: Instead of performing an offline mesh extraction, the physics solver queries the trained INR on-the-fly during the simulation. The network performs rapid inference to classify grid points (interior vs. exterior) and compute the exact distance vectors needed for the SBM boundary corrections.
Figure 2: In traditional simulations using a boundary-fitted or immersed approach, implicit geometry is converted to explicit representation. In our approach, the Implicit Neural Representations is directly used to obtain the distance vector and the surrogate boundary for simulations using the shifted boundary method (SBM).

Datasets

The framework was validated using a variety of geometric shapes across simple and complex topologies:

  • Canonical Benchmarks: 2D and 3D lid-driven cavity flows containing internal obstacles (circles and spheres).
  • Complex Geometries: The classic Stanford Bunny, a highly porous periodic minimal surface (Gyroid), a Tetrakis hexahedron, and a turbine blade.
  • AI-Generated Shapes: 3D airplane models generated unconditionally by a diffusion-based generative AI model (Hyperdiffusion).

For evaluation against traditional baselines, the INRs were trained on point clouds sampled from standard STL mesh files.

Key Insights and Ideas

  • Constant-Time Distance Queries: In traditional mesh-based distance computing, checking distances scales with the number of surface triangles ($O(N_\Delta)$). With an INR, distance queries take a constant number of operations determined solely by the depth and width of the neural network, making it highly scalable for hyper-complex geometries.
  • A Direct Bridge for Generative AI: By bypassing mesh generation entirely, this framework allows engineers to take a 3D shape straight out of a generative AI model or a 3D scanner and run a high-fidelity fluid simulation immediately.
  • Symbiosis of Math and AI: SBM is uniquely suited for INRs because it only requires two pieces of geometric information: inside/outside classification and a distance vector. Both are natively and accurately provided by a neural SDF.

Key Results

  • Accuracy Match: In 2D and 3D lid-driven cavity flow benchmarks, the INR-SBM framework yielded velocity profiles that closely matched traditional, highly optimized body-fitted mesh solutions across a variety of flow regimes (Reynolds numbers ranging from 100 to 5000).
  • Low Geometric Error: The Normalized Mean Squared Error (NMSE) of the neural representation near boundaries was exceptionally low, hitting $3.75 \times 10^{-8}$ for simple shapes and remaining under $3.84 \times 10^{-6}$ even for highly complex shapes like the turbine.
  • Complex Flow Demonstrations: The authors successfully simulated intricate internal fluid dynamics within a porous gyroid structure ($Re=10$) and high-Reynolds-number external flows ($Re=10000$) over generative AI-designed aircraft.

Limitations and Future Work

  • Sharp Edges and High Curvature: The authors noted that INRs can struggle to perfectly capture sharp corners and extremely thin structures. Regions with sudden curvature changes (like the edges of the Tetrakis geometry) showed higher discrepancies in cosine similarity and distance magnitude.
  • Shape Interactive Editing: Unlike explicit meshes where a designer can pull a vertex to alter a shape, modifying or fine-tuning an INR-based geometry interactively remains difficult and requires retraining or specialized network architectures.
  • Future Directions: The authors plan to extend this direct simulation capability to Neural Radiance Fields (NeRFs) and explore advanced shape-editing techniques to make neural geometric models more interactive for engineering design loops.

Summary updated

BibTeX
@misc{karki2025direct,
  author = {Samundra Karki and Mehdi Shadkah and Cheng-Hau Yang and Aditya Balu and Guglielmo Scovazzi and Adarsh Krishnamurthy and Baskar Ganapathysubramanian},
  title = {{Direct Flow Simulations with Implicit Neural Representation of Complex Geometry}},
  year = {2025},
  eprint = {2503.08724},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.08724},
}
Figure