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 条
  • [21] NUMERICAL SIMULATIONS FOR SHALLOW WATER FLOWS OVER ERODIBLE BEDS BY CENTRAL DG METHODS
    Xian, Weizhi
    Chen, Aimin
    Cheng, Yongping
    Dong, Haiyun
    INTERNATIONAL JOURNAL OF NUMERICAL ANALYSIS AND MODELING, 2021, 18 (02) : 143 - 164
  • [22] NUMERICAL SIMULATION OF MICROFLOWS USING HERMITE SPECTRAL METHODS
    Hu, Zhicheng
    Cai, Zhenning
    Wang, Yanli
    SIAM JOURNAL ON SCIENTIFIC COMPUTING, 2020, 42 (01) : B105 - B134
  • [23] Numerical simulations of turbulent thermal, bubble and hybrid plumes
    Fabregat, Alexandre
    Dewar, William K.
    Oezgoekmen, Tamay M.
    Poje, Andrew C.
    Wienders, Nicolas
    OCEAN MODELLING, 2015, 90 : 16 - 28
  • [24] Numerical simulations of wave propagation over a vegetated platform
    Chen, Xuebin
    Chen, Qin
    Zhan, Jiemin
    Liu, Don
    COASTAL ENGINEERING, 2016, 110 : 64 - 75
  • [25] Spectral width of seeded and ASE XUV lasers: experiment and numerical simulations
    Klisnick, A.
    Meng, L. M.
    Alessi, D.
    Guilbaud, O.
    Wang, Y.
    Berrill, M.
    Luther, B.
    Calisti, A.
    Benredjem, D.
    Ferri, S.
    Mosse, C.
    de Rossi, S.
    Joyeux, D.
    Rocca, J. J.
    X-RAY LASERS AND COHERENT X-RAY SOURCES: DEVELOPMENT AND APPLICATIONS IX, 2011, 8140
  • [26] On the numerical simulations of captive, driven and freely moving cylinder
    Rosetti, Guilherme Feitosa
    Vaz, Guilherme
    JOURNAL OF FLUIDS AND STRUCTURES, 2017, 74 : 492 - 519
  • [27] Numerical Simulations of Confined Braided River Morphodynamics: Display of Deterministic Chaos and Characterization Through Turbulence Theory
    Stecca, Guglielmo
    Hicks, D. Murray
    JOURNAL OF GEOPHYSICAL RESEARCH-EARTH SURFACE, 2022, 127 (03)
  • [28] Numerical integration methods for large-scale biophysical simulations
    Milotti, Edoardo
    Del Fabbro, Alessio
    Chignola, Roberto
    COMPUTER PHYSICS COMMUNICATIONS, 2009, 180 (11) : 2166 - 2174
  • [29] DISCONTINUOUS GALERKIN FINITE ELEMENT METHODS FOR NUMERICAL SIMULATIONS OF THERMOELASTICITY
    Hao, Zeng-rong
    Gu, Chun-wei
    Song, Yin
    JOURNAL OF THERMAL STRESSES, 2015, 38 (09) : 983 - 1004
  • [30] Quantifying the Effects of Bed Roughness on Transit Time Distributions via Direct Numerical Simulations of Turbulent Hyporheic Exchange
    Shen, Guangchen
    Yuan, Junlin
    Phanikumar, Mantha S.
    WATER RESOURCES RESEARCH, 2022, 58 (04)