Useful Resources

Last update: 2021 December

List of commonly used public astrophysical simulation codes

Code Name and link highlight :
Code Name and linkProject leaderDescriptionMethod
LanguageLicenseCode distribution
Agama Eugene Vasiliev Agama is a software package for stellar dynamics, providing tools for working with gravitational potentials, E Vasiliev

E Vasiliev

Github, public
Arepo Volker Springel, Ruediger Pakmor,
Rainer Weinberger
Arepo is a massively parallel gravity and magnetohydrodynamics code for astrophysics, Springel V.

Pakmor, R. et al.

Weinberger, R. et al.
CGNU GPLv3 Github, public
AstroBEARAdam Frank, Department of Physics and Astronomy (Rochester) AstroBEAR is a parallelized hydrodynamic/MHD simulation code suitable for a variety of astrophysical problems. Derived from the BearCLAW package Cunningham et al.

Carroll-Nellenback J. J. et al.
FortranGNU GPLv3 Web, registration needed
A-SLOTH Tilman Hartwig A-SLOTH (Ancient Starts and Local Observables by Tracing Halos) is a versatile semi-analytical model to simulate the formation of the first stars and galaxies. Hartwig, Tilman et al.

Magg, Mattis, Hartwig, Tilman et al.

Fortran90 & PythonMIT Github, public
Athena++ James Stone (Princeton) Grid-based adaptive mesh refinement (AMR) code for hydrodynamics, magnetohydrodynamics (MHD), and special and Stone et al. (2019, in preparation)C++ BSD 3-Clause Web, public
Black Hole Accretion Code [BHAC] Oliver Porth, Hector Olivares and the BHAC developer team BHAC (the Black Hole Accretion Code) is a multidimensional general relativistic magnetohydrodynamics code based on the MPI-AMRVAC framework. Porth, O. et al.
, Olivares, H.et al.
Fortran 90 GNU GPLv3 Web, public
FARGO3DPablo Benítez-Llambay, Frédéric Masset, Leonardo Krapp FARGO3D is a versatile multifluid HD/MHD code that runs on clusters of CPUs or GPUs, with special emphasis on protoplanetary disks Benítez-Llambay, Pablo et al.
, ②2019
(ApJS, submitted.)
C, CUDAGNU GPL Bitbucket, public
(Framework for Developing Particle Simulators)
RIKEN Center for Computational Science, Particle Simulator Research TeamFDPS is a general-purpose, high-performance library for particle simulations. The current version is 5.0b. Iwasawa et al. 2016C++MIT Github, public
GAMER Hsi-Yu Schive (Taiwan) GAMER is a GPU-accelerated adaptive mesh refinement code for astrophysics. It features extremely high performance Schive et al.
, ②2010, ③2018
C++, CUDABSD 3-Clause Github, public
Gadget-2Volker Springel (MPA) GADGET is a code for cosmological N-body/SPH simulations on massively parallel computers with distributed memory. GADGET uses Springel 2005CGNU GPLv2 Web, public
GIZMO Philip F. Hopkins (Caltech) GIZMO is a flexible, massively-parallel, multi-physics simulation code. The code lets you solve the fluid equations using a variety of different methods Hopkins et al. 2015CGNU GPL Bitbucket, public
HARM-COOL Agnieszka Janiuk GR MHD code to simulate black hole accretion with optional nuclear Equation of State and neutrino cooling. Yuan Y.-F.
Janiuk A. et al.
Janiuk A. ①2017
C++, Fortran90GPLv3, LGPLv3 Web, public
Icarus Tinatin Baratashvili, Stefaan Poedts3D MHD heliospheric modelling tool covering domain from 0.1 AU to 2 AU. Icarus simulates solar wind and Coronal Mass Ejections in the co-rotating frame with the Sun. Baratashvili, T. et al. ①2023,
Baratashvili, T. et al. ①2022 Verbeke, C. et al. ①2022
Fortran 90GNU GPLv3 Github, public
K-Athena Philipp Grete, Forrest Glines, and B. W. O’Shea. Michigan State UniversityA performance portable version (using Kokkos ) of Athena++ for structured grid (magnetohydro)
dynamics simulations on any architecture
(CPUs, KNLs, GPUs, ...)
Grete, Glines, and O’Shea (under review) 2019C++BSD 3-Clause Github, public
Legolas Niels Claes, Jordi De Jonghe,
Rony Keppens
Legolas is a finite element code for MHD spectroscopy of 1D Cartesian/cylindrical equilibria with flow that balance pressure gradients, gravity and Lorentz forces, Niels Claes, Jordi De Jonghe, and Rony Keppens
Fortran, PythonGNU GPL v3 Github, public
MPI-AMRVAC Rony Keppens and collaboratorA generic tool for block-grid-adaptive simulations of your favourite system of PDEs, in any dimensionality.
This includes hydro, MHD, reaction-diffusion, ...
R. Keppens ①2020,
J. Teunissen ①2019,
C. Xia
① 2018
O. Porth ①2014
Fortran 90GNU GPL v3.0 Github, public
Nbody6++GPU Long Wang & Rainer Spurzem, SilkRoad Team and DRAGON project This code is designed to simulate large collisional N-body systems (star clusters), including the accurate treatment of binary and few-body dynamics. Wang et al. 2015FORTRAN 77, C++, CUDAMIT Github, public
Optab Shigenobu Hirose (JAMSTEC) Public Fortran90 code package for generating ideal-gasopacity tables for radiation hydrodynamics simulations Hirose et al.
Fortran 90GPL-3.0 Github, public
Pencil Code The 14 owners of the code A high-order finite-difference code for compressible hydrodynamic flows with magnetic fields and particles.CRA Data Management et al. 2014 Fortran 90GPLv2 Github, public
PeTar Long Wang, Masaki Iwasawa, Keigo Nitadori and Junichiro Makino The high-performance N-body code is designed for modeling massive collisional stellar systems, featuring accurate orbital evolution of multiple systems Long Wang et al. 2020 C++, Fortran, Cuda (GPU), PythonMIT License Github, public
PHANTOMDaniel Price (Monash) Phantom is a 3D Smoothed Particle Hydrodynamics and Magnetohydrodynamics code for astrophysics. It was written and developed by Daniel Price with contributions Price et al. 2018 Fortran 95/2008GPLv3 + must cite code paper + redistri-
butions must include “Phantom” in code name

