Dedalus:一个灵活的谱方法数值模拟框架
Dedalus: A Flexible Framework for Numerical Simulations with Spectral Methods
摘要:
偏微分方程的数值解使广泛的科学研究成为可能。Dedalus项目是一个灵活的,开源的,并行化的计算框架,用于使用谱方法求解一般偏微分方程。Dedalus将描述偏微分方程的纯文本字符串转换为高效的求解器。本文详细介绍了数值方法,使这种翻译,描述了代码库的设计和实现,并说明了它的功能与各种示例问题。数值方法是一个一阶广义τ公式,离散成带状矩阵方程。该方法是用面向对象的设计实现的。谱基和域的类管理变量的离散化和自动并行分布。离散领域和数学运算符的象征性操纵与基本的计算机代数系统。使用高性能线性代数、变换和并行通信库有效地解决了初值、边界值和特征值问题。自定义分析输出也可以以纯文本形式指定,并以自描述可移植格式存储。的代码的性能进行评估与并行缩放基准和比较有限体积的代码。的功能和灵活性的代码库说明通过解决几个例子:非线性薛定谔方程的图形,超音速磁流体动力学涡,准地转流,斯托克斯流在一个圆柱形的环形,正常模式的辐射大气,和抗磁悬浮。Dedalus代码和示例问题可以在http://dedalus-project.org/上在线获得。
英文摘要:
Numerical solutions of partial differential equations enable a broad range of scientific research. The Dedalus Project is a flexible, open-source, parallelized computational framework for solving general partial differential equations using spectral methods. Dedalus translates plain-text strings describing partial differential equations into efficient solvers. This paper details the numerical method that enables this translation, describes the design and implementation of the codebase, and illustrates its capabilities with a variety of example problems. The numerical method is a first-order generalized tau formulation that discretizes equations into banded matrices. This method is implemented with an object-oriented design. Classes for spectral bases and domains manage the discretization and automatic parallel distribution of variables. Discretized fields and mathematical operators are symbolically manipulated with a basic computer algebra system. Initial value, boundary value, and eigenvalue problems are efficiently solved using high-performance linear algebra, transform, and parallel communication libraries. Custom analysis outputs can also be specified in plain text and stored in self-describing portable formats. The performance of the code is evaluated with a parallel scaling benchmark and a comparison to a finite-volume code. The features and flexibility of the codebase are illustrated by solving several examples: the nonlinear Schrodinger equation on a graph, a supersonic magnetohydrodynamic vortex, quasigeostrophic flow, Stokes flow in a cylindrical annulus, normal modes of a radiative atmosphere, and diamagnetic levitation. The Dedalus code and the example problems are available online at http://dedalus-project.org/.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。