A Fast, Second-order Accurate Poisson Solver in Spherical Polar Coordinates
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 <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"> <mml:mi class="MJX-tex-calligraphic" mathvariant="script">O</mml:mi> <mml:mo stretchy="false">(</mml:mo> <mml:msup> <mml:mrow> <mml:mi>N</mml:mi> </mml:mrow> <mml:mrow> <mml:mn>3</mml:mn> </mml:mrow> </mml:msup> <mml:mi>log</mml:mi> <mml:mi>N</mml:mi> <mml:mo stretchy="false">)</mml:mo> </mml:math> , where N 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.
Authors
- Woong‐Tae Kim (ORCID: https://orcid.org/0000-0003-4625-229X)
- Yonghwi Kim (ORCID: https://orcid.org/0000-0003-4164-5414)
- Jeonghyeon Ahn
Institutions
- Seoul National University (KR)
- Korea Institute of Science & Technology Information (KR)
Publication Details
- Journal
- The Astrophysical Journal Supplement Series
- Published
- 2025-09-01
- DOI
- https://doi.org/10.3847/1538-4365/adec68
- Primary Topic
- Matrix Theory and Algorithms
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- Korea Institute of Science and Technology Information
- National Research Foundation of Korea