TZI-HONG CHIUEHHSI-YU SCHIVE2021-07-282021-07-282021358711https://www.scopus.com/inward/record.uri?eid=2-s2.0-85107874788&doi=10.1093%2fmnras%2fstab1006&partnerID=40&md5=6b45e6791d8a3c51ebe6ee858bcb9822https://scholars.lib.ntu.edu.tw/handle/123456789/575295We present a new special relativistic hydrodynamics (SRHD) code capable of handling coexisting ultra-relativistically hot and non-relativistically cold gases. We achieve this by designing a new algorithm for conversion between primitive and conserved variables in the SRHD solver, which incorporates a realistic ideal-gas equation of state covering both the relativistic and non-relativistic regimes. The code can handle problems involving a Lorentz factor as high as 106 and optimally avoid the catastrophic cancellation. In addition, we have integrated this new SRHD solver into the code gamer (https://github.com/gamer-project/gamer) to support adaptive mesh refinement and hybrid OpenMP/MPI/GPU parallelization. It achieves a peak performance of 7 × 107 cell updates per second on a single Tesla P100 GPU and scales well to 2048 GPUs. We apply this code to two interesting astrophysical applications: (a) an asymmetric explosion source on the relativistic blast wave and (b) the flow acceleration and limb brightening of relativistic jets. ? 2021 The Author(s) Published by Oxford University Press on behalf of Royal Astronomical Society.An adaptive mesh, GPU-accelerated, and error minimized special relativistic hydrodynamics codejournal article10.1093/mnras/stab10062-s2.0-85107874788