arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2301.01145cs.MScs.NAmath.NA
收藏

SailFFish:一个轻量级的、可扩展的快速泊松求解器库

SailFFish: A Lightweight, Parallelised Fast Poisson Solver Library

Joseph Saverin

摘要:

提出了一种适用于一维、二维和三维规则网格的泊松方程求解器。求解器应用卷积定理,以便在矩形计算域上有效地求解谱空间中的泊松方程。通过使用离散傅立叶变换实现到光谱空间和从光谱空间的转换,允许高度优化的O(NlogN)算法的应用。数据结构被配置为模块化的,使得用于去往、来自和在频谱空间内的操作的底层接口可以互换。对于计算要求高的任务,通过利用并行处理架构来优化库。一系列的边界条件可以应用到域,包括周期,狄利克雷,诺依曼和完全无界。在Neumann和Dirichlet边界条件的情况下,可以指定任意非齐次边界条件。所需的解决方案可以在规则(单元边界)或交错(单元中心)网格配置上找到。对于具有周期性、狄利克雷或诺依曼边界条件的问题,可以应用伪谱或二阶有限差分算子。对于无界边界条件,可以使用一系列格林函数。除此之外,一系列微分算子可以应用于谱空间,以处理不同形式的泊松方程或提取输入场的高精度梯度。首先详细介绍了求解器的基本框架,然后对每种可用的边界条件类型进行了一系列验证。最后,对该库的性能进行了研究。该代码是免费的,并在GNU v3.0许可证下公开提供。

英文摘要:

A solver for the Poisson equation for 1D, 2D and 3D regular grids is presented. The solver applies the convolution theorem in order to efficiently solve the Poisson equation in spectral space over a rectangular computational domain. Conversion to and from the spectral space is achieved through the use of discrete Fourier transforms, allowing for the application of highly optimised O(NlogN) algorithms. The data structure is configured to be modular such that the underlying interface for operations to, from and within the spectral space may be interchanged. For computationally demanding tasks, the library is optimised by making use of parallel processing architectures. A range of boundary conditions can be applied to the domain including periodic, Dirichlet, Neumann and fully unbounded. In the case of Neumann and Dirichlet boundary conditions, arbitrary inhomogeneous boundary conditions may be specified. The desired solution may be found either on regular (cell-boundary) or staggered (cell-centre) grid configurations. For problems with periodic, Dirichlet or Neumann boundary conditions either a pseudo-spectral or a second-order finite difference operator may be applied. For unbounded boundary conditions a range of Green's functions are available. In addition to this, a range of differential operators may be applied in the spectral space in order to treat different forms of the Poisson equation or to extract highly accurate gradients of the input fields. The underlying framework of the solver is first detailed, followed by a range of validations for each of the available boundary condition types. Finally, the performance of the library is investigated. The code is free and publicly available under a GNU v3.0 license.

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

↑