potential¶
-
biff.scf.potential(xyz, Snlm, Tnlm, G=1, M=1, r_s=1)¶ Compute the gravitational potential of the basis function expansion at a set of positions given the expansion coefficients.
Parameters: xyz :
ndarrayA 2D array of positions where
axis=0are multiple positions andaxis=1are the coordinate dimensions (x, y, z).Snlm :
ndarrayA 3D array of expansion coefficients for the cosine terms of the expansion. This notation follows Lowing et al. (2011). The array should have shape
(nmax+1,lmax+1,lmax+1)and any invalid terms (e.g., when m > l) will be ignored.Tnlm :
ndarrayA 3D array of expansion coefficients for the sine terms of the expansion. This notation follows Lowing et al. (2011). The array should have shape
(nmax+1,lmax+1,lmax+1)and any invalid terms (e.g., when m > l) will be ignored.G : numeric (optional)
Gravitational constant. Leave unset for dimensionless units.
M : numeric (optional)
Mass scale. Leave unset for dimensionless units.
r_s : numeric (optional)
Length scale. Leave unset for dimensionless units.
Returns: pot :
ndarrayA 1D array of the value of the potential at each input position. Will have the same length as the input position array,
xyz.