Original version
Astronomy and Astrophysics. 2020, 641:A107, DOI: 0004-6361/201936272
Abstract
We present a new code,SCALAR, based on the high-resolution hydrodynamics andN-body codeRAMSES, to solve the Schrödingerequation on adaptive refined meshes. The code is intended to be used to simulate axion or fuzzy dark matter models where theevolution of the dark matter component is determined by a coupled Schrödinger-Poisson equation, but it can also be used as a stand-alone solver for both linear and non-linear Schrödinger equations with any given external potential. This paper describes the numericalimplementation of our solver and presents tests to demonstrate how accurately it operates.