Bitbucket, public
PIONJonathan Mackey (DIAS) PION is a grid-based fluid dynamics code for hydrodynamics and magnetohydrodynamics, including a ray-tracing module for Mackey et al.
Mackey & Lim
C++BSD 3-Clause License Web, public
PLUTOAndrea Mignone and the PLUTO code development team PLUTO is a freely-distributed software for the numerical solution of mixed hyperbolic/parabolic systems of partial differential equations Mignone et al.
CGNU GPL Web, public
RADMC-3D Cornelis Dullemond RADMC-3D is a highly flexible diagnostic radiative transfer code for "postprocessing" models to compute predictions for observable images and spectra. Dullemond, C. P. et al. 2012 Fortran90, with Python interface.

No knowledge of Fortran90 is necessary.
Scientific use permitted, as long as website and/or reference is cited in resulting publication. Web, public
RAMSESRomain Teyssier (Zürich) RAMSES is an open source code to to model astrophysical systems, featuring self-gravitating, magnetised, compressible, radiative fluid flows. Teyssier et al.
②2006, ③2006
Fortran 90, MPI LibraryCeCILL Bitbucket, public
REBOUNDHanno Rein, Daniel Tamayo, David S. Spiegel
REBOUND is an N-body integrator, i.e. a software package that can integrate the motion of particles under the influence of gravity. The particles can represent stars, Rein et al. ①2012,
②2014, ③2015
C, PythonGNU GPLv3 Github, public


IAU Commission B1

Agreement on Link