Getting from B to A: The Inverse Curl Problem — Zachary Silberman

Many different numerical codes are employed in studies of highly relativistic magnetized accretion flows around black holes. Based on the formalisms each uses, some codes evolve the magnetic field vector B, while others evolve the magnetic vector potential A, the two being related by the curl: B=curl(A). Here, we discuss how to generate vector potentials corresponding to specified magnetic fields on staggered grids, a surprisingly difficult task on finite cubic domains. The code we have developed solves this problem via a cell-by-cell method, whose scaling is nearly linear in the number of grid cells, and here we discuss the success this algorithm has in generating smooth vector potential configurations.