arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.06735cs.GRastro-ph.EPastro-ph.IM
收藏

实时、跨平台可视化,无需依赖,适用于N体包REBOUND

Real time, cross platform visualizations with zero dependencies for the N-body package REBOUND

University of Toronto(多伦多大学)

Hanno Rein

AI总结:

REBOUND通过网页浏览器实现无需依赖的实时可视化,支持多平台和多种可视化模式。

摘要:

可视化已成为科学过程不可或缺的一部分。存在一个活跃的可视化工具生态系统,满足各种不同的需求。对数值模拟的实时可视化为科学家提供了对模拟状态的即时反馈,也可以作为有价值的教育和传播工具。开发一个支持不同操作系统、CPU/GPU架构和编程语言的可视化工具可能具有挑战性。通常会使用一个或多个图形或UI库作为抽象层来隐藏底层复杂性。尽管外部库大大简化了初始编程工作量,但我们认为依赖它们引入了新的依赖关系和问题,例如对新开发人员和用户来说入门门槛更高,以及对长期支持的不确定性。在本文中,我们提出了一种新的实时可视化方法,该方法已在N体包REBOUND中实现。我们提出使用网页浏览器来处理GPU加速的渲染。这使我们能够为所有主要操作系统提供3D、交互式可视化。我们新方法的独特之处在于无需任何外部库即可实现这一点。我们利用WebAssembly重用现有的OpenGL可视化代码。通过HTTP通信和自建的内置Web服务器,我们能够提供本地和远程的实时可视化。除了基于浏览器的实时可视化外,我们的方法还提供了其他附加的操作模式,包括完全在浏览器中运行的模拟、在Jupyter笔记本中的可视化,以及使用OpenGL的传统独立可视化。我们专注于REBOUND中的实现,但讨论的概念和想法可以应用于许多其他领域,这些领域需要科学和非科学的实时可视化。

英文摘要:

Visualizations have become an indispensable part of the scientific process. A vibrant ecosystem of visualization tools exists, catering to a wide variety of different needs. Real-time visualizations of numerical simulations offer scientists immediate feedback about the status of their simulations and can also be valuable educational and outreach tools. Developing a visualization tool with support for different operating systems, CPU/GPU architectures, and programming languages can be a challenge. It is common to use one or more graphics or UI libraries to act as abstraction layers and hide the underlying complexity. Whereas external libraries greatly simplify the initial programming effort, we argue that relying on them introduces new dependencies and problems, such as a higher entry barriers for new developers and users, and uncertainty regarding long-term support. In this paper we present a new approach for real time visualizations which we have implemented for the N-body package REBOUND. We propose to use a web browser to handle GPU accelerated rendering. This enables us to offer 3D, interactive visualizations on all major operating systems. What makes our new approach unique is that we achieve this without the need for any external libraries. We utilize WebAssembly to reuse existing OpenGL visualization code. Using communication via HTTP and a custom built-in web server, we are able to provide both local and remote real time visualizations. In addition to the browser based real time visualization, our approach offers other additional operating modes, including simulations running entirely within the browser, visualizations within jupyter notebooks, and traditional standalone visualizations using OpenGL. We focus on the implementation in REBOUND but the concepts and ideas discussed can be applied to many other areas in need of scientific and non-scientific real time visualizations.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