English

The Pencil Code, a modular MPI code for partial differential equations and particles: multipurpose and multiuser-maintained

Instrumentation and Methods for Astrophysics 2021-02-25 v1 Cosmology and Nongalactic Astrophysics Solar and Stellar Astrophysics Fluid Dynamics

Abstract

The Pencil Code is a highly modular physics-oriented simulation code that can be adapted to a wide range of applications. It is primarily designed to solve partial differential equations (PDEs) of compressible hydrodynamics and has lots of add-ons ranging from astrophysical magnetohydrodynamics (MHD) to meteorological cloud microphysics and engineering applications in combustion. Nevertheless, the framework is general and can also be applied to situations not related to hydrodynamics or even PDEs, for example when just the message passing interface or input/output strategies of the code are to be used. The code can also evolve Lagrangian (inertial and noninertial) particles, their coagulation and condensation, as well as their interaction with the fluid.

Keywords

Cite

@article{arxiv.2009.08231,
  title  = {The Pencil Code, a modular MPI code for partial differential equations and particles: multipurpose and multiuser-maintained},
  author = {A. Brandenburg and A. Johansen and P. A. Bourdin and W. Dobler and W. Lyra and M. Rheinhardt and S. Bingert and N. E. L. Haugen and A. Mee and F. Gent and N. Babkovskaia and C. -C. Yang and T. Heinemann and B. Dintrans and D. Mitra and S. Candelaresi and J. Warnecke and P. J. Käpylä and A. Schreiber and P. Chatterjee and M. J. Käpylä and X. -Y. Li and J. Krüger and J. R. Aarnes and G. R. Sarson and J. S. Oishi and J. Schober and R. Plasson and C. Sandin and E. Karchniwy and L. F. S. Rodrigues and A. Hubbard and G. Guerrero and A. Snodin and I. R. Losada and J. Pekkilä and C. Qian},
  journal= {arXiv preprint arXiv:2009.08231},
  year   = {2021}
}

Comments

7 pages, submitted to the Journal for Open Source Software (JOSS)

R2 v1 2026-06-23T18:36:44.222Z