MHDueT is an automatically generated, efficient computational code with distributed adaptive mesh refinement (AMR) which solves strongly gravitating, high density matter to study the dynamics of compact objects (i.e., black holes and neutron stars) in different astrophysical scenarios.
MHDueT solves the Einstein equations coupled to the general-relativistic magnetohydrodynamics equations to evolve consistently self-gravitating, magnetized matter that constitute neutron stars. The matter is modeled as a perfect fluid with several forms of equation of state, including microphysical tabulated ones. It employs Large Eddy Simulations (LES) techniques, with the gradient Sub-Grid Scale model, to capture small scale dynamics that might develop in scenarios involving neutron star mergers and/or accretion disks. The code also incorporates different treatments to solve the neutrino transport equations. Currently it uses a leakage scheme for neutrino cooling, soon to be upgraded to an M1 formalism with the grey approximation.
The parallelization and distributed AMR is handled by the publicly available SAMRAI infrastructure, which achieves excellent scaling to tens of thousands of processes in CPUs. We are currently upgrading MHDueT to be run also using the AMReX infrastructure, which allows both CPU and GPU computing.
Access research papers for in-depth information.
Although this code is automatically generated using Simflowny, you need not to install it. Instead, you might need to install MPI (OpenMPI => 1.10.2), the libraries that support I/O (HDF5 and Silo), the infrastructure providing parallelization and AMR (SAMRAI or AMReX) and the libraries for compact-objects initial data (Lorene or FUKA). More detailed instructions can be found in this Simflowny webpage.
Pre-requisites installation instructions
Simflowny generates two versions of the code, one to be run under the SAMRAI infrastructure and the other under the AMReX one. Below you can download two different codes automatically generated by Simflowny. The first one solves Einstein equations minimally coupled to a scalar field (i.e., to model Boson Stars) and the second one is MHDueT, which solves Einstein equations coupled to MHD and neutrinos.
Boson star | MHDueT | |
---|---|---|
SAMRAI | BosonStar_SAMRAI | MHDueT_SAMRAI |
AMReX | BosonStar_AMReX | MHDueT_AMReX |
Compiling instructions
The scaling tests are performed by using the Boson star code. It solves a single boson star by using a fourth order RK to evolve in time, 4th order finite difference to discretize the spatial derivatives and a 6th order Kreiss-Oliger dissipation to damp the high-frequency noise.
We have considered three different versions of the code: AMReX-GPU, AMReX-CPU and SAMRAI (i.e., only CPU). The CPU runs have been performed in MareNostrum 4 (1 node=48 cores), while that the GPU runs have been perfomed in Tursa (1 node = 4 GPUs NVIDIA A100-40), Frontera (1 node = 4 GPUs NVIDIA Quadro RTX 5000) and MareNostrum 5 (1 node = 4 GPUs NVIDIA Hopper H100 64GB HBM2).
Find scripts for different analysis for hdf5 data in scripts
The evolution equations and the numerical methods implemented in MHDueT can be found in these internal notes MHDueT notes. Further details on the numerical schemes can be found here numerical schemes
A general description on the parameters and structure of the codes are documented here for SAMRAI (download) and AMReX (download). The parameters related to SAMRAI are further documented here.
Find answers to frequently asked questions and common standard errors.
Join our Slack community for discussions and support (under construction).