arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1511.07261cs.DCcs.MS
收藏

大规模并行多物理场仿真框架waLBerla的Python扩展

A Python Extension for the Massively Parallel Multiphysics Simulation Framework waLBerla

Martin Bauer, Florian Schornbaum, Christian Godenschwager, Matthias Markl, Daniela Anderl, Harald Köstler, Ulrich Rüde

摘要:

我们提出了一个Python扩展的大规模并行HPC仿真工具包waLBerla。waLBerla是一个基于模板的算法框架,在块结构网格上运行,主要应用领域是使用格子玻尔兹曼方法在复杂几何形状中进行流体模拟。精心的性能工程可实现出色的节点性能和超过400,000个内核的良好可扩展性。为了提高框架的可用性和灵活性,开发了一个Python接口。Python扩展用于仿真管道的所有阶段:它们简化和自动化场景设置,评估和绘图。我们展示了我们的Python接口如何优于现有的基于文本文件的配置机制,提供了物理量的自动无量纲化和复杂参数依赖关系的处理等功能。此外,Python用于在模拟运行时处理和评估结果,从而导致输出文件更小,并且可以根据当前模拟状态调整参数。C++数据结构被导出,从而可以无缝地连接到其他数值Python库。Python的表达能力和C++的性能使得以较低的时间工作量开发高效的代码成为可能。

英文摘要:

We present a Python extension to the massively parallel HPC simulation toolkit waLBerla. waLBerla is a framework for stencil based algorithms operating on block-structured grids, with the main application field being fluid simulations in complex geometries using the lattice Boltzmann method. Careful performance engineering results in excellent node performance and good scalability to over 400,000 cores. To increase the usability and flexibility of the framework, a Python interface was developed. Python extensions are used at all stages of the simulation pipeline: They simplify and automate scenario setup, evaluation, and plotting. We show how our Python interface outperforms the existing text-file-based configuration mechanism, providing features like automatic nondimensionalization of physical quantities and handling of complex parameter dependencies. Furthermore, Python is used to process and evaluate results while the simulation is running, leading to smaller output files and the possibility to adjust parameters dependent on the current simulation state. C++ data structures are exported such that a seamless interfacing to other numerical Python libraries is possible. The expressive power of Python and the performance of C++ make development of efficient code with low time effort possible.

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

↑