English

A Fast, Second-Order Accurate Poisson Solver in Spherical Polar Coordinates

Instrumentation and Methods for Astrophysics 2025-07-10 v1 Earth and Planetary Astrophysics

Abstract

We present an efficient and accurate algorithm for solving the Poisson equation in spherical polar coordinates with a logarithmic radial grid and open boundary conditions. The method employs a divide-and-conquer strategy, decomposing the computational domain into hierarchical units with varying cell sizes. James's algorithm is used to compute the zero-boundary potentials of lower-level units, which are systematically integrated to reconstruct the zero-boundary potential over the entire domain. These calculations are performed efficiently via matrix-vector operations using various precomputed kernel matrices. The open-boundary potential is then obtained by applying a discrete Green's function to the effective screening density induced at the domain boundaries. The overall algorithm achieves a computational complexity of O(N3logN)\mathcal{O}(N^3 \log N), where NN denotes the number of cells in one dimension. We implement the solver in the FARGO3D magnetohydrodynamics code and demonstrate its performance and second-order accuracy through a series of test problems.

Keywords

Cite

@article{arxiv.2507.06784,
  title  = {A Fast, Second-Order Accurate Poisson Solver in Spherical Polar Coordinates},
  author = {Jeonghyeon Ahn and Woong-Tae Kim and Yonghwi Kim},
  journal= {arXiv preprint arXiv:2507.06784},
  year   = {2025}
}

Comments

23 pages, 10 figures, 2 tables, accepted for publication in ApJS

R2 v1 2026-07-01T03:53:04.791Z