1: \begin{abstract}
2: We have written and tested a new general relativistic
3: magnetohydrodynamics (GRMHD) code, capable of evolving MHD fluids in
4: dynamical spacetimes with adaptive-mesh refinement (AMR). Our code
5: solves the Einstein-Maxwell-MHD system of coupled equations in full
6: 3+1 dimensions, evolving the metric via the Baumgarte-Shapiro
7: Shibata-Nakamura (BSSN) formalism and the MHD and magnetic
8: induction equations via a conservative, high-resolution shock-capturing
9: scheme. The
10: induction equations are recast as an evolution equation for the
11: magnetic vector potential, which exists on a grid that is staggered
12: with respect to the hydrodynamic and metric variables.
13: The divergenceless constraint $\ve{\nabla}\cdot \ve{B}=0$ is
14: enforced by the curl of the vector potential. Our MHD scheme
15: is fully compatible with AMR, so that fluids at AMR refinement
16: boundaries maintain $\ve{\nabla}\cdot \ve{B}=0$. In simulations with
17: uniform grid spacing, our MHD scheme is numerically equivalent to a
18: commonly used, staggered-mesh constrained-transport scheme. We present
19: code validation test results, both in Minkowski and curved spacetimes.
20: They include magnetized shocks, nonlinear
21: Alfv\'en waves, cylindrical explosions, cylindrical rotating
22: disks, magnetized Bondi tests, and the collapse of a magnetized rotating
23: star. Some of the more stringent tests involve black holes.
24: We find good agreement between analytic and numerical
25: solutions in these tests, and achieve convergence at the expected order.
26: \end{abstract}
27: