Function to calculate the tortoise radius, , as function of the Schwarzschild radius, .
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=wp), | intent(in) | :: | r | The schwarzschild radius, . |
||
real(kind=wp), | intent(in) | :: | mass | The mass of the black hole, . |
The return value is .
function rstar_of_r ( r, mass )
!! Function to calculate the tortoise radius, \(r_*\), as function of the
!! Schwarzschild radius, \(r_{\mathrm{schw}}\).
implicit none
real(wp), intent(in) :: r
!! The schwarzschild radius, \(r_{\mathrm{schw}}\).
real(wp), intent(in) :: mass
!! The mass of the black hole, \(M\).
real(wp) :: rstar_of_r
!! The return value is \(r_* = r_{\mathrm{schw}}+2 M\log\left (
!! \frac{r_{\mathrm{schw}}}{2 M} - 1\right )\).
rstar_of_r = r+2.0_wp*mass*log(r/(2.0_wp*mass)-1.0_wp)
end function rstar_of_r