PIERNIK is an MHD code created at Centre for Astronomy, Nicolaus Copernicus University in Toruń, Poland. Current version of the code uses a simple, conservative numerical scheme, which is known as Relaxing TVD scheme (RTVD). General mathematical context of the relaxation and relaxing systems of hyperbolic conservation laws, and related numerical schemes, was presented by Jin & Xin (1995). A particular realization of the Relaxing TVD was developed by Trac & Pen (2003) and Pen et al. (2003), who presented the numerical method in a pedagogical way, and provided short, publicly available HD and MHD codes. These codes rely on a dimensionally split, second order algorithm in space and time. The Relaxing TVD scheme is easily extendible to account for additional fluid components: multiple fluids, dust, cosmic rays, and additional physical processes, such as fluid interactions and Ohmic resistivity effects. The simplicity and a small number of floating point operations of the basic algorithm is reflected in a performance of 105 zone-cycles/s (on single-core 2 GHz processors).
To download PIERNIK directly from git repo type:
git clone https://github.com/piernik-dev/piernik.git