A Proposed Framework for Interactive Virtual Reality In Situ Visualization of Parallel Numerical Simulations

Aryaman Gupta, Ulrik Günther, Pietro Incardona, Ata Deniz Aydin, Raimund Dachselt, Stefan Gumhold, Ivo F. Sbalzarini

Introduction

Scientific discovery in fields like fluid dynamics and molecular biology increasingly relies on massive parallel simulations. However, as supercomputing power grows, the ability to move and analyze the resulting data lags behind. This "I/O bottleneck" prevents researchers from interacting with their simulations in real-time. This paper proposes a framework to bridge this gap by integrating immersive Virtual Reality (VR) directly into the simulation pipeline (in situ), allowing for immediate visual feedback and steering.

The Challenge: Data Bottlenecks and VR Latency

Modern simulations can generate hundreds of gigabytes per second, far exceeding the write speeds of traditional storage. Furthermore, Virtual Reality demands high frame rates (60–90 Hz) and ultra-low latency (<20ms) to ensure user comfort. Transmitting raw simulation data across a network to a VR headset within these timeframes is currently unfeasible.

Proposed System Architecture

The proposed framework utilizes a "tightly-coupled" approach, where the simulation and the visualization components share resources on the same hardware.

System architecture showing the interaction between compute nodes, the head node, and the remote VR client.

The system integrates two primary libraries: OpenFPM, which handles large-scale parallel simulations using particles and meshes, and scenery, a VR rendering library built on the Vulkan API. By running both on the same compute nodes, the framework achieves Zero-Copy Rendering. Instead of duplicating data, the renderer accesses simulation results directly through shared memory pointers, drastically reducing internal data movement.

Technical Strategies for Real-Time Interaction

To maintain the high performance required for VR, the framework employs several advanced techniques:

  • Asynchronous Execution: The simulation and visualization loops run independently. This ensures that the VR user experiences a smooth frame rate even if the simulation takes longer to compute a single step.
  • Volumetric Depth Images (VDI): To combat network latency between the supercomputer and the remote client, the system generates VDIs. These images contain 3D spatial information, allowing the client-side VR headset to "reproject" views locally as the user moves their head, masking any lag from the cluster.
  • Binary Swap Compositing: This algorithm efficiently merges partial images rendered across multiple nodes in a cluster into a single coherent view for the user.

Developer Experience and Instrumentation

A significant barrier to adopting in situ visualization is the complexity of modifying existing simulation code. The authors demonstrate that their framework is designed for ease of use, requiring minimal changes to existing scripts.

A C++ code snippet showing that only two additional lines of code are needed to enable in situ visualization in a 161-line simulation.

As shown in the snippet, initializing the visualization environment and calling the visualization routine are the only necessary additions for the scientist. This allows researchers to focus on their physics models rather than graphics programming.

Results and Future Work

The prototype successfully demonstrates real-time rendering of distributed Molecular Dynamics simulations. By leveraging Vulkan, the framework is optimized for modern GPU architectures, offering a performance advantage over traditional tools like ParaView.

Future development will focus on hitting consistent 60 Hz targets for more complex scenes and adding support for simulations running entirely on GPGPUs. The ultimate goal is "Natural User Interface" (NUI) steering, where researchers can interactively manipulate simulation parameters directly within the VR environment.

Summary updated

BibTeX
@inproceedings{gupta2019proposed,
  author = {Aryaman Gupta and Ulrik Günther and Pietro Incardona and Ata Deniz Aydin and Raimund Dachselt and Stefan Gumhold and Ivo F. Sbalzarini},
  title = {{A Proposed Framework for Interactive Virtual Reality In Situ Visualization of Parallel Numerical Simulations}},
  booktitle = {Ldav},
  year = {2019},
  doi = {10.1109/ldav48142.2019.8944368},
}
Figure