This paper presents the design and implementation of a modular multi-document interface (MDI) framework for scientific visualization and simulation in the Java Virtual Machine (JVM) ecosystem. The framework emphasizes architectural separation between visualization layers, simulation engines, and optional hardware-accelerated 3D rendering. 3D functionality is isolated into a separate module to prevent unnecessary dependency coupling in 2D-only applications. We describe the core abstractions, threading model, simulation integration strategy, and dependency isolation approach. A case study involving a real-time 3D gas expansion simulation integrated with synchronized 2D entropy plotting demonstrates architectural cohesion. The framework is publicly available via Maven Central and targets long-lived scientific and engineering desktop applications.
翻译:本文提出了一种在Java虚拟机(JVM)生态系统中用于科学可视化与仿真的模块化多文档界面(MDI)框架的设计与实现。该框架强调可视化层、仿真引擎与可选的硬件加速三维渲染之间的架构分离。三维功能被隔离至独立模块,以避免在纯二维应用中产生不必要的依赖耦合。我们阐述了核心抽象、线程模型、仿真集成策略及依赖隔离方法。通过一个集成同步二维熵图绘制的实时三维气体扩散仿真实例,展示了该架构的协调性。本框架已通过Maven Central公开提供,主要面向长生命周期的科学与工程桌面应用。