vcdisk.integrand_offplane

vcdisk.integrand_offplane(u, l, rho_ul, R, z)

Integrand function for the integral in vcdisk.vcdisk_offplane().

Parameters
  • u (list or numpy.ndarray) – radial variable of integration in \(\rm kpc\). Its shape must be u.shape == (len(u),).

  • l (list or numpy.ndarray) – vertical variable of integration in \(\rm kpc\). Its shape must be l.shape == (len(l),1). This can be obtained from a standard array as l[:,None].

  • rho_rz (list or numpy.ndarray) – array of surface densities in \(\rm M_\odot / kpc^2\). Its shape must be rho_rz.shape == (len(l), len(u)). If the array is sampled from a function rho(R,z), then this can be obtained with rho_rz = rho(u, l[:, None]).

  • R (float) – radius in \(\rm kpc\) at which the potential is evaluated

  • z (float) – height in \(\rm kpc\) at which the potential is evaluated

Returns

2-D array of the potential integrand with shape (len(l), len(u)).

Return type

numpy.ndarray