ARTIS (Sim 2007; Kromer & Sim 2009) is a 3D radiative transfer code for Type Ia supernovae using the Monte Carlo method with indivisible energy packets (Lucy 2002). The latest version incorporates polarisation and virtual packets (Bulla et al. 2015), non-LTE physics appropriate for the nebular phase of Type Ia supernovae (Shingles et al. 2020), and alpha- and beta-decays with time-dependent thermalisation (Shingles et al. 2023).
The code is modern C++23 and scales to thousands of CPU cores across multiple node using MPI with shared memory windows on each node. Experimental support is also provided for OpenMP and C++ standard parallelism (for multicore CPU and upcoming GPU targets).
The ARTIS source code is available because it forms part of the method used to obtain published scientific results. Those interested in understanding the numerical techniques in greater detail than the published descriptions have full access to the underlying code. We anticipate that some developers might find our code useful when building similar simulation codes, and in this case we ask that authors of any derivative works acknowledge and cite the ARTIS collaboration. This is in addition to the legal requirements of attribution and preservation of copyright notices on any substantial copies under the BSD 3-Clause licence.
We do not have the resources to support users of the code outside our team of direct collaborators.
We recommended that you retain the full source code and Git version metadata within each simulation folder for future reference (i.e. don't just copy the executables).
Clone the source code repository from the release branch:
git clone --branch release https://github.com/artis-mcrt/artis.git
cd artisTo compile and run artis, you require a recent C++ compiler (g++, LLVM Clang, Apple Clang, or nvc++), the GNU Scientific Library, and an MPI library with a wrapper command `mpicxx'. Typically these are made available on an HPC system by running module or spack commands. For systems we use frequently, look at the top of the relevant SLURM script in scripts/artis-*.sh to find compatible modules to load.
With the requirements met, select an options preset and compile with `make'. For example:
ln -s artisoptions_classic.h artisoptions.h
makeYou will likely want to change the number of packets per rank (MPKTS), and the GRID_TYPE (SPHERICAL1D, CYLINDRICAL2D, or CARTESIAN3D) using a text editor. A CARTESIAN3D grid can be used with any 1D, 2D, or 3D input model (as was historically done) but there will be a loss of accuracy due to the mismatch between model cells and propagation cells.
Next, go up to the model folder and symlink the executables and data folder:
cd ..
ln -s artis/sn3d
ln -s artis/exspec
ln -s artis/dataThe next steps are to ensure a full set of snapshot files (model.txt and abundances.txt) and an atomic database are present, and configure the timesteps in input.txt. Then, queue the relevant job script, with a command such as:
sbatch artis/scripts/artis-juwels.shClone the source code repository and checkout the default branch:
git clone https://github.com/artis-mcrt/artis.git
cd artisFor macOS, it's recommend that you install homebrew llvm to get clang-format, clang-tidy, clangd language server and the clang C++ compiler.
brew install llvmInstall an MPI library that provides an mpicxx command, e.g., on macOS:
brew install open-mpiInstall the pre-commit hooks:
pip install prek
prek installFor editing, the clangd language server is recommended (e.g., with the VS Code plugin).
Distributed under the BSD 3-Clause license. See LICENSE for more information.