This repository contains a proof of concept GRHD solver built on the pyAMReX interface for AMReX. The main functionality is the GRHD solver itself at src/GRHD_POC/Source/main.py It depends on pyamrex as well as more common python packages, such as numpy and scipy. Aside from pyamrex all dependancies should be installable through pip install or conda install . src/GRHD_POC/Source/main.py also depends on other files in this repository: the files in src/GRHD_POC/Source/duals contain functions to get the duals of velocity or momentum using the space metric the file in src/GRHD_POC/Source/henri/grhd/cons2prim.py contain the functionality for cons2prim, the calculation of primitive variables from conserved variables. For GPU execution it uses the GPU compatible rootfinder in rootfinder.py.
src/TOV* directories contain files with TOV data or scripts to generate TOV data. Currently only src/TOV_new/tov1.npy is used
src/log2_abs_error_and_dx.txt contains data about the 'discretization error on a derivative' (calculated with the central limit scheme) compared to the radial length of a grid cell.
time_runsCPU.csv contains data about execution times for CPU execution of the POC solver, but may contain runs with bad MPI and OpenMP parallelization for multicore CPU and multi-CPU.
time_runsGPU.csv contains data about execution times for GPU execution of the POC solver.