A Green's function based solver for the modified Bessel equation has been developed with the primary motivation of solving the Poisson equation in cylindrical geometries. The method is implemented using a Discrete Hankel Transform and a Green's function based on the modified Bessel functions of the first and second kind. The computation of these Bessel functions has been implemented to avoid scaling problems due to their exponential and singular behavior, allowing the method to be used for large order problems, as would arise in solving the Poisson equation with a dense azimuthal grid. The method has been tested on monotonically decaying and oscillatory inputs, checking for errors due to interpolation and/or aliasing. The error has been found to reach machine precision and to have computational time linearly proportional to the number of nodes.
Efficient Multi-Precision Computation of Bessel Functions for Real Orders and Complex Arguments with Fortran Implementation -- Part II: The Modified Bessel Function of the Second Kind, $K_ν(z)$
United Arab Emirates University(阿联酋大学);Massachusetts Institute of Technology(麻省理工学院)
Efficient Multi-Precision Computation of Bessel Functions for Real Orders and Complex Arguments with Fortran Implementation -- Part I: The Modified Bessel Function of the First Kind, $I_ν(z)$
United Arab Emirates University(阿联酋大学);Massachusetts Institute of Technology(麻省理工学院)