Dedalus: A flexible framework for numerical simulations with spectral methods

被引:248
|
作者
Burns, Keaton J. [1 ,2 ,3 ]
Vasil, Geoffrey M. [4 ]
Oishi, Jeffrey S. [5 ]
Lecoanet, Daniel [6 ,7 ]
Brown, Benjamin P. [8 ,9 ]
机构
[1] MIT, Dept Math, Cambridge, MA 02139 USA
[2] MIT, Dept Phys, Cambridge, MA 02139 USA
[3] Flatiron Inst, Ctr Computat Astrophys, New York, NY 10010 USA
[4] Univ Sydney, Sch Math & Stat, Sydney, NSW 2006, Australia
[5] Bates Coll, Dept Phys & Astron, Lewiston, ME 04240 USA
[6] Princeton Ctr Theoret Sci, Princeton, NJ 08544 USA
[7] Princeton Univ, Dept Astrophys Sci, Princeton, NJ 08544 USA
[8] Univ Colorado, Lab Atmospher & Space Phys, Boulder, CO 80309 USA
[9] Univ Colorado, Dept Astrophys & Planetary Sci, Boulder, CO 80309 USA
来源
PHYSICAL REVIEW RESEARCH | 2020年 / 2卷 / 02期
基金
澳大利亚研究理事会;
关键词
MODEL; WAVE; CONVECTION; FLOW; CIRCULATION; INSTABILITY; ATMOSPHERE; TURBULENCE; EQUATIONS; TRANSPORT;
D O I
10.1103/PhysRevResearch.2.023068
中图分类号
O4 [物理学];
学科分类号
0702 ;
摘要
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.
引用
收藏
页数:39
相关论文
共 50 条
  • [1] A comprehensive framework to enhance numerical simulations in the spectral-element code Nek5000
    Massaro, D.
    Peplinski, A.
    Stanly, R.
    Mirzareza, S.
    Lupi, V.
    Mukha, T.
    Schlattera, P.
    COMPUTER PHYSICS COMMUNICATIONS, 2024, 302
  • [2] Spectral structure of stratified turbulence: direct numerical simulations and predictions by large eddy simulation
    Remmler, Sebastian
    Hickel, Stefan
    THEORETICAL AND COMPUTATIONAL FLUID DYNAMICS, 2013, 27 (3-4) : 319 - 336
  • [3] ICON-ART 2.1: a flexible tracer framework and its application for composition studies in numerical weather forecasting and climate simulations
    Schroeter, Jennifer
    Rieger, Daniel
    Stassen, Christian
    Vogel, Heike
    Weimer, Michael
    Werchner, Sven
    Foerstner, Jochen
    Pril, Florian
    Reinert, Daniel
    Zaengl, Guenther
    Giorgetta, Marco
    Ruhnke, Roland
    Vogel, Bernhard
    Braesicke, Peter
    GEOSCIENTIFIC MODEL DEVELOPMENT, 2018, 11 (10) : 4043 - 4068
  • [4] Simulations of radiation hydrodynamics and radiative magnetohydrodynamics by collocation spectral methods
    Li, Ben-Wen
    Luo, Xiao-Hong
    Wang, Wei
    COMPUTERS & FLUIDS, 2018, 164 : 119 - 124
  • [5] Comparison of vibrocompaction methods by numerical simulations
    Arnold, M.
    Herle, I.
    Wehr, J.
    GEOTECHNICS OF SOFT SOILS: FOCUS ON GROUND IMPROVEMENT, 2009, : 3 - +
  • [6] Comparison of vibrocompaction methods by numerical simulations
    Arnold, M.
    Herle, I.
    INTERNATIONAL JOURNAL FOR NUMERICAL AND ANALYTICAL METHODS IN GEOMECHANICS, 2009, 33 (16) : 1823 - 1838
  • [7] NUMERICAL SIMULATIONS OF WATER WAVE DYNAMICS BASED ON SPH METHODS
    Zheng Kun
    Sun Zhao-chen
    Sun Jia-wen
    Zhang Zhi-ming
    Yang Guo-ping
    Zhou Feng
    JOURNAL OF HYDRODYNAMICS, 2009, 21 (06) : 843 - 850
  • [8] A new framework for numerical simulations of structure formation
    Schaller, Matthieu
    Becker, Claude
    Ruchayskiy, Oleg
    Boyarsky, Alexey
    Shaposhnikov, Mikhail
    MONTHLY NOTICES OF THE ROYAL ASTRONOMICAL SOCIETY, 2014, 442 (04) : 3073 - 3095
  • [9] A spectral method algorithm for numerical simulations of gravitational fields
    Meringolo, C.
    Servidio, S.
    Veltri, P.
    CLASSICAL AND QUANTUM GRAVITY, 2021, 38 (07)
  • [10] Lagrangian numerical methods for ocean biogeochemical simulations
    Paparella, Francesco
    Popolizio, Marina
    JOURNAL OF COMPUTATIONAL PHYSICS, 2018, 360 : 229 - 246